labs.beatcraft.com
CUDA

# Contents

Overview

This article explains how to install Ubuntu 14.04 to a PC, which is equipped with Tesla K20c.
Then, CUDA6.5 is installed to the Ubuntu PC.

Hardware Specifications

This is the list of hardware specifications.

In the article of CUDA/CentOS6.4, Primary Display is configured to On Board (Intel GPU) at UEFI since ETSK20-5GER does not have any display terminals (D-SUB, DVI, and HDMI). However, when NVIDIA GPU Driver and NVIDA OpenGL Library are installed simultaneously as parts of NVIDIA ToolKit, GUI is not displayed correctly if non-NVIDIA GPU is selected for the monitor.
In this article, since this is not used as a headless Ubuntu Server but an Ubuntu Desktop with GUI, GF-GT730-LE1GHD/D5, which is equipped with NVIDIA Geforce GT730, is added to the system, and this GPU board is assigned for the screen output.

Installing Ubuntu 14.04

Applying the configuration below, Ubuntu 14.04 LTS Desktop 64bit version is installed.

Select nomodeset at the boot option of Ubuntu install DVD.
Do not use Nouveau an open source NVIDIA GPU driver for install Ubuntu.

Configuring Ubuntu 14.04 at its Post-Installation

After the installation of Ubuntu is completed, the configurations shown below are applied.

Update Ubuntu 14.04

Installing the newest packages and applications, make Ubuntu updated.

$ sudo apt-get update
$ sudo apt dist-upgrade

After the update is completed, make sure that the system can be restarted with the updated Kernel.

Making Nouveau Ineffective

To install and use only NVIDIA's GPU Driver, this is for preventing Nouveau driver to be read by the system. Create a file blacklist-nouveau.conf at the directory of /etc/modprobe.d/lacklist-nouveau.conf The contents of the file are shown below.

blacklist nouveau
options nouveau modeset = 0

Regenerate kernel initramfs for making the new configuration effective,

$ sudo update-initramfs -u

To reboot the system, make sure that Nouveau Driver is NOT read by the system. If Nouveau Drier is NOT read, LightDM and Gnome start up in the low resolutions.
Also, please check nouveau is not included in the video drivers, which is done by lsmod.

Installing Packages

As the installation of Ubuntu 14.04 is completed, the installation of all required packages for CUDA is already completed. To operate the system effortless, the additional packages are installed.

$ sudo apt-get install vim lv ssh naoutilus-open-terminal build-essential

Installing CUDA 6.5

Since CUDA 6.5, the installation of CUDA on Ubuntu becomes very easer before. Because Ubuntu has officially become a supported distribution, he repository of deb package is prepared.

URL>

Configuring CUDA 6.5 at its Post-Installation

Configuring environment

As CUDA 6.5 is installed under the directory of /usr/local/cuda-6.5/, adjust the environment variable for accessing execution file and library, which are stored under this directory.

Add the command lines shown below to the end of .bashrc file.

$ export PATH=/usr/local/cuda-6.5/bin:$PATH
$ export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64:$LD_LIBRARY_PATH

The change in the environment variable becomes effective as reopen Terminal.

Copying CUDA Samples

The samples of CUDA are placed under the directory of /usr/local/cuda-6.5/samples/. In this directory, the user cannot write into these files of samples without the root privilege. To solve this issue, the samples are copied to user's home directory, where the user does have the root privilege.

$ cuda-install-samples-6.5.sh ~

Applying the command line above, the samples of CUDA are copied to the directory of /home/{user}/NVIDIA_CUDA-6.5_Samples/.

Build and Execute Samples

Applying the command lines below, move to the directory where the samples have been copied, and build the samples.

$ cd ~/NVIDIA_CUDA-6.5_Samples
$ make

Samples are built under the directory of NVIDIA_CUDA-6.5_Samples. The execution files of Samples are copied to the directory of ~/NVIDIA/_CUDA-6.5_Samples/bin/x86_64/linux/release/.

<Code>

URL>

Code>

To execute bandwidthTest, obtains the results shown below.

Code>

Revision History


Front page   New List of pages Search Recent changes   RSS of recent changes