Skip to content

Commit

Permalink
Fix Compile paged mem
Browse files Browse the repository at this point in the history
  • Loading branch information
CyprienBosserelle committed Oct 10, 2024
1 parent e058769 commit 9cb83cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MemManagement.cu
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ template void ReallocArray<double>(int nblk, int blksize, Param XParam, Model<do

template <class T> void AllocateMappedMemCPU(int nx, int ny,int gpudevice, T*& z)
{

bool bPinGenericMemory;
cudaDeviceProp deviceProp;
#if defined(__APPLE__) || defined(MACOSX)
bPinGenericMemory = false; // Generic Pinning of System Paged memory is not currently supported on Mac OSX
Expand Down Expand Up @@ -416,8 +416,8 @@ template <class T> void AllocateMappedMemCPU(int nx, int ny,int gpudevice, T*& z
else
{

flags = cudaHostAllocMapped;
checkCudaErrors(cudaHostAlloc((void**)&z, bytes, flags));
//flags = cudaHostAllocMapped;
checkCudaErrors(cudaHostAlloc((void**)&z, bytes, cudaHostAllocMapped));


}
Expand Down

0 comments on commit 9cb83cb

Please sign in to comment.