mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-07 04:35:56 +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
|
||||
// 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
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user