mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-09-13 20:22:28 +08:00
fixed formatting
This commit is contained in:
parent
6df7127c23
commit
b4aaab387e
@ -248,7 +248,7 @@ static CUresult LOAD_LIBRARY(CUDADRIVER *pInstance)
|
|||||||
return CUDA_SUCCESS;
|
return CUDA_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
CUresult GET_DRIVER_HANDLE(CUDADRIVER* pInstance)
|
CUresult GET_DRIVER_HANDLE(CUDADRIVER *pInstance)
|
||||||
{
|
{
|
||||||
*pInstance = GetModuleHandle(__CudaLibName);
|
*pInstance = GetModuleHandle(__CudaLibName);
|
||||||
if (*pInstance) {
|
if (*pInstance) {
|
||||||
@ -285,7 +285,7 @@ CUresult GET_DRIVER_HANDLE(CUDADRIVER* pInstance)
|
|||||||
if (alias == NULL && required) { \
|
if (alias == NULL && required) { \
|
||||||
printf("Failed to find error function \"%s\" in %s\n", #name, __CudaLibName); \
|
printf("Failed to find error function \"%s\" in %s\n", #name, __CudaLibName); \
|
||||||
exit(EXIT_FAILURE); \
|
exit(EXIT_FAILURE); \
|
||||||
} \
|
}
|
||||||
|
|
||||||
#elif defined(__unix__) || defined(__QNX__) || defined(__APPLE__) || defined(__MACOSX)
|
#elif defined(__unix__) || defined(__QNX__) || defined(__APPLE__) || defined(__MACOSX)
|
||||||
|
|
||||||
@ -317,7 +317,7 @@ static CUresult LOAD_LIBRARY(CUDADRIVER *pInstance)
|
|||||||
return CUDA_SUCCESS;
|
return CUDA_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
CUresult GET_DRIVER_HANDLE(CUDADRIVER* pInstance)
|
CUresult GET_DRIVER_HANDLE(CUDADRIVER *pInstance)
|
||||||
{
|
{
|
||||||
*pInstance = dlopen(__CudaLibName, RTLD_LAZY);
|
*pInstance = dlopen(__CudaLibName, RTLD_LAZY);
|
||||||
if (*pInstance) {
|
if (*pInstance) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user