From 623fbf8590be929b19a829c68684928eca9158b7 Mon Sep 17 00:00:00 2001 From: Alec Woods Date: Sun, 22 Nov 2020 11:15:53 -0500 Subject: [PATCH] Properly compare cufftResult type to CUFFT_SUCCESS --- Common/UtilNPP/Exceptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/UtilNPP/Exceptions.h b/Common/UtilNPP/Exceptions.h index d3aad1cb8..d14f61146 100644 --- a/Common/UtilNPP/Exceptions.h +++ b/Common/UtilNPP/Exceptions.h @@ -189,7 +189,7 @@ namespace npp /// Macro for checking error return codes from cuFFT calls. #define NPP_CHECK_CUFFT(S) do {cufftResult eCUFFTResult; \ eCUFFTResult = S; \ - if (eCUFFTResult != NPP_SUCCESS) std::cout << "NPP_CHECK_CUFFT - eCUFFTResult = " << eCUFFTResult << std::endl; \ + if (eCUFFTResult != CUFFT_SUCCESS) std::cout << "NPP_CHECK_CUFFT - eCUFFTResult = " << eCUFFTResult << std::endl; \ NPP_ASSERT(eCUFFTResult == CUFFT_SUCCESS);} while (false) } // npp namespace