[arrayfire] 27/29: Add return type to cuda blas (for windows)
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Oct 19 17:48:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository arrayfire.
commit a422f8a34d626be73936b4b10bd1b1be0c50712d
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Sat Oct 17 22:51:11 2015 -0400
Add return type to cuda blas (for windows)
---
src/backend/cuda/blas.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/cuda/blas.cpp b/src/backend/cuda/blas.cpp
index 98bbba2..85f48da 100644
--- a/src/backend/cuda/blas.cpp
+++ b/src/backend/cuda/blas.cpp
@@ -119,7 +119,7 @@ FUNC##_func();
#define BLAS_FUNC( FUNC, TYPE, CONJUGATE, PREFIX ) \
template<> typename FUNC##_func_def_t<TYPE, CONJUGATE>::FUNC##_func_def \
-FUNC##_func<TYPE, CONJUGATE>() { return &cublas##PREFIX##FUNC; }
+FUNC##_func<TYPE, CONJUGATE>() { return (FUNC##_func_def_t<TYPE, CONJUGATE>::FUNC##_func_def)&cublas##PREFIX##FUNC; }
BLAS_FUNC_DEF(dot)
BLAS_FUNC(dot, float, true, S)
@@ -131,7 +131,7 @@ BLAS_FUNC(dot, double, false, D)
#define BLAS_FUNC( FUNC, TYPE, CONJUGATE, PREFIX, SUFFIX) \
template<> typename FUNC##_func_def_t<TYPE, CONJUGATE>::FUNC##_func_def \
-FUNC##_func<TYPE, CONJUGATE>() { return &cublas##PREFIX##FUNC##SUFFIX; }
+FUNC##_func<TYPE, CONJUGATE>() { return (FUNC##_func_def_t<TYPE, CONJUGATE>::FUNC##_func_def)&cublas##PREFIX##FUNC##SUFFIX; }
BLAS_FUNC_DEF(dot)
BLAS_FUNC(dot, cfloat, true , C, c)
--
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