[clblas] 98/125: Added a platform vendor gaurd around the '-g' compiler flag passed to clBuildProgram()

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clblas.

commit 6ab7fa946cc8e3a9d7b0dcde5f972e636eb81b6f
Author: Kent Knox <kent.knox at amd>
Date:   Wed Sep 24 16:11:00 2014 -0500

    Added a platform vendor gaurd around the '-g' compiler flag passed to clBuildProgram()
---
 src/library/blas/generic/common.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/library/blas/generic/common.c b/src/library/blas/generic/common.c
index fef0880..1464f79 100644
--- a/src/library/blas/generic/common.c
+++ b/src/library/blas/generic/common.c
@@ -527,7 +527,9 @@ setupBuildOpts(
     opts[0] = '\0';
 
 #if !defined NDEBUG
-    addBuildOpt(opts, BUILD_OPTS_MAXLEN, "-g");
+    // Nvidia runtime does not appear to support the -g flag, at least in their OpenCL v1.1 runtime
+    if( target.ident.vendor != VENDOR_NVIDIA )
+        addBuildOpt( opts, BUILD_OPTS_MAXLEN, "-g" );
 #endif  /* NDEBUG */
 
     if (target.ident.vendor == VENDOR_NVIDIA &&

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git



More information about the debian-science-commits mailing list