Fixed dlopen on linux with lazy load flag

This commit is contained in:
Nikhil Talpallikar 2025-08-06 00:36:35 -07:00
parent d2c52db3e0
commit 6df7127c23

View File

@ -319,7 +319,7 @@ static CUresult LOAD_LIBRARY(CUDADRIVER *pInstance)
CUresult GET_DRIVER_HANDLE(CUDADRIVER* pInstance) CUresult GET_DRIVER_HANDLE(CUDADRIVER* pInstance)
{ {
*pInstance = dlopen(__CudaLibName, RTLD_NOLOAD); *pInstance = dlopen(__CudaLibName, RTLD_LAZY);
if (*pInstance) { if (*pInstance) {
return CUDA_SUCCESS; return CUDA_SUCCESS;
} }