Fixed dlopen on linux with lazy load flag

This commit is contained in:
Nikhil Talpallikar 2025-08-06 00:36:35 -07:00 committed by Rob Armstrong
parent 69186dc51e
commit cccbf2c284

View File

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