mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-09-13 20:22:28 +08:00
Fixed dlopen on linux with lazy load flag
This commit is contained in:
parent
d2c52db3e0
commit
6df7127c23
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user