From 9cb83cb1071a0bc0e7a038898d47321fb143c87e Mon Sep 17 00:00:00 2001 From: Cyprien Bosserelle Date: Thu, 10 Oct 2024 17:29:50 +1300 Subject: [PATCH] Fix Compile paged mem --- src/MemManagement.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MemManagement.cu b/src/MemManagement.cu index c3145ed8..1dd9c00f 100755 --- a/src/MemManagement.cu +++ b/src/MemManagement.cu @@ -370,7 +370,7 @@ template void ReallocArray(int nblk, int blksize, Param XParam, Model 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 @@ -416,8 +416,8 @@ template 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)); }