FZGPUModules 2.0
GPU-accelerated modular compression pipelines
Loading...
Searching...
No Matches
nvrtc_jit.h
Go to the documentation of this file.
1#pragma once
2
15#include <string>
16
17namespace fz {
18namespace fused {
19
22
34void* nvrtcGetKernel(const std::string& src, const char* entry);
35
42[[noreturn]] void cuThrow(int result, const char* prefix, const char* what);
43
46#define FZ_CU_CHECK(call, prefix) \
47 do { \
48 CUresult _fz_cu_r = (call); \
49 if (_fz_cu_r != CUDA_SUCCESS) ::fz::fused::cuThrow((int)_fz_cu_r, prefix, #call); \
50 } while (0)
51
52} // namespace fused
53} // namespace fz
Definition dag.h:24
void cuThrow(int result, const char *prefix, const char *what)
void * nvrtcGetKernel(const std::string &src, const char *entry)
bool nvrtcAvailable()
True if the NVRTC library is usable in this process.