mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 17:49:18 +08:00
Properly compare cufftResult type to CUFFT_SUCCESS
This commit is contained in:
parent
c4e2869a2b
commit
623fbf8590
|
@ -189,7 +189,7 @@ namespace npp
|
||||||
/// Macro for checking error return codes from cuFFT calls.
|
/// Macro for checking error return codes from cuFFT calls.
|
||||||
#define NPP_CHECK_CUFFT(S) do {cufftResult eCUFFTResult; \
|
#define NPP_CHECK_CUFFT(S) do {cufftResult eCUFFTResult; \
|
||||||
eCUFFTResult = S; \
|
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_ASSERT(eCUFFTResult == CUFFT_SUCCESS);} while (false)
|
||||||
|
|
||||||
} // npp namespace
|
} // npp namespace
|
||||||
|
|
Loading…
Reference in New Issue
Block a user