Skip to content

Commit 6ab7fa9

Browse files
author
Kent Knox
committed
Added a platform vendor gaurd around the '-g' compiler flag passed to clBuildProgram()
1 parent ddd5980 commit 6ab7fa9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/library/blas/generic/common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,9 @@ setupBuildOpts(
527527
opts[0] = '\0';
528528

529529
#if !defined NDEBUG
530-
addBuildOpt(opts, BUILD_OPTS_MAXLEN, "-g");
530+
// Nvidia runtime does not appear to support the -g flag, at least in their OpenCL v1.1 runtime
531+
if( target.ident.vendor != VENDOR_NVIDIA )
532+
addBuildOpt( opts, BUILD_OPTS_MAXLEN, "-g" );
531533
#endif /* NDEBUG */
532534

533535
if (target.ident.vendor == VENDOR_NVIDIA &&

0 commit comments

Comments
 (0)