| 1 | =Ubuntu下安裝CUDA (Tesla C1060)= |
| 2 | Tesla並沒有顯示功能,所以需要另一張顯示卡。這裏用的是nvidia GeForce 9800GT 支援CUDA的顯示卡。[[br]] |
| 3 | 安裝順序:[[br]] |
| 4 | 1. CUDA驅動程式2. CUDA工具套件3. CUDA軟體開發工具(SDK)程式碼範例除了程式碼範例外,其他全詳細步驟如下:[[br]] |
| 5 | 1. 安裝CUDA支援的Ubuntu 版本。目前支援到Ubuntu 9.04版。 |
| 6 | 2. 安裝新的nvidia驅動程式 |
| 7 | 先檢查顯示卡的驅動程式。 |
| 8 | 檢查檔案 /etc/X11/xorg.conf: |
| 9 | 進入終端機 (Terminal)後, |
| 10 | $sudo less /etc/X11/xorg.conf |
| 11 | 如果尚未安裝任何驅動程式, 可能會看到 |
| 12 | |
| 13 | # xorg.conf (X.Org X Window System server configuration file) |
| 14 | # …… |
| 15 | # …… |
| 16 | . |
| 17 | . |
| 18 | . |
| 19 | |
| 20 | # sudo dpkg-reconfigure -phigh xserver-xorg |
| 21 | |
| 22 | Section "Device" |
| 23 | Identifier "Configured Video Device" |
| 24 | Endsection |
| 25 | Section "Monitor" |
| 26 | Identifier "Configured Monitor" |
| 27 | Endsection |
| 28 | Section "Screen" |
| 29 | Identifier "Default Screen" |
| 30 | Monitor "Configured Monitor" |
| 31 | Device "Configured Video Device" |
| 32 | Endsection[[br]] |
| 33 | 如果已經安裝nvidia驅動程式,但不是自己編譯的,必須要移除$sudo apt-get remove nvidia-*[[br]] |
| 34 | |
| 35 | 3.安裝編譯所需要的核心及相關套件[[br]] |
| 36 | $sudo apt-get install build-essential linux-source linux-headers-`uname -r`[[br]] |
| 37 | |
| 38 | $sudo apt-get install xserver-xorg-dev libglut3-dev libglu1-mesa-dev libxi-dev libxmu-dev libc6-dev[[br]] |
| 39 | |
| 40 | 如果尚未安裝 gcc 與 g++[[br]] |
| 41 | |
| 42 | $sudo apt-get install gcc-4.3 g++-4.3[[br]] |
| 43 | |
| 44 | 4.下載CUDA安裝所需的所有檔案[[br]] |
| 45 | |
| 46 | (1)下載適合的驅動程式[[br]] |
| 47 | http://www.nvidia.com.tw/Download/index.aspx?lang=tw[[br]] |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |