[all-commits] [llvm/llvm-project] 33a5d2: [OpenMP][NVPTX] Added forward declaration to pave ...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Wed Jan 20 13:01:05 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 33a5d212c6198af2bd902bb8e4cfd0f0bec0114f
https://github.com/llvm/llvm-project/commit/33a5d212c6198af2bd902bb8e4cfd0f0bec0114f
Author: Shilei Tian <tianshilei1992 at gmail.com>
Date: 2021-01-20 (Wed, 20 Jan 2021)
Changed paths:
M openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.cu
Log Message:
-----------
[OpenMP][NVPTX] Added forward declaration to pave the way for building deviceRTLs with OpenMP
Once we switch to build deviceRTLs with OpenMP, primitives and CUDA
intrinsics cannot be used directly anymore because `__device__` is not recognized
by OpenMP compiler. To avoid involving all CUDA internal headers we had in `clang`,
we forward declared these functions. Eventually they will be transformed into
right LLVM instrinsics.
Reviewed By: JonChesterfield
Differential Revision: https://reviews.llvm.org/D95058
More information about the All-commits
mailing list