From 13d2ba3af71a4110dbe24772555cdc3d341425a8 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Fri, 27 Jul 2012 21:56:35 -0800 Subject: - can compile on MacOSX (tested on Lion)... no regression testing done on Mac - ptxplus ... edits to eliminate some warnings with older gcc about printfs without string literal - eliminate warning about map (just too annoying while testing on Mac) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13560] --- src/cuda-sim/cuda-math.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/cuda-sim/cuda-math.h') diff --git a/src/cuda-sim/cuda-math.h b/src/cuda-sim/cuda-math.h index b4502a1..4721e8a 100644 --- a/src/cuda-sim/cuda-math.h +++ b/src/cuda-sim/cuda-math.h @@ -336,11 +336,6 @@ float __powf(float a, float b) // math functions missing in Mac OSX GCC #ifdef __APPLE__ -int isnanf(float a) -{ - return (isnan(a)); -} - int __signbitd(double d) { unsigned long long int u = *((unsigned long long int*)&d); @@ -353,8 +348,17 @@ int __signbitd(double d) #include #undef __CUDA_INTERNAL_COMPILATION__ #undef __attribute__ + #endif } +// math functions missing in Mac OSX GCC +#ifdef __APPLE__ +int isnanf(float a) +{ + return (isnan(a)); +} +#endif + #endif -- cgit v1.3