[all-commits] [llvm/llvm-project] 9d899d: [HIP] Support `-fgpu-default-stream`

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed Feb 23 19:30:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d899d8f01872e91b9909a6ee5937a796a399276
      https://github.com/llvm/llvm-project/commit/9d899d8f01872e91b9909a6ee5937a796a399276
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M clang/include/clang/Basic/LangOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CGCUDANV.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/test/CodeGenCUDA/Inputs/cuda.h
    M clang/test/CodeGenCUDA/kernel-call.cu
    M clang/test/Driver/hip-options.hip
    M clang/test/Preprocessor/predefined-macros.c

  Log Message:
  -----------
  [HIP] Support `-fgpu-default-stream`

Introduce -fgpu-default-stream={legacy|per-thread} option to
support per-thread default stream for HIP runtime.

When -fgpu-default-stream=per-thread, HIP kernels are
launched through hipLaunchKernel_spt instead of
hipLaunchKernel. Also HIP_API_PER_THREAD_DEFAULT_STREAM=1
is defined by the preprocessor to enable other per-thread stream
API's.

Reviewed by: Artem Belevich

Differential Revision: https://reviews.llvm.org/D120298




More information about the All-commits mailing list