forked from ComputationalRadiationPhysics/picongpu
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'thirdParty/cuda_memtest/' changes from 3091fa6..0e27280
0e27280 Merge pull request #6 from Flamefire/dev 8c8de37 Add space 17550d1 Merge pull request #2 from ComputationalRadiationPhysics/topic-codeCleanup 278e29c Remove Unused Parameter arg 162fa90 Fix (un)singed compares and return types e843493 CMake: Add Correct Warning and Fix missing -pthread 06419c2 Merge pull request #3 from ComputationalRadiationPhysics/topic-travis 2997e4f Merge pull request #4 from ComputationalRadiationPhysics/fix-headerGuard e524a78 Add .travis.yml file for CI c821814 Fix Broken __MEMTEST_H__ Header Guard git-subtree-dir: thirdParty/cuda_memtest git-subtree-split: 0e27280cacfd77aec1fce6a7f82236239c02e5d1
- Loading branch information
Showing
5 changed files
with
77 additions
and
31 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
language: cpp | ||
|
||
compiler: | ||
- gcc | ||
- clang | ||
|
||
env: | ||
global: | ||
- INSTALL_DIR=~/mylibs | ||
- NVML_FILE=cuda_346.46_gdk_linux.run | ||
- NVML_LINK=http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/ | ||
matrix: | ||
- USE_NVML=1 | ||
- USE_NVML=0 | ||
|
||
script: | ||
- mkdir build_tmp && cd build_tmp | ||
# CUDA 4.0 on travis... work-around missing atomicAdd | ||
- cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCUDA_ARCH=sm_10 -DSAME_NVCC_FLAGS_IN_SUBPROJECTS=ON $TRAVIS_BUILD_DIR | ||
- make | ||
- make install | ||
|
||
before_script: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq build-essential | ||
- sudo apt-get install -qq gcc-4.4 g++-4.4 | ||
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.4 | ||
- gcc --version && g++ --version | ||
- sudo apt-get install -qq nvidia-common | ||
- sudo apt-get install -qq nvidia-current | ||
- sudo apt-get install -qq nvidia-cuda-toolkit nvidia-cuda-dev | ||
- if [ $USE_NVML -eq 1 ]; then wget $NVML_LINK$NVML_FILE && chmod u+x $NVML_FILE && sudo ./$NVML_FILE --silent --installdir=/ ; fi | ||
- if [ $USE_NVML -eq 1 ]; then export CMAKE_PREFIX_PATH=/usr/src/gdk/nvml/lib/ ; fi | ||
- sudo find /usr/ -name libcuda*.so | ||
- sudo find /usr/ -name nvml.h | ||
- sudo find /usr/ -name libnvidia*.so | ||
- sudo find /usr/ -name libnvml*.so | ||
|
||
after_script: | ||
- ls -halR $INSTALL_DIR |
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
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