AstroGPU/swarm — Issue #4: Compile error in fakemmap.cpp 
Author: eford
Created: 2012-01-12 05:26:57+00:00
State: open

On tesla4.hpc.ufl.edu (CUDA 4.0), there's a type problem. Replacing the constant with SSIZE_MAX with 10240UL appears to fix it. But it would be nice to use a named quantity there instead.

[eford@tesla4 swarm]$ make
[ 3%] Building NVCC (Device) object src/./swarmng_generated_hermite_adap.cu.o
[ 6%] Building NVCC (Device) object src/./swarmng_generated_rkck.cu.o
[ 10%] Building NVCC (Device) object src/./swarmng_generated_euler.cu.o
[ 13%] Building NVCC (Device) object src/./swarmng_generated_mvs.cu.o
[ 17%] Building NVCC (Device) object src/./swarmng_generated_verlet.cu.o
Scanning dependencies of target swarmng
[ 20%] Building CXX object src/CMakeFiles/swarmng.dir/swarm/plugin.cpp.o
[ 24%] Building CXX object src/CMakeFiles/swarmng.dir/swarm/peyton/binarystream.cpp.o
[ 27%] Building CXX object src/CMakeFiles/swarmng.dir/swarm/peyton/util.cpp.o
[ 31%] Building CXX object src/CMakeFiles/swarmng.dir/swarm/peyton/memorymap.cpp.o
[ 34%] Building CXX object src/CMakeFiles/swarmng.dir/swarm/peyton/fakemmap.cpp.o
/home/eford/AstroGpu/swarm/src/swarm/peyton/fakemmap.cpp:14: error: expected unqualified-id before numeric constant
/home/eford/AstroGpu/swarm/src/swarm/peyton/fakemmap.cpp: In function ‘void* fakemmap(void*, size_t, int, int, int, off_t)’:
/home/eford/AstroGpu/swarm/src/swarm/peyton/fakemmap.cpp:29: error: no matching function for call to ‘min(long unsigned int, long int)’
/home/eford/AstroGpu/swarm/src/swarm/peyton/fakemmap.cpp: In function ‘int fakemsync(void*, size_t, int)’:
/home/eford/AstroGpu/swarm/src/swarm/peyton/fakemmap.cpp:58: error: no matching function for call to ‘min(long unsigned int, long int)’
make[2]: *** [src/CMakeFiles/swarmng.dir/swarm/peyton/fakemmap.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/swarmng.dir/all] Error 2
make: *** [all] Error 2
[eford@tesla4 swarm]$