Output of CUDA C++ code JIT-compilation.
More...
#include <compilation_output.hpp>
template<>
class cuda::rtc::compilation_output_t< cuda_cpp >
Output of CUDA C++ code JIT-compilation.
◆ get_mangling_of() [1/2]
Obtain the mangled/lowered form of an expression registered earlier, after the compilation.
- Parameters
-
unmangled_name | A name of a __global__ or __device__ function or variable. |
- Returns
- The mangled name (which can actually be used for invoking kernels, moving data etc.). The memory is owned by the NVRTC program and will be released when it is destroyed.
◆ get_mangling_of() [2/2]
Obtain the mangled/lowered form of an expression registered earlier, after the compilation.
- Parameters
-
unmangled_name | A name of a __global__ or __device__ function or variable. |
- Returns
- The mangled name (which can actually be used for invoking kernels, moving data etc.). The memory is owned by the NVRTC program and will be released when it is destroyed.
◆ has_ptx()
- Returns
- true if the program has been successfully compiled, with the result containing PTX code
◆ ptx() [1/2]
Obtain a (nul-terminated) copy of the PTX result of the last compilation.
- Note
- the PTX may be missing in cases such as compilation failure or link-time optimization compilation.
-
This will fail if the program has never been compiled. Write a copy of the PTX resulting from the compilation into a user-provided buffer
- Parameters
-
[in,out] | buffer | A writable buffer large enough to contain the compiled program's PTX code. |
- Returns
- The sub-buffer, starting at the beginning of
buffer
, containing exactly the compiled program's PTX (i.e. sized down to fit the contents)
- Note
- This will throw if the program has never been compiled, or if the buffer is not large enough to contain the compiled PTX code.
◆ ptx() [2/2]
Obtain a copy of the PTX resulting from the program compilation.
- Returns
- an owning container with a nul-terminated copy of the PTX code
- Note
- This will fail if the program compilation has not produced any PTX
The documentation for this class was generated from the following file: