From 527b29dbd0dac5ff100e8946997aaf3d54c33958 Mon Sep 17 00:00:00 2001 From: Nikhil Talpallikar Date: Tue, 5 Aug 2025 13:49:28 -0700 Subject: [PATCH] Clean implementation for failure path when cuInit fails. Removed CHECKED_CALL macro which returned prematurely --- .../matrixMulDynlinkJIT/cuda_drvapi_dynlink.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c b/Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c index 6f1c9738..05048e15 100644 --- a/Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c +++ b/Samples/0_Introduction/matrixMulDynlinkJIT/cuda_drvapi_dynlink.c @@ -324,14 +324,6 @@ static CUresult LOAD_LIBRARY(CUDADRIVER *pInstance) #error unsupported platform #endif -#define CHECKED_CALL(call) \ - do { \ - CUresult result = (call); \ - if (CUDA_SUCCESS != result) { \ - return result; \ - } \ - } while (0) - #define GET_PROC_REQUIRED(name) GET_PROC_EX(name, name, 1) #define GET_PROC_OPTIONAL(name) GET_PROC_EX(name, name, 0) #define GET_PROC(name) GET_PROC_REQUIRED(name)