wiki:adherelinux/installGPU

Version 5 (modified by adherelinux, 14 years ago) (diff)

--

=Ubuntu下安裝CUDA (Tesla C1060)= Tesla並沒有顯示功能,所以需要另一張顯示卡。這裏用的是nvidia GeForce? 9800GT 支援CUDA的顯示卡。
安裝順序:

  1. CUDA驅動程式2. CUDA工具套件3. CUDA軟體開發工具(SDK)程式碼範例除了程式碼範例外,其他全詳細步驟如下:
  2. 安裝CUDA支援的Ubuntu 版本。目前支援到Ubuntu 9.04版。
  3. 安裝新的nvidia驅動程式

先檢查顯示卡的驅動程式。 檢查檔案 /etc/X11/xorg.conf: 進入終端機 (Terminal)後, $sudo less /etc/X11/xorg.conf 如果尚未安裝任何驅動程式, 可能會看到

# xorg.conf (X.Org X Window System server configuration file) # …… # ……

. . .

# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Device"

Identifier "Configured Video Device"

Endsection Section "Monitor"

Identifier "Configured Monitor"

Endsection Section "Screen"

Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device"

Endsection
如果已經安裝nvidia驅動程式,但不是自己編譯的,必須要移除$sudo apt-get remove nvidia-*

3.安裝編譯所需要的核心及相關套件
$sudo apt-get install build-essential linux-source linux-headers-uname -r

$sudo apt-get install xserver-xorg-dev libglut3-dev libglu1-mesa-dev libxi-dev libxmu-dev libc6-dev

如果尚未安裝 gcc 與 g++

$sudo apt-get install gcc-4.3 g++-4.3

4.下載CUDA安裝所需的所有檔案

(1)下載適合的驅動程式
http://www.nvidia.com.tw/Download/index.aspx?lang=tw NVIDIA IP
以手動尋找。
產品類型: 點選 Tesla
產品系列: 點選 GPU Computing Processor
產品家族: 點選 Tesla C1060
作業系統: 依Linux 系統32位元或64位元作選擇
點選搜尋後,會出現以下畫面:

Nvidia_product
點選下載NVIDIA-Linux-x86_64-195.36.24-pkg2.run

(2) 下載 CUDA Toolkit 及CUDA SDK
http://www.nvidia.com.tw/object/cuda_get_tw.html

toolkit

如果要安裝最新的套件,點選 “CUDA 工具套件3.0Beta版”。這個範例安裝的是2.3版的工具套件。點選適合的作業系統

Attachments (6)

Download all attachments as: .zip