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
28void* nvrtcGetKernel(const std::string& src, const char* entry);
29
36[[noreturn]] void cuThrow(int result, const char* prefix, const char* what);
37
40#define FZ_CU_CHECK(call, prefix) \
41 do { \
42 CUresult _fz_cu_r = (call); \
43 if (_fz_cu_r != CUDA_SUCCESS) ::fz::fused::cuThrow((int)_fz_cu_r, prefix, #call); \
44 } while (0)
45
46} // namespace fused
47} // 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 NVRTC + the CUDA driver are usable in this process.