Skip to content

Instantly share code, notes, and snippets.

@ax3l
Last active August 29, 2015 13:56
Show Gist options
  • Save ax3l/9327088 to your computer and use it in GitHub Desktop.
Save ax3l/9327088 to your computer and use it in GitHub Desktop.
(deb) Cuda Compile without Card

Seen here

language: cpp

compiler:
  - gcc

script:
  - mkdir build_tmp && cd build_tmp
  - cmake $TRAVIS_BUILD_DIR
  - make

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
  - sudo find /usr/ -name libcuda*.so

Probably, nvidia-common and nvidia-current are not necessary to be installed beforehand (last tested on ubuntu 13.04 "raring")

Note: "raring" has already cuda 5.0 shipped one can use up to gcc-4.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment