[clfft] 22/109: Add configuration file and cmake modifications to automate build on Travis.

Jérôme Kieffer kieffer-guest at moszumanska.debian.org
Wed May 20 07:29:22 UTC 2015


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

kieffer-guest pushed a commit to branch debian
in repository clfft.

commit d7b95efc4e8560d1009775e540767c14fe0baf4d
Author: Kent Knox <kent.knox at amd>
Date:   Tue Sep 17 09:56:06 2013 -0500

    Add configuration file and cmake modifications to automate build on Travis.
---
 .travis.yml        | 44 ++++++++++++++++++++++++++++++++++++++++++++
 README.md          |  1 +
 src/CMakeLists.txt | 12 +++---------
 3 files changed, 48 insertions(+), 9 deletions(-)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..0bb9d45
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,44 @@
+language: cpp
+
+compiler:
+  - gcc
+
+before_install:
+  - sudo apt-get update -qq
+  - sudo apt-get install -qq fglrx opencl-headers libboost-program-options-dev libfftw3-dev libgtest-dev
+# Uncomment below to help verify the installs above work
+#  - ls -la /usr/lib/libboost*
+#  - ls -la /usr/include/boost
+#  - ls -la /usr/src/gtest
+
+install:
+  - mkdir -p bin/gTest
+  - cd bin/gTest
+  - cmake -DCMAKE_BUILD_TYPE=Release /usr/src/gtest
+  - make
+  - sudo mv libg* /usr/lib
+
+before_script:
+  - cd ${TRAVIS_BUILD_DIR}
+  - mkdir -p bin/clFFT
+  - cd bin/clFFT
+  - cmake -DBoost_NO_SYSTEM_PATHS=OFF ../../src
+
+script: 
+  - make install
+#  - ls -Rla package
+# Run a simple test to validate that the build works; CPU device in a VM
+  - cd package/bin
+  - export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/bin/clFFT/package/lib64:${LD_LIBRARY_PATH}
+  - ./Client -i
+
+after_success:
+  - cd ${TRAVIS_BUILD_DIR}/bin/clFFT
+  - make package
+
+notifications:
+   email:
+     - clmath-developers at googlegroups.com
+   on_success: change
+   on_failure: always
+   
\ No newline at end of file
diff --git a/README.md b/README.md
index 13b73da..84c8010 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@ clMath is a software library containing FFT and BLAS functions written in OpenCL
 
 <a href="http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-math-libraries/">APPML 1.10</a> is the most current generally available version of the library, and pre-built binaries are available for download on both Linux and Windows platforms.
 
+[![Build Status](https://travis-ci.org/kknox/clFFT.png)](https://travis-ci.org/kknox/clFFT)
 ## Introduction to clFFT
 
 The FFT is an implementation of the Discrete Fourier Transform (DFT) that makes use of symmetries in the FFT definition to reduce the mathematical intensity required from O(N<sup>2</sup>) to O(N log<sub>2</sub>( N )) when the sequence length N is the product of small prime factors. Currently, there is no standard API for FFT routines. Hardware vendors usually provide a set of high-performance FFTs optimized for their systems: no two vendors employ the same interfaces for their FFT routin [...]
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 450a383..6c68791 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -66,12 +66,6 @@ option( BUILD_LOADLIBRARIES "Build the optional dynamic load libraries that the
 # Otherwise, create a sensible default that the user can change
 if( DEFINED ENV{BOOST_ROOT} )
 	set( BOOST_ROOT $ENV{BOOST_ROOT} CACHE PATH "Environment variable defining the root of the Boost installation" )
-else( )
-	if( UNIX )
-		set( BOOST_ROOT "/usr" CACHE PATH "Modify this variable to point to the root of the Boost installation" )
-	else( )
-		set( BOOST_ROOT "/Path/To/boost_x_xx_x" CACHE PATH "Modify this variable to point to the root of the Boost installation" )
-	endif()
 endif( )
 
 # Currently, linux has a problem outputing both narrow and wide characters,
@@ -129,9 +123,9 @@ set( Boost_DETAILED_FAILURE_MSG   ON )
 set( Boost_DEBUG ON )
 set( Boost_ADDITIONAL_VERSIONS "1.46.1" "1.46" "1.44.0" "1.44" )
 
-# On linux, the boost installed in the system always appears to override any user boost installs
-if( UNIX )
-	set( Boost_NO_SYSTEM_PATHS TRUE )
+# Default Boost_NO_SYSTEM_PATHS to TRUE if the user does not specify themselves
+if( NOT DEFINED Boost_NO_SYSTEM_PATHS AND UNIX )
+	set( Boost_NO_SYSTEM_PATHS ON )
 endif( )
 
 # This will define Boost_FOUND

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



More information about the debian-science-commits mailing list