diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-08-29 11:06:08 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-08-29 11:06:08 +0200 |
commit | 6cd7b9ea6b401d84da5114041321ef388dc92092 (patch) | |
tree | d994a83aee8505b974da9988fddff014a877a7f6 /test | |
parent | 8f4b4ad5fb0979abb4ab40b7abae0308bc5cfb61 (diff) |
Fix compilation with cuda 8
Diffstat (limited to 'test')
-rw-r--r-- | test/cuda_basic.cu | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/cuda_basic.cu b/test/cuda_basic.cu index b36ed888d..3cf37d221 100644 --- a/test/cuda_basic.cu +++ b/test/cuda_basic.cu @@ -1,4 +1,11 @@ - +// This file is part of Eigen, a lightweight C++ template library +// for linear algebra. +// +// Copyright (C) 2015-2016 Gael Guennebaud <gael.guennebaud@inria.fr> +// +// This Source Code Form is subject to the terms of the Mozilla +// Public License v. 2.0. If a copy of the MPL was not distributed +// with this file, You can obtain one at http://mozilla.org/MPL/2.0/. // workaround issue between gcc >= 4.7 and cuda 5.5 #if (defined __GNUC__) && (__GNUC__>4 || __GNUC_MINOR__>=7) @@ -12,6 +19,8 @@ #define EIGEN_DEFAULT_DENSE_INDEX_TYPE int #include <math_constants.h> +#include <cuda.h> +#include <cuda_fp16.h> #include "main.h" #include "cuda_common.h" |