{'memo':'cuda 4.0 install','GPU':'GTS450'}

 Ubuntu10.04 amd64に、CUDA4.0インストールメモ。

reference


 ぶっちゃけ、リファレンス読めばよい><


CUDA Toolkit Documentation

CUDA by Example 汎用GPUプログラミング入門
Jason Sanders Edward Kandrot
インプレスジャパン
売り上げランキング: 28490


って、結論だと終わってしますので以下メモですwww<

download cudatoolkit, etc

you download this file from developer zone.

cudatoolkit_4.0.17_linux_64_ubuntu10.10.run
cudatools_4.0.17_linux_64.run
gpucomputingsdk_4.0.17_linux.run

install cudatoolkit, etc

sudo sh ./cudatoolkit_4.0.17_linux_64_ubuntu10.10.run 
sudo sh ./cudatools_4.0.17_linux_64.run 
sh ./gpucomputingsdk_4.0.17_linux.run 

edit .bashrc

add the following codes in your '.bashrc', if your system 64bit.

### CUDA 4.0
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH

apt-get install

require the package for make cuda.

sudo apt-get install freeglut3-dev build-essential libx11-dev \
    libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev

make cuda sample

cd ~/NVIDIA_GPU_Computing_SDK/
make
# ...
cd C/bin/linux/release/

run the deviceQuery.

./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

Found 1 CUDA Capable device(s)

Device 0: "GeForce GTS 450"
CUDA Driver Version / Runtime Version 4.0 / 4.0
CUDA Capability Major/Minor version number: 2.1
Total amount of global memory: 1023 MBytes (1072889856 bytes)
( 4) Multiprocessors x (48) CUDA Cores/MP: 192 CUDA Cores
GPU Clock Speed: 1.57 GHz
Memory Clock rate: 1804.00 Mhz
Memory Bus Width: 128-bit
L2 Cache Size: 262144 bytes
Max Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536,65535), 3D=(2048,2048,2048)
Max Layered Texture Size (dim) x layers 1D=(16384) x 2048, 2D=(16384,16384) x 2048
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 32768
Warp size: 32
Maximum number of threads per block: 1024
Maximum sizes of each dimension of a block: 1024 x 1024 x 64
Maximum sizes of each dimension of a grid: 65535 x 65535 x 65535
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and execution: Yes with 2 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Concurrent kernel execution: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support enabled: No
Device is using TCC driver mode: No
Device supports Unified Addressing (UVA): Yes
Device PCI Bus ID / PCI location ID: 5 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 4.0, CUDA Runtime Version = 4.0, NumDevs = 1, Device = GeForce GTS 450