1 Star 0 Fork 0

yunnai/kokkos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
crtrott 提交于 2019-04-08 15:29 . Fix travis build to have O3
sudo: false
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
cache:
- ccache
env:
- THREADING="serial"
- THREADING="openmp"
- THREADING="pthread"
# Apple GCC does not support OpenMP. GCC with OpenMP requires Homebrew.
# Apple Clang does not support OpenMP. Clang with OpenMP requires Homebrew.
matrix:
exclude:
- os: osx
env: THREADING="openmp"
- os: osx
compiler: gcc
before_script:
- if [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
brew update;
export HOMEBREW_NO_AUTO_UPDATE=1;
brew ls --versions ccache > /dev/null || brew install ccache;
export PATH=/usr/local/opt/ccache/libexec:$PATH;
fi
- ccache -z
script:
- export OMP_NUM_THREADS=2
- export OMP_PLACES=threads
- export OMP_PROC_BIND=spread
# LD_LIBRARY_PATH workaround to find clang's libomp: https://github.com/travis-ci/travis-ci/issues/8613
- if [[ ${CC} = clang ]]; then export LD_LIBRARY_PATH=/usr/local/clang/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH; fi
# enable ccache for clang on linux and add CCACHE_CPP2 to avoid 'Argument unused during compilation -I...' warning
- if [[ ${TRAVIS_OS_NAME} = linux && ${CC} = clang ]]; then
ln -s /usr/bin/ccache $HOME/bin/clang++;
export CCACHE_CPP2=yes;
GENERATE_OPTS="--gcc-toolchain=/usr";
fi
- mkdir build
- cd build
- ../generate_makefile.bash --compiler=$CXX --with-$THREADING --with-options=compiler_warnings --cxxflags="-O3 -Werror" ${GENERATE_OPTS}
- make
- make test
after_success:
- ccache -s
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/yunnai/kokkos.git
git@gitee.com:yunnai/kokkos.git
yunnai
kokkos
kokkos
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385