2013/06/29

サンプルプログラム - smokeParticles - 

以下の3つのファイルはインストールしてありますか?  
・Developer Drivers
CUDA Toolkit
GPU Computing SDK
添付のサンプルプログラムをビルドして実行することで,デモを動かすことができます。

方法は、ターミナルで
  ① 「cd /Developer/'GPU Computing'/C」と入力
  makeを実行し、ビルドを開始
  ③ ビルドが完了後、「cd bin/darwin/release/」と入力
  「./smokeParticles」を入力
の4step。

下の動画は、smokeParticlesを実行してみたときのものです。




上記④で「./deviceQuery」と入力すると、デバイス情報が出力される。
以下はその全文。

[deviceQuery] starting...
 

./deviceQuery Starting...
 

CUDA Device Query (Runtime API) version (CUDART static linking)
Found 1 CUDA Capable device(s)
Device 0: "GeForce GT 650M"
  CUDA Driver Version / Runtime Version          5.0 / 4.1
  CUDA Capability Major/Minor version number:    3.0
  Total amount of global memory:                 1024 MBytes (1073414144 bytes)
MapSMtoCores SM 3.0 is undefined (please update to the latest SDK)!
MapSMtoCores SM 3.0 is undefined (please update to the latest SDK)!
  ( 2) Multiprocessors x (-1) CUDA Cores/MP:     -2 CUDA Cores
  GPU Clock Speed:                               0.41 GHz
  Memory Clock rate:                             2000.00 Mhz
  Memory Bus Width:                              128-bit
  L2 Cache Size:                                 262144 bytes
  Max Texture Dimension Size (x,y,z)             1D=(65536), 2D=(65536,65536), 3D=(4096,4096,4096)
  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: 65536
  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:     2147483647 x 65535 x 65535
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             512 bytes
  Concurrent copy and execution:                 Yes with 1 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:           1 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 5.0, CUDA Runtime Version = 4.1, NumDevs = 1, Device = GeForce GT 650M
[deviceQuery] test results...
PASSED

> exiting in 3 seconds: 3...2...1...done!


0 件のコメント: