[clblas] 08/61: do not build bingen if offline compilation is disabled
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri Jul 24 22:49:43 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 d00b59aec646e83d6a7bcf6931d20408771fa55e
Author: Timmy <timmy.liu at amd.com>
Date: Thu Apr 16 16:54:06 2015 -0500
do not build bingen if offline compilation is disabled
---
src/library/CMakeLists.txt | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt
index 91e57f7..3378d19 100644
--- a/src/library/CMakeLists.txt
+++ b/src/library/CMakeLists.txt
@@ -368,11 +368,14 @@ ExternalProject_Add( tplgen
INSTALL_COMMAND ""
)
-ExternalProject_Add( bingen
- URL "${CMAKE_SOURCE_DIR}/library/tools/bingen"
- CMAKE_ARGS -DOPENCL_LIBRARIES=${OPENCL_LIBRARIES} -DOPENCL_INCLUDE_DIRS=${OPENCL_INCLUDE_DIRS}
- INSTALL_COMMAND ""
-)
+# if offline compilation is not chosen, bingen should not be built
+if(OCL_OFFLINE_BUILD_TAHITI_KERNEL OR OCL_OFFLINE_BUILD_HAWAII_KERNEL OR OCL_OFFLINE_BUILD_BONAIRE_KERNEL)
+ ExternalProject_Add( bingen
+ URL "${CMAKE_SOURCE_DIR}/library/tools/bingen"
+ CMAKE_ARGS -DOPENCL_LIBRARIES=${OPENCL_LIBRARIES} -DOPENCL_INCLUDE_DIRS=${OPENCL_INCLUDE_DIRS}
+ INSTALL_COMMAND ""
+ )
+endif()
message(STATUS "OCL_VERSION = ${OCL_VERSION}")
if( OCL_VERSION STREQUAL "2.0")
@@ -407,7 +410,10 @@ else()
endif()
#set( bingenBinaryDir "${CMAKE_BINARY_DIR}/library/tools/bingen/staging" )
-ExternalProject_Get_Property( bingen binary_dir )
+# if offline compilation is not chosen, bingen should not be built
+if(OCL_OFFLINE_BUILD_TAHITI_KERNEL OR OCL_OFFLINE_BUILD_HAWAII_KERNEL OR OCL_OFFLINE_BUILD_BONAIRE_KERNEL)
+ ExternalProject_Get_Property( bingen binary_dir )
+
set( bingenBinaryDir "" )
if( CMAKE_COMPILER_IS_GNUCXX )
set( bingenBinaryDir "${binary_dir}/staging" )
@@ -438,6 +444,7 @@ add_custom_command(TARGET GEN_CLBIN
)
add_dependencies( GEN_CLBIN bingen )
endif()
+endif()#if(OCL_OFFLINE_BUILD_TAHITI_KERNEL OR OCL_OFFLINE_BUILD_HAWAII_KERNEL OR OCL_OFFLINE_BUILD_BONAIRE_KERNEL)
ExternalProject_Get_Property( tplgen binary_dir )
--
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