mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
CUDA: Properly construct CUcontext in tests
This commit is contained in:
committed by
Brad King
parent
f25982c422
commit
72b8814f85
@@ -37,7 +37,7 @@ int main()
|
||||
|
||||
CUcontext context;
|
||||
#if defined(__CUDACC_VER_MAJOR__) && __CUDACC_VER_MAJOR__ >= 13
|
||||
CUctxCreateParams params;
|
||||
CUctxCreateParams params = {};
|
||||
params.execAffinityParams = nullptr;
|
||||
params.numExecAffinityParams = 0;
|
||||
cuCtxCreate(&context, ¶ms, 0, device);
|
||||
|
||||
@@ -37,7 +37,7 @@ int main()
|
||||
|
||||
CUcontext context;
|
||||
#if defined(__CUDACC_VER_MAJOR__) && __CUDACC_VER_MAJOR__ >= 13
|
||||
CUctxCreateParams params;
|
||||
CUctxCreateParams params = {};
|
||||
params.execAffinityParams = nullptr;
|
||||
params.numExecAffinityParams = 0;
|
||||
cuCtxCreate(&context, ¶ms, 0, device);
|
||||
|
||||
@@ -19,7 +19,7 @@ int main()
|
||||
|
||||
CUcontext context;
|
||||
#if defined(__CUDACC_VER_MAJOR__) && __CUDACC_VER_MAJOR__ >= 13
|
||||
CUctxCreateParams params;
|
||||
CUctxCreateParams params = {};
|
||||
params.execAffinityParams = nullptr;
|
||||
params.numExecAffinityParams = 0;
|
||||
cuCtxCreate(&context, ¶ms, 0, device);
|
||||
|
||||
Reference in New Issue
Block a user