mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-24 07:36:24 +01:00
Remove unnecessary statement
This commit is contained in:
parent
8db82602fd
commit
a8b7ea295e
@ -1,15 +1,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifdef __CUDACC__
|
#include "../src/mnist/cuda_utils.cu"
|
||||||
# warning compiling for CUDA
|
#define MAX_CUDA_THREADS 1024
|
||||||
# include "../src/mnist/cuda_utils.cu"
|
|
||||||
# define MAX_CUDA_THREADS 1024 // from NVIDIA documentation
|
|
||||||
#else
|
|
||||||
# warning skipping CUDA checks
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __CUDACC__
|
|
||||||
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }
|
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }
|
||||||
inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort=true)
|
inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort=true)
|
||||||
{
|
{
|
||||||
@ -46,9 +40,3 @@ int main() {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
int main() {
|
|
||||||
printf("Pas de test CUDA à passer\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue
Block a user