-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release 1.0.1 * Date fix in Changes.md
- Loading branch information
Showing
11 changed files
with
315 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,3 +211,6 @@ FakesAssemblies/ | |
CMakeFiles/ | ||
CMakeCache.txt | ||
cmake_install.cmake | ||
|
||
# MacOS cache | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# OgmaNeo | ||
# Copyright(c) 2016 Ogma Intelligent Systems Corp. All rights reserved. | ||
# | ||
# This copy of OgmaNeo is licensed to you under the terms described | ||
# in the OGMANEO_LICENSE.md file included in this distribution. | ||
|
||
language: cpp | ||
|
||
sudo: required | ||
dist: trusty | ||
|
||
os: | ||
# https://docs.travis-ci.com/user/trusty-ci-environment/ | ||
# Ubuntu 14.04 Trusty Tahr | ||
- linux | ||
|
||
# https://docs.travis-ci.com/user/osx-ci-environment/ | ||
# OS X 10.11.6 (and Xcode 7.3.1) | ||
- osx | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
# C++11 compiler for Linux builds | ||
- gcc-4.8 | ||
- g++-4.8 | ||
|
||
cache: | ||
directories: | ||
- $HOME/.local | ||
|
||
before_install: | ||
# Install dependencies into $HOME/.local | ||
- bash ./.travis/install_deps.sh | ||
|
||
install: | ||
# Install CMake v3.6 into $HOME/.local | ||
- bash ./.travis/install_cmake.sh | ||
|
||
# Install OpenCL (Linux - POCL driver, release_0_13) | ||
- bash ./.travis/install_opencl.sh | ||
|
||
script: | ||
- echo Travis OS Name ... ${TRAVIS_OS_NAME} | ||
- echo Travis build dir ... ${TRAVIS_BUILD_DIR} | ||
- echo CMake Version .. $($HOME/.local/cmake/bin/cmake --version) | ||
|
||
# Build the OgmaNeo library | ||
- cd $TRAVIS_BUILD_DIR | ||
- mkdir build | ||
- cd build | ||
|
||
- if [ $TRAVIS_OS_NAME == 'linux' ]; then | ||
export CC=gcc-4.8; | ||
export CXX=g++-4.8; | ||
fi | ||
|
||
- $HOME/.local/cmake/bin/cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=../install .. || travis_terminate 1; | ||
|
||
- make | ||
- make install | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: change | ||
on_failure: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
# OgmaNeo | ||
# Copyright(c) 2016 Ogma Intelligent Systems Corp. All rights reserved. | ||
# | ||
# This copy of OgmaNeo is licensed to you under the terms described | ||
# in the OGMANEO_LICENSE.md file included in this distribution. | ||
|
||
set -ex | ||
|
||
#---------------------------------------- | ||
# Install the latest CMake | ||
cd $TRAVIS_BUILD_DIR | ||
|
||
# Check to see if CMake cache folder is empty | ||
if [ ! -d "$HOME/.local/cmake" ]; then | ||
wget https://cmake.org/files/v3.6/cmake-3.6.2.tar.gz | ||
tar -xzf cmake-3.6.2.tar.gz | ||
cd cmake-3.6.2 | ||
|
||
if [ $TRAVIS_OS_NAME == 'osx' ]; then | ||
CC=clang CXX=clang++ ./configure --prefix=$HOME/.local/cmake | ||
else | ||
CC=gcc-4.8 CXX=g++-4.8 ./configure --prefix=$HOME/.local/cmake | ||
fi | ||
|
||
make | ||
make install | ||
else | ||
echo "Using cached CMake directory." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
# OgmaNeo | ||
# Copyright(c) 2016 Ogma Intelligent Systems Corp. All rights reserved. | ||
# | ||
# This copy of OgmaNeo is licensed to you under the terms described | ||
# in the OGMANEO_LICENSE.md file included in this distribution. | ||
|
||
set -ex | ||
|
||
#---------------------------------------- | ||
# Package updates | ||
|
||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then | ||
#brew unlink cmake | ||
brew update | ||
|
||
# OSX has: | ||
# apple-gcc42 | ||
brew tap homebrew/versions | ||
brew install gcc48 | ||
|
||
else | ||
sudo apt-get -qq update | ||
|
||
# Trusty has: | ||
# gcc 4.8.4 | ||
# llvm clang 3.5.0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/bin/sh | ||
|
||
# OgmaNeo | ||
# Copyright(c) 2016 Ogma Intelligent Systems Corp. All rights reserved. | ||
# | ||
# This copy of OgmaNeo is licensed to you under the terms described | ||
# in the OGMANEO_LICENSE.md file included in this distribution. | ||
|
||
set -ex | ||
|
||
#---------------------------------------- | ||
# Install POCL (Linux only) | ||
|
||
if [ $TRAVIS_OS_NAME == 'linux' ]; then | ||
cd $TRAVIS_BUILD_DIR | ||
|
||
sudo apt install libhwloc-dev ocl-icd-opencl-dev libglew-dev | ||
sudo apt install zlib1g-dev libedit-dev libltdl-dev opencl-headers | ||
|
||
# Check to see if POCL cache folder is empty | ||
if [ ! -d "$HOME/.local/pocl" ]; then | ||
sudo apt install clang-3.8 libclang-3.8-dev | ||
|
||
git clone https://github.com/pocl/pocl.git | ||
cd pocl | ||
|
||
git checkout release_0_13 | ||
mkdir build-pocl; cd build-pocl | ||
|
||
CC=gcc-4.8 CXX=g++-4.8 $HOME/.local/cmake/bin/cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/pocl -DWITH_LLVM_CONFIG=/usr/bin/llvm-config-3.8 -DSTATIC_LLVM=1 -DENABLE_ICD=1 .. | ||
|
||
make | ||
sudo make install | ||
sudo cp /etc/OpenCL/vendors/pocl.icd $HOME/.local/pocl/ | ||
else | ||
echo "Using cached POCL directory." | ||
|
||
sudo mkdir -p /etc/OpenCL/vendors/ | ||
sudo cp $HOME/.local/pocl/pocl.icd /etc/OpenCL/vendors/ | ||
fi | ||
fi | ||
|
||
|
||
#---------------------------------------- | ||
# Install Khronos cl2.hpp | ||
cd $TRAVIS_BUILD_DIR | ||
|
||
wget https://github.com/KhronosGroup/OpenCL-CLHPP/releases/download/v2.0.10/cl2.hpp | ||
|
||
if [ $TRAVIS_OS_NAME == 'linux' ]; then | ||
sudo cp cl2.hpp /usr/include/CL/ | ||
else | ||
mkdir $TRAVIS_BUILD_DIR/source/OpenCL | ||
cp cl2.hpp $TRAVIS_BUILD_DIR/source/OpenCL/ | ||
fi | ||
|
||
|
||
#---------------------------------------- | ||
# Test OpenCL using Oblomov's clinfo | ||
cd $TRAVIS_BUILD_DIR | ||
|
||
git clone https://github.com/Oblomov/clinfo.git | ||
cd clinfo | ||
make | ||
./clinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.