diff options
author | soumith <soumith@gmail.com> | 2016-09-10 23:40:27 +0300 |
---|---|---|
committer | soumith <soumith@gmail.com> | 2016-09-10 23:40:27 +0300 |
commit | b9d8619950341307e602b5338d20771503dfabda (patch) | |
tree | 2b9eb21e10d920bdfd91e9c805d5c36beeeb7f18 /lib/THC | |
parent | 1075ce3777b8196cce3f6626519687441bf0affe (diff) |
add int and long tests for abs and fix recursive bug in abs
Diffstat (limited to 'lib/THC')
-rw-r--r-- | lib/THC/THCNumerics.cuh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/THC/THCNumerics.cuh b/lib/THC/THCNumerics.cuh index 680ca9c..a9d7897 100644 --- a/lib/THC/THCNumerics.cuh +++ b/lib/THC/THCNumerics.cuh @@ -74,7 +74,7 @@ struct THCNumerics<int> { static inline __host__ __device__ bool ne(int a, int b) { return a != b; } static inline __host__ __device__ int add(int a, int b) { return a + b; } - static inline __host__ __device__ int abs(int a) { return abs(a); } + static inline __host__ __device__ int abs(int a) { return ::abs(a); } }; template <> |