1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Improviements for NVCC. Eigen is not compat with CUDA 9 and must hack to disable device

compilation
This commit is contained in:
paboyle 2018-01-24 13:25:07 +00:00
parent 7331ee2d80
commit 69327db9a9
2 changed files with 21 additions and 2 deletions

View File

@ -38,16 +38,17 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
#ifndef GRID_BASE_H
#define GRID_BASE_H
#include <Grid/DisableWarnings.h>
#include <Grid/Namespace.h>
#include <Grid/GridStd.h>
#include <Grid/threads/Pragmas.h>
#include <Grid/perfmon/Timer.h>
#include <Grid/perfmon/PerfCount.h>
#include <Grid/log/Log.h>
#include <Grid/allocator/AlignedAllocator.h>
#include <Grid/simd/Simd.h>
#include <Grid/serialisation/Serialisation.h>
#include <Grid/threads/Threads.h>
#include <Grid/serialisation/Serialisation.h>
#include <Grid/util/Util.h>
#include <Grid/communicator/Communicator.h>
#include <Grid/cartesian/Cartesian.h>

View File

@ -1,9 +1,27 @@
#include <Grid/GridCore.h>
#pragma once
#if defined __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#ifdef GRID_NVCC
#pragma push
#pragma diag_suppress code_is_unreachable
#undef __NVCC__
#undef __CUDACC__
#undef __CUDA_ARCH__
#endif
#include <Grid/Eigen/Dense>
#ifdef GRID_NVCC
#pragma pop
#define __NVCC__
#define __CUDACC__
#define __CUDA_ARCH__
#endif
#if defined __GNUC__
#pragma GCC diagnostic pop
#endif