Skip to content

Commit 1f6cbe6

Browse files
authored
Merge pull request #1426 from Bensuo/ben/cuda-param-fix
[CUDA] Fix build issue with version < 12.0
2 parents 91c9e91 + b1c9d0b commit 1f6cbe6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/adapters/cuda/command_buffer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendKernelLaunchExp(
368368
try {
369369
// Set node param structure with the kernel related data
370370
auto &ArgIndices = hKernel->getArgIndices();
371-
CUDA_KERNEL_NODE_PARAMS NodeParams;
371+
CUDA_KERNEL_NODE_PARAMS NodeParams = {};
372372
NodeParams.func = CuFunc;
373373
NodeParams.gridDimX = BlocksPerGrid[0];
374374
NodeParams.gridDimY = BlocksPerGrid[1];
@@ -378,8 +378,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendKernelLaunchExp(
378378
NodeParams.blockDimZ = ThreadsPerBlock[2];
379379
NodeParams.sharedMemBytes = LocalSize;
380380
NodeParams.kernelParams = const_cast<void **>(ArgIndices.data());
381-
NodeParams.kern = nullptr;
382-
NodeParams.extra = nullptr;
383381

384382
// Create and add an new kernel node to the Cuda graph
385383
UR_CHECK_ERROR(cuGraphAddKernelNode(&GraphNode, hCommandBuffer->CudaGraph,

0 commit comments

Comments
 (0)