-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix null pointer reference issue with cuda driver API function pointer… #379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix null pointer reference issue with cuda driver API function pointer… #379
Conversation
…s in case cuInit fails
updates |
…KED_CALL macro which returned prematurely
Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c
Outdated
Show resolved
Hide resolved
… with error in case of LOADLIBRARY failureas initialize of function pointers in case of LOADLIBRARY failure will fail
Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c
Outdated
Show resolved
Hide resolved
Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c
Outdated
Show resolved
Hide resolved
Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c
Outdated
Show resolved
Hide resolved
Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c
Outdated
Show resolved
Hide resolved
Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c
Outdated
Show resolved
Hide resolved
Thanks for submitting this pull request! Functionally looks good, but whitespace and code formatting are not correct for this repository's style guidelines. Can you please run |
fixed |
Looks good, thanks for your submission. Merging. |
We see app crash when CuInit returns failure before initializing all the function pointers. Error path should not crash. PR for failsafe error path.