From a8b7ea295e5fde3be250c05291016bd39a564b4f Mon Sep 17 00:00:00 2001 From: augustin64 Date: Mon, 27 Jun 2022 11:07:08 +0200 Subject: [PATCH] Remove unnecessary statement --- test/cuda_utils.cu | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/test/cuda_utils.cu b/test/cuda_utils.cu index a1a4ca1..74f8709 100644 --- a/test/cuda_utils.cu +++ b/test/cuda_utils.cu @@ -1,15 +1,9 @@ #include #include -#ifdef __CUDACC__ -# warning compiling for CUDA -# include "../src/mnist/cuda_utils.cu" -# define MAX_CUDA_THREADS 1024 // from NVIDIA documentation -#else -# warning skipping CUDA checks -#endif +#include "../src/mnist/cuda_utils.cu" +#define MAX_CUDA_THREADS 1024 -#ifdef __CUDACC__ #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort=true) { @@ -45,10 +39,4 @@ int main() { printf("OK\n"); return 0; -} -#else -int main() { - printf("Pas de test CUDA à passer\n"); - return 0; -} -#endif \ No newline at end of file +} \ No newline at end of file