Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/THC
diff options
context:
space:
mode:
authorsoumith <soumith@gmail.com>2016-09-10 23:40:27 +0300
committersoumith <soumith@gmail.com>2016-09-10 23:40:27 +0300
commitb9d8619950341307e602b5338d20771503dfabda (patch)
tree2b9eb21e10d920bdfd91e9c805d5c36beeeb7f18 /lib/THC
parent1075ce3777b8196cce3f6626519687441bf0affe (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.cuh2
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 <>