From 63bad310c1c2c11e29326cf87b635c1600149a0a Mon Sep 17 00:00:00 2001 From: Jeff Donahue Date: Mon, 8 Sep 2014 11:02:31 +0200 Subject: [PATCH] Revert "call __signbit for CUDA >= 6.5 implementation" -- doesn't compile on OSX w/ CUDA 6.5 This reverts commit 8819f5953b903ec8b48e541271737e89a2cd24e6. --- src/caffe/util/math_functions.cu | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/caffe/util/math_functions.cu b/src/caffe/util/math_functions.cu index 176da93..4ae4bba 100644 --- a/src/caffe/util/math_functions.cu +++ b/src/caffe/util/math_functions.cu @@ -329,12 +329,7 @@ void caffe_gpu_powx(const int N, const double* a, DEFINE_AND_INSTANTIATE_GPU_UNARY_FUNC(sign, y[index] = (Dtype(0) < x[index]) - (x[index] < Dtype(0))); -#if CUDA_VERSION >= 6050 -// __signbit to pick up the CUDA function. -DEFINE_AND_INSTANTIATE_GPU_UNARY_FUNC(sgnbit, y[index] = __signbit(x[index])); -#else DEFINE_AND_INSTANTIATE_GPU_UNARY_FUNC(sgnbit, y[index] = signbit(x[index])); -#endif __global__ void popc_kernel(const int n, const float* a, const float* b, uint8_t* y) { -- 2.7.4