I want to call this function, but I don’t know how to pass this parameter
If I write code like this, it will crash
CUlibrary library;
CUkernel kernel;
CUjit_option jitOptions[] = {
CUjit_option::CU_JIT_MAX_REGISTERS,
};
void* jitOptionsValues[] = {
NULL,
};
CUlibraryOption libraryOptions[] = {
CUlibraryOption::CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE,
};
void* libraryOptionValues[] = {
(void*)1,
(void*)0
};
cuLibraryLoadFromFile(&library,"cu_kernel.cubin", jitOptions, jitOptionsValues, 1, libraryOptions, libraryOptionValues, 1);