[arrayfire] 190/408: Added uintl, intl support for jit operations in cuda backend
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit d8760f6f04de60e734b5167ec2823abb9f808ba7
Author: pradeep <pradeep at arrayfire.com>
Date: Wed Aug 5 10:44:04 2015 -0400
Added uintl, intl support for jit operations in cuda backend
---
src/backend/cuda/JIT/cast.cu | 2 ++
src/backend/cuda/JIT/exp.cu | 4 ++++
src/backend/cuda/JIT/hyper.cu | 2 ++
src/backend/cuda/JIT/logic.cu | 2 ++
src/backend/cuda/JIT/numeric.cu | 16 ++++++++++++++++
src/backend/cuda/JIT/trig.cu | 4 ++++
6 files changed, 30 insertions(+)
diff --git a/src/backend/cuda/JIT/cast.cu b/src/backend/cuda/JIT/cast.cu
index 6b1c9b0..db41c52 100644
--- a/src/backend/cuda/JIT/cast.cu
+++ b/src/backend/cuda/JIT/cast.cu
@@ -54,6 +54,8 @@ CAST_BASIC_BOOL(___mkJ, char, uintl)
CPLX_BASIC(___mk##X, T, Tr, uint) \
CPLX_BASIC(___mk##X, T, Tr, char) \
CPLX_BASIC(___mk##X, T, Tr, uchar) \
+ CPLX_BASIC(___mk##X, T, Tr, uintl) \
+ CPLX_BASIC(___mk##X, T, Tr, intl) \
CPLX_CAST(cfloat, float, C)
CPLX_CAST(cdouble, double, Z)
diff --git a/src/backend/cuda/JIT/exp.cu b/src/backend/cuda/JIT/exp.cu
index 202c03c..23a3300 100644
--- a/src/backend/cuda/JIT/exp.cu
+++ b/src/backend/cuda/JIT/exp.cu
@@ -32,6 +32,8 @@ __device__ float sigmoidf(float in)
MATH_BASIC(fn, uint) \
MATH_BASIC(fn, char) \
MATH_BASIC(fn, uchar) \
+ MATH_BASIC(fn, uintl) \
+ MATH_BASIC(fn, intl) \
__device__ double ___##fn(double a) \
{ \
return fn(a); \
@@ -64,6 +66,8 @@ MATH(cbrt)
MATH2_BASIC(fn, uint) \
MATH2_BASIC(fn, char) \
MATH2_BASIC(fn, uchar) \
+ MATH2_BASIC(fn, uintl) \
+ MATH2_BASIC(fn, intl) \
__device__ double ___##fn(double a, double b) \
{ \
return fn(a, b); \
diff --git a/src/backend/cuda/JIT/hyper.cu b/src/backend/cuda/JIT/hyper.cu
index 23cdb84..00ea2da 100644
--- a/src/backend/cuda/JIT/hyper.cu
+++ b/src/backend/cuda/JIT/hyper.cu
@@ -22,6 +22,8 @@
MATH_BASIC(fn, uint) \
MATH_BASIC(fn, char) \
MATH_BASIC(fn, uchar) \
+ MATH_BASIC(fn, uintl) \
+ MATH_BASIC(fn, intl) \
__device__ double ___##fn(double a) \
{ \
return fn(a); \
diff --git a/src/backend/cuda/JIT/logic.cu b/src/backend/cuda/JIT/logic.cu
index a9c8f71..883f3db 100644
--- a/src/backend/cuda/JIT/logic.cu
+++ b/src/backend/cuda/JIT/logic.cu
@@ -50,6 +50,8 @@ LOGIC(or, ||)
LOGIC_BASIC(fn, op, uint) \
LOGIC_BASIC(fn, op, char) \
LOGIC_BASIC(fn, op, uchar) \
+ LOGIC_BASIC(fn, op, intl) \
+ LOGIC_BASIC(fn, op, uintl) \
\
__device__ bool ___##fn(cfloat a, cfloat b) \
{ \
diff --git a/src/backend/cuda/JIT/numeric.cu b/src/backend/cuda/JIT/numeric.cu
index 5471710..158cc24 100644
--- a/src/backend/cuda/JIT/numeric.cu
+++ b/src/backend/cuda/JIT/numeric.cu
@@ -37,6 +37,8 @@ MATH_NOOP(floor, int)
MATH_NOOP(floor, uint)
MATH_NOOP(floor, char)
MATH_NOOP(floor, uchar)
+MATH_NOOP(floor, uintl)
+MATH_NOOP(floor, intl)
MATH_BASIC(ceil, float)
MATH_BASIC(ceil, double)
@@ -44,6 +46,8 @@ MATH_NOOP(ceil, int)
MATH_NOOP(ceil, uint)
MATH_NOOP(ceil, char)
MATH_NOOP(ceil, uchar)
+MATH_NOOP(ceil, uintl)
+MATH_NOOP(ceil, intl)
MATH_BASIC(round, float)
MATH_BASIC(round, double)
@@ -51,6 +55,8 @@ MATH_NOOP(round, int)
MATH_NOOP(round, uint)
MATH_NOOP(round, char)
MATH_NOOP(round, uchar)
+MATH_NOOP(round, uintl)
+MATH_NOOP(round, intl)
MATH_BASIC(trunc, float)
MATH_BASIC(trunc, double)
@@ -58,6 +64,8 @@ MATH_NOOP(trunc, int)
MATH_NOOP(trunc, uint)
MATH_NOOP(trunc, char)
MATH_NOOP(trunc, uchar)
+MATH_NOOP(trunc, uintl)
+MATH_NOOP(trunc, intl)
MATH_BASIC(sign, float)
MATH_BASIC(sign, double)
@@ -65,6 +73,8 @@ MATH_NOOP(sign, int)
MATH_NOOP(sign, uint)
MATH_NOOP(sign, char)
MATH_NOOP(sign, uchar)
+MATH_NOOP(sign, uintl)
+MATH_NOOP(sign, intl)
MATH_BASIC(abs, float)
MATH_BASIC(abs, double)
@@ -72,6 +82,8 @@ MATH_BASIC(abs, int)
MATH_CAST(abs, char, int)
MATH_NOOP(abs, uint)
MATH_NOOP(abs, uchar)
+MATH_NOOP(abs, uintl)
+MATH_NOOP(abs, intl)
MATH_BASIC(tgamma, float)
MATH_BASIC(tgamma, double)
@@ -79,6 +91,8 @@ MATH_CAST(tgamma, int, float)
MATH_CAST(tgamma, uint, float)
MATH_CAST(tgamma, char, float)
MATH_CAST(tgamma, uchar, float)
+MATH_CAST(tgamma, uintl, float)
+MATH_CAST(tgamma, intl, float)
MATH_BASIC(lgamma, float)
MATH_BASIC(lgamma, double)
@@ -86,6 +100,8 @@ MATH_CAST(lgamma, int, float)
MATH_CAST(lgamma, uint, float)
MATH_CAST(lgamma, char, float)
MATH_CAST(lgamma, uchar, float)
+MATH_CAST(lgamma, uintl, float)
+MATH_CAST(lgamma, intl, float)
__device__ float ___abs(cfloat a) { return cuCabsf(a); }
__device__ double ___abs(cdouble a) { return cuCabs(a); }
diff --git a/src/backend/cuda/JIT/trig.cu b/src/backend/cuda/JIT/trig.cu
index b224e37..28f098e 100644
--- a/src/backend/cuda/JIT/trig.cu
+++ b/src/backend/cuda/JIT/trig.cu
@@ -22,6 +22,8 @@
MATH_BASIC(fn, uint) \
MATH_BASIC(fn, char) \
MATH_BASIC(fn, uchar) \
+ MATH_BASIC(fn, uintl) \
+ MATH_BASIC(fn, intl) \
__device__ double ___##fn(double a) \
{ \
return fn(a); \
@@ -47,6 +49,8 @@ ATAN2(int)
ATAN2(uint)
ATAN2(char)
ATAN2(uchar)
+ATAN2(uintl)
+ATAN2(intl)
__device__ double ___atan2(double x, double y)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list