[PATCH] D32431: [Polly] Added OpenCL Runtime to GPURuntime Library for GPGPU CodeGen
Philipp Schaad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 29 07:40:44 PDT 2017
PhilippSchaad added inline comments.
================
Comment at: lib/CodeGen/PPCGCodeGeneration.cpp:1623
+ else if (Runtime == GPURuntime::OpenCL)
+ GPUTriple = llvm::Triple(Triple::normalize("nvptx64-nvidia-nvcl"));
+ break;
----------------
singam-sanjay wrote:
> Does `nvptx64-nvidia-nvcl` mean OpenCL code meant to be run on NVIDIA GPUs ?
Yes, exactly. It generates a slightly different flavor of PTX, which can be used by OpenCL to generate a kernel from the PTX binary (on NVIDIA GPUs). If you were to use the standard CUDA PTX, OpenCL would complain because of wrong argument accesses.
https://reviews.llvm.org/D32431
More information about the llvm-commits
mailing list