1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-07 04:35:56 +01:00

fix pragmas

This commit is contained in:
Christoph Lehner 2020-05-02 16:20:03 -04:00
parent 63cf201ee7
commit 949be9605c

View File

@ -80,8 +80,10 @@ public:
// Advise that the data is used infrequently. This can
// significantly influence performance of bulk storage.
accelerator_inline void AdviseInfrequentUse() {
#ifdef __CUDA_ARCH__
#ifdef GRID_NVCC
#ifndef __CUDA_ARCH__ // only on host
cudaMemAdvise(_odata,_odata_size*sizeof(vobj),cudaMemAdviseSetPreferredLocation,cudaCpuDeviceId);
#endif
#endif
};
};