[clblas] 25/125: add to travis build. change default device type to cpu. need to enable build-testcorrectness (link to acml) in the build.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:19 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 ba54c93e11de42340288a711983b33831977fbbd
Author: Timmy <timmy.liu at amd.com>
Date:   Wed Sep 18 11:06:57 2013 -0500

    add to travis build. change default device type to cpu. need to enable build-testcorrectness (link to acml) in the build.
---
 .travis.yml           | 44 ++++++++++++++++++++++++++++++++++++++++++++
 README.md             |  4 +++-
 src/client/client.cpp |  2 +-
 3 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..1039bc4
--- /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 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/clBLAS
+  - cd bin/clBLAS
+  - cmake -DBUILD_TEST=OFF -DBUILD_CLIENT=ON ../../src
+
+script: 
+  - make install
+#  - ls -Rla package
+# Run a simple test to validate that the build works; CPU device in a VM
+  - cd client
+  - export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/bin/clBLAS/package/lib64:${LD_LIBRARY_PATH}
+  - ./client 
+
+after_success:
+  - cd ${TRAVIS_BUILD_DIR}/bin/clBLAS
+  - 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 43ccdf6..caa0e15 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
 clBLAS
 =====
+[![Build Status](https://travis-ci.org/TimmyLiu/clBLAS.png)](https://travis-ci.org/TimmyLiu/clBLAS)
+
 This repository houses the code for the OpenCL™ BLAS portion of clMath.  The complete set of BLAS level 1, 2 & 3 routines is implemented. Please see <a href="http://www.netlib.org/blas/index.html"> Netlib BLAS </a> for the list of supported routines.  In addition to GPU devices, the library also supports running on CPU devices to facilitate debugging and multicore programming.  <a href="http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-ma [...]
 
 The primary goal of clBLAS is to make it easier for developers to utilize the inherent performance and power efficiency benefits of heterogeneous computing.  clBLAS interfaces do not hide nor wrap OpenCL interfaces, but rather leaves OpenCL state management to the control of the user to allow for maximum performance and flexibility.  The clBLAS library does generate and enqueue optimized OpenCL kernels, relieving the user from the task of writing, optimizing and maintaining kernel code t [...]
@@ -154,4 +156,4 @@ int main( void )
 * Latest Boost
 
 ### Performance infrastructure
-* Python
\ No newline at end of file
+* Python
diff --git a/src/client/client.cpp b/src/client/client.cpp
index 8f60a07..1bf2454 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
   cl_double beta;
   cl_uint profileCount;
   cl_uint commandQueueFlags = 0;
-  cl_device_type deviceType = CL_DEVICE_TYPE_GPU;
+  cl_device_type deviceType = CL_DEVICE_TYPE_CPU;
   int order_option;
   //clblasOrder order;
   //clblasTranspose transA;

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