ACCESS

東京本社
東京都港区六本木7-2-29 VORT乃木坂I-3F
岡山オフィス
岡山県岡山市北区磨屋町10-20 磨屋町ビル 6-B

SURPR!SE

サプライズ

2015.12.02

GPGPU on AWS
Part 2/2: Installing CUDA 7.5 on Ubuntu 15.04 AMI

Following our article on selecting CUDA and a supported linux distro, we will write about our install of CUDA 7.5 on Ubuntu 15.04 which are by the time of this ariting the most updated version of the SDK and OS. Once again, those post are more about taking note on our trial than a real “state of the art” tutorial about properly installing the CUDA development toolchain. To follow this step-by-step guide we are supposing you already have a running G2 AMI instance. Please refer to our part 1 for AMI selection.
Note: Windows user. Use PUTTY to SSH into your instance.
Past its public IP to the Host text-field then go to Category/Connection/SSH/Auth on the left panel to browse and load you private Key (use PUTTY Keygen utility to convert the downloaded .pem file into a .ppk file) Linux users will ssh into their instances using:
ssh -i .pem ubuntu@[Instance Public IP]

CUDA Ubuntu AMI 01

Before starting any CUDA related install you may want to update and upgrade the OS. Note that you can directly install CUDA first if you want.

1 Update the Kernel then download & install the build-essential dependency

Driver updates included in the package linux-image-generic are required.
The build-essential package will install the compiler toolchain & utilities (make, g++).
sudo apt-get install linux-image-generic build-essential

2 Download and Install CUDA.

The required repository can be found in this URL to check its version/revision number:
http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1504/x86_64/
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1504/x86_64/cuda-repo-ubuntu1504_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1504_7.5-18_amd64.deb
sudo apt-get update
sudo apt-get install -y cuda

3 Setup the environment.

export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
You will certainly want to have this setup running by default so using pico or the CLI add the two lines above to the ~/.bashrc file. You will need to logout then re-login to take this change effective.

4 Check the install by running a device query.

We will install the samples in the home folder to run the deviceQuery code:
cuda-install-samples-7.5.sh ~/
cd NVIDIA_CUDA-7.5_Samples/1_Utilities/deviceQuery
make
./deviceQuery

Here is our output. We can see the GRID K250 device ready with its info as well as the test Result = PASS.
CUDA Ubuntu AMI 02

CONTACT

お問い合わせ

WEBサイト制作や、システム・APP開発など、
制作案件に関するお問い合わせは
下記よりお願いいたします。

案件のご相談・お問い合わせ

パートナー企業募集

スカイリンクでは一緒にものづくりをしていけるパートナーを募集しております。

  • ・受発注問わず相互に協力関係を築けるパートナー企業
  • ・業務委託等、個人で活躍されているクリエイターの方

また、お仕事でなくても気軽に情報交換できるようなお付き合いも大歓迎です。

お問い合わせ

採用情報

時間や場所に縛られない。
リモート業務を実施しているスカイリンクでは
東京だけではなく、岡山をはじめとした県外各所から積極的に採用中です。
「新鮮な驚き」を一緒に考えてくれる仲間を求めてます。

採用サイト