wiki:adherelinux/installGPU

Version 1 (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[[br]]

Attachments (6)

Download all attachments as: .zip