File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
paddle/fluid/platform/dynload Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ extern void *cublas_dso_handle;
45
45
std::call_once (cublas_dso_flag, []() { \
46
46
cublas_dso_handle = paddle::platform::dynload::GetCublasDsoHandle (); \
47
47
}); \
48
- void *p_##__name = dlsym (cublas_dso_handle, #__name); \
48
+ static void *p_##__name = dlsym (cublas_dso_handle, #__name); \
49
49
return reinterpret_cast <FUNC_TYPE>(p_##__name)(args...); \
50
50
} \
51
51
}; \
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ extern void EnforceCUDNNLoaded(const char* fn_name);
39
39
cudnn_dso_handle = paddle::platform::dynload::GetCUDNNDsoHandle (); \
40
40
}); \
41
41
EnforceCUDNNLoaded (#__name); \
42
- void * p_##__name = dlsym (cudnn_dso_handle, #__name); \
42
+ static void * p_##__name = dlsym (cudnn_dso_handle, #__name); \
43
43
return reinterpret_cast <cudnn_func>(p_##__name)(args...); \
44
44
} \
45
45
}; \
You can’t perform that action at this time.
0 commit comments