[arrayfire] 314/408: Fixing svd params to reflect clmagma

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:20 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 eb66094575f93dad27439572d42fc37dc1ac5bea
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Sun Aug 23 23:59:42 2015 -0400

    Fixing svd params to reflect clmagma
---
 src/backend/opencl/magma/gebrd.cpp        | 3 +--
 src/backend/opencl/magma/magma_cpu_blas.h | 2 +-
 src/backend/opencl/magma/magma_helper.h   | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/backend/opencl/magma/gebrd.cpp b/src/backend/opencl/magma/gebrd.cpp
index dbeeb1f..f1d6817 100644
--- a/src/backend/opencl/magma/gebrd.cpp
+++ b/src/backend/opencl/magma/gebrd.cpp
@@ -258,8 +258,7 @@ magma_gebrd_hybrid(
     ldwrky = n;
 
     /* Set the block/unblock crossover point NX. */
-    nx = nb;
-    assert(nx <= nb);
+    nx = 128;
 
     /* Copy the matrix to the GPU */
     if (copy && minmn - nx >= 1) {
diff --git a/src/backend/opencl/magma/magma_cpu_blas.h b/src/backend/opencl/magma/magma_cpu_blas.h
index e5f7184..9375c67 100644
--- a/src/backend/opencl/magma/magma_cpu_blas.h
+++ b/src/backend/opencl/magma/magma_cpu_blas.h
@@ -24,7 +24,7 @@ extern "C" {
 #endif
 #endif
 
-// TODO: Ask upstream for a more official way to detect it
+// Todo: Ask upstream for a more official way to detect it
 #ifdef OPENBLAS_CONST
 #define IS_OPENBLAS
 #endif
diff --git a/src/backend/opencl/magma/magma_helper.h b/src/backend/opencl/magma/magma_helper.h
index 6e81cb5..f073335 100644
--- a/src/backend/opencl/magma/magma_helper.h
+++ b/src/backend/opencl/magma/magma_helper.h
@@ -22,6 +22,6 @@ template<typename T> bool magma_is_real();
 template<typename T> magma_int_t magma_get_getrf_nb(int num);
 template<typename T> magma_int_t magma_get_potrf_nb(int num);
 template<typename T> magma_int_t magma_get_geqrf_nb(int num);
-template<typename T> magma_int_t magma_get_gebrd_nb(int num) { return 256; }
+template<typename T> magma_int_t magma_get_gebrd_nb(int num) { return 32; }
 
 #endif

-- 
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