Now nvcc is used to compile kernels only. All host code, incl. device.cc, MPI communication and others are now compiled with the host C++ compiler. This should work around an nvcc/MPI bug on Puhti.

This commit is contained in:
jpekkila
2019-12-03 15:12:17 +02:00
parent 8bffb2a1d0
commit f14e35620c
14 changed files with 869 additions and 686 deletions

View File

@@ -26,7 +26,10 @@ extern "C" {
#include <stdlib.h> // size_t
//#include <vector_types.h> // CUDA vector types (float4, etc)
#ifndef __CUDACC__
//#ifndef __CUDACC__
#if defined(AC_USE_CUDA_RUNTIME_API) || defined(__CUDACC__)
#include <cuda_runtime_api.h>
#else
typedef struct {
int x, y, z;
} int3;
@@ -42,7 +45,8 @@ typedef struct {
typedef struct {
double x, y, z;
} double3;
#endif // __CUDACC__
#endif
//#endif // __CUDACC__
// Library flags
#define STENCIL_ORDER (6)