aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-09-05 17:14:20 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-09-05 17:14:20 +0200
commitdabc81751fe2a1eed16967e140e65558e52b5a5f (patch)
treebd92ebae15688f37395f6c40463a43cc46f3d5cb /test
parente13071dd13233b5d07e725453617c40421cf7501 (diff)
Fix compilation when cuda_fp16.h does not exist.
Diffstat (limited to 'test')
-rw-r--r--test/cuda_basic.cu2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cuda_basic.cu b/test/cuda_basic.cu
index 3cf37d221..0a515ce7b 100644
--- a/test/cuda_basic.cu
+++ b/test/cuda_basic.cu
@@ -20,7 +20,9 @@
#include <math_constants.h>
#include <cuda.h>
+#if defined __CUDACC_VER__ && __CUDACC_VER__ >= 70500
#include <cuda_fp16.h>
+#endif
#include "main.h"
#include "cuda_common.h"