From b1c9d0b3337b5863c57805c572fb08447acae3f2 Mon Sep 17 00:00:00 2001 From: Ben Tracy Date: Mon, 11 Mar 2024 13:40:04 +0000 Subject: [PATCH] [CUDA] Fix build issue with version < 12.0 - Default initialize CUDA_KERNEL_NODE_PARAMS --- source/adapters/cuda/command_buffer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/adapters/cuda/command_buffer.cpp b/source/adapters/cuda/command_buffer.cpp index 836854c627..d3f270c701 100644 --- a/source/adapters/cuda/command_buffer.cpp +++ b/source/adapters/cuda/command_buffer.cpp @@ -368,7 +368,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendKernelLaunchExp( try { // Set node param structure with the kernel related data auto &ArgIndices = hKernel->getArgIndices(); - CUDA_KERNEL_NODE_PARAMS NodeParams; + CUDA_KERNEL_NODE_PARAMS NodeParams = {}; NodeParams.func = CuFunc; NodeParams.gridDimX = BlocksPerGrid[0]; NodeParams.gridDimY = BlocksPerGrid[1]; @@ -378,8 +378,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendKernelLaunchExp( NodeParams.blockDimZ = ThreadsPerBlock[2]; NodeParams.sharedMemBytes = LocalSize; NodeParams.kernelParams = const_cast(ArgIndices.data()); - NodeParams.kern = nullptr; - NodeParams.extra = nullptr; // Create and add an new kernel node to the Cuda graph UR_CHECK_ERROR(cuGraphAddKernelNode(&GraphNode, hCommandBuffer->CudaGraph,