Skip to content

Commit 20b6032

Browse files
author
Timmy
committed
Merge pull request #21 from kknox/develop
Add configuration file and cmake modifications to automate build
2 parents d52d676 + d7b95ef commit 20b6032

File tree

3 files changed

+48
-9
lines changed

3 files changed

+48
-9
lines changed

.travis.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
language: cpp
2+
3+
compiler:
4+
- gcc
5+
6+
before_install:
7+
- sudo apt-get update -qq
8+
- sudo apt-get install -qq fglrx opencl-headers libboost-program-options-dev libfftw3-dev libgtest-dev
9+
# Uncomment below to help verify the installs above work
10+
# - ls -la /usr/lib/libboost*
11+
# - ls -la /usr/include/boost
12+
# - ls -la /usr/src/gtest
13+
14+
install:
15+
- mkdir -p bin/gTest
16+
- cd bin/gTest
17+
- cmake -DCMAKE_BUILD_TYPE=Release /usr/src/gtest
18+
- make
19+
- sudo mv libg* /usr/lib
20+
21+
before_script:
22+
- cd ${TRAVIS_BUILD_DIR}
23+
- mkdir -p bin/clFFT
24+
- cd bin/clFFT
25+
- cmake -DBoost_NO_SYSTEM_PATHS=OFF ../../src
26+
27+
script:
28+
- make install
29+
# - ls -Rla package
30+
# Run a simple test to validate that the build works; CPU device in a VM
31+
- cd package/bin
32+
- export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/bin/clFFT/package/lib64:${LD_LIBRARY_PATH}
33+
- ./Client -i
34+
35+
after_success:
36+
- cd ${TRAVIS_BUILD_DIR}/bin/clFFT
37+
- make package
38+
39+
notifications:
40+
email:
41+
- clmath-developers@googlegroups.com
42+
on_success: change
43+
on_failure: always
44+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ clMath is a software library containing FFT and BLAS functions written in OpenCL
55

66
<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.
77

8+
[![Build Status](https://travis-ci.org/kknox/clFFT.png)](https://travis-ci.org/kknox/clFFT)
89
## Introduction to clFFT
910

1011
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 routines. clFFT provides a set of FFT routines that are optimized for AMD graphics processors, but also are functional across CPU and other compute devices.

src/CMakeLists.txt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ option( BUILD_LOADLIBRARIES "Build the optional dynamic load libraries that the
6666
# Otherwise, create a sensible default that the user can change
6767
if( DEFINED ENV{BOOST_ROOT} )
6868
set( BOOST_ROOT $ENV{BOOST_ROOT} CACHE PATH "Environment variable defining the root of the Boost installation" )
69-
else( )
70-
if( UNIX )
71-
set( BOOST_ROOT "/usr" CACHE PATH "Modify this variable to point to the root of the Boost installation" )
72-
else( )
73-
set( BOOST_ROOT "/Path/To/boost_x_xx_x" CACHE PATH "Modify this variable to point to the root of the Boost installation" )
74-
endif()
7569
endif( )
7670

7771
# Currently, linux has a problem outputing both narrow and wide characters,
@@ -129,9 +123,9 @@ set( Boost_DETAILED_FAILURE_MSG ON )
129123
set( Boost_DEBUG ON )
130124
set( Boost_ADDITIONAL_VERSIONS "1.46.1" "1.46" "1.44.0" "1.44" )
131125

132-
# On linux, the boost installed in the system always appears to override any user boost installs
133-
if( UNIX )
134-
set( Boost_NO_SYSTEM_PATHS TRUE )
126+
# Default Boost_NO_SYSTEM_PATHS to TRUE if the user does not specify themselves
127+
if( NOT DEFINED Boost_NO_SYSTEM_PATHS AND UNIX )
128+
set( Boost_NO_SYSTEM_PATHS ON )
135129
endif( )
136130

137131
# This will define Boost_FOUND

0 commit comments

Comments
 (0)