[clblas] 20/125: Adding CUDA_PATH as an option for OPENCL_ROOT

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:18 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 d42e68c886f2157cbccf3d77d55863370f030b31
Author: Pavan Yalamanchili <pavan at accelereyes.com>
Date:   Wed Sep 11 18:18:48 2013 -0400

    Adding CUDA_PATH as an option for OPENCL_ROOT
---
 src/FindOpenCL.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/FindOpenCL.cmake b/src/FindOpenCL.cmake
index 1cdc43d..7398e03 100644
--- a/src/FindOpenCL.cmake
+++ b/src/FindOpenCL.cmake
@@ -48,6 +48,8 @@
 #-----------------------
 if( DEFINED ENV{AMDAPPSDKROOT} )
 	set( OPENCL_ROOT $ENV{AMDAPPSDKROOT} CACHE PATH "Environment variable defining the root of OPENCL implementation" )
+elseif( DEFINED ENV{CUDA_PATH} )
+        set( OPENCL_ROOT $ENV{CUDA_PATH} CACHE PATH "Environment variable defining the root of OPENCL implementation" )
 else( )
 	set( OPENCL_ROOT "/usr/lib" CACHE PATH "Environment variable defining the root of OPENCL implementation" )
 endif( )

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