]> granicus.if.org Git - clang/commit
[CUDA] add support for the new kernel launch API in CUDA-9.2+.
authorArtem Belevich <tra@google.com>
Thu, 31 Jan 2019 21:34:03 +0000 (21:34 +0000)
committerArtem Belevich <tra@google.com>
Thu, 31 Jan 2019 21:34:03 +0000 (21:34 +0000)
commit6a79c4432e4dfc5a6f4bed8d48b2b02afb6824b2
tree919be7794cbeffd02029c64c24cc545fb48b5064
parent3145176684adf15d50ae27693d7b961b108e8cd8
[CUDA] add support for the new kernel launch API in CUDA-9.2+.

Instead of calling CUDA runtime to arrange function arguments,
the new API constructs arguments in a local array and the kernels
are launched with __cudaLaunchKernel().

The old API has been deprecated and is expected to go away
in the next CUDA release.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352799 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/CodeGen/CGCUDANV.cpp
lib/Headers/__clang_cuda_runtime_wrapper.h
lib/Sema/SemaCUDA.cpp
lib/Sema/SemaDecl.cpp
test/CodeGenCUDA/Inputs/cuda.h
test/CodeGenCUDA/device-stub.cu
test/CodeGenCUDA/kernel-args-alignment.cu
test/CodeGenCUDA/kernel-call.cu
test/Driver/cuda-simple.cu
test/SemaCUDA/Inputs/cuda.h
test/SemaCUDA/config-type.cu
unittests/ASTMatchers/ASTMatchersTest.h