3 ms·
There's a good chance the LLVM backend will emit PTX, not machine code. PTX is well documented [1]. Under such a system, the generated PTX would be JITed at r
by sparky 15y ago
There's a good chance the LLVM backend will emit PTX, not machine code. PTX is well documented [1]. Under such a system, the generated PTX would be JITed at runtime by the driver.
Note that LLVM already has a (very experimental and not complete) PTX backend [2].
[1] http://developer.download.nvidia.com/compute/cuda/3_0/toolkit/docs/ptx_isa_2.0.pdf http://developer.download.nvidia.com/compute/cuda/3_0/toolki...
[2] http://llvm.org/releases/3.0/docs/ReleaseNotes.html#whatsnew http://llvm.org/releases/3.0/docs/ReleaseNotes.html#whatsnew
- paxswill 15y agoI'm pretty sure this is the case by playing with the OpenCL side of CUDA. If the '--version' flag is passed to the OpenCL compiler (at least the one with CUDA 3.0), info from an LLVM build from a year ago is dumped. The '-cl-nv-verbose' flag is also documented to pass '--verbose' to the ptxas assembler.