mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-28 11:09:15 +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.
|
||||
#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
|
||||
|
|
Loading…
Reference in New Issue
Block a user