mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-26 05:35:55 +01:00
fix pragmas
This commit is contained in:
parent
63cf201ee7
commit
949be9605c
@ -80,8 +80,10 @@ public:
|
|||||||
// Advise that the data is used infrequently. This can
|
// Advise that the data is used infrequently. This can
|
||||||
// significantly influence performance of bulk storage.
|
// significantly influence performance of bulk storage.
|
||||||
accelerator_inline void AdviseInfrequentUse() {
|
accelerator_inline void AdviseInfrequentUse() {
|
||||||
#ifdef __CUDA_ARCH__
|
#ifdef GRID_NVCC
|
||||||
|
#ifndef __CUDA_ARCH__ // only on host
|
||||||
cudaMemAdvise(_odata,_odata_size*sizeof(vobj),cudaMemAdviseSetPreferredLocation,cudaCpuDeviceId);
|
cudaMemAdvise(_odata,_odata_size*sizeof(vobj),cudaMemAdviseSetPreferredLocation,cudaCpuDeviceId);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user