Select the OpenCLKernel calling convention for kernels when compiling
CUDA targeting SPIR-V.
In this way the generated LLVM IR will have a spir_kernel calling
convention that will be translated to an OpEntryPoint when converting
to SPIRV.
Paths
| Differential D114407
[CUDA][SPIRV] Use OpenCLKernel CC for CUDA -> SPIRV ClosedPublic Authored by dcastagna on Nov 22 2021, 6:01 PM.
Details
Summary Select the OpenCLKernel calling convention for kernels when compiling In this way the generated LLVM IR will have a spir_kernel calling
Diff Detail
Event TimelineHerald added subscribers: carlosgalvezp, Naghasan, ldrumm and 3 others. · View Herald TranscriptNov 22 2021, 6:01 PM This revision is now accepted and ready to land.Dec 2 2021, 11:26 AM Closed by commit rGabbdc13e6803: [CUDA][SPIRV] Use OpenCLKernel CC for CUDA -> SPIRV (authored by dcastagna, committed by tra). · Explain WhyDec 6 2021, 3:12 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 389073 clang/lib/Sema/SemaType.cpp
clang/test/CodeGenCUDASPIRV/kernel-cc.cu
|