Hello all¡¡
I have a cluster with…
./deviceQuery Starting…
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 2 CUDA Capable device(s)
Device 0: “Tesla K40c”
CUDA Driver Version / Runtime Version 6.5 / 5.5
CUDA Capability Major/Minor version number: 3.5
Total amount of global memory: 12288 MBytes (12884705280 bytes)
(15) Multiprocessors, (192) CUDA Cores/MP: 2880 CUDA Cores
GPU Clock rate: 745 MHz (0.75 GHz)
Memory Clock rate: 3004 Mhz
Memory Bus Width: 384-bit
L2 Cache Size: 1572864 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
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 multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 2 copy engine(s)
Run time limit on kernels: No
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device PCI Bus ID / PCI location ID: 2 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
Device 1: “GeForce GTX 580”
CUDA Driver Version / Runtime Version 6.5 / 5.5
CUDA Capability Major/Minor version number: 2.0
Total amount of global memory: 1536 MBytes (1610153984 bytes)
(16) Multiprocessors, ( 32) CUDA Cores/MP: 512 CUDA Cores
GPU Clock rate: 1544 MHz (1.54 GHz)
Memory Clock rate: 2004 Mhz
Memory Bus Width: 384-bit
L2 Cache Size: 786432 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65535), 3D=(2048, 2048, 2048)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
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 multiprocessor: 1536
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (65535, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel 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
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
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) >
Peer access from Tesla K40c (GPU0) → GeForce GTX 580 (GPU1) : No
Peer access from GeForce GTX 580 (GPU1) → Tesla K40c (GPU0) : No
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 6.5, CUDA Runtime Version = 5.5, NumDevs = 2, Device0 = Tesla K40c, Device1 = GeForce GTX 580
Result = PASS
Resumming…
Device 0 → Tesla K40
Device 1 → GTX580.
I’m trying to compile a simple code addingmatrix.cu, and i want to compare different flags during compilation to my cards.
The outputs of my code is apparently ok in all cases.
In my code, when I put setDevice(0)… (k40, in theory)
compiling with “nvcc sumaMatrices.cu -arch=sm_20 -o code20” (I know this arch is not for k40, just trying, if there aren’t conflicting instrucions, it works.)
the execution of this code…
whith kernel 1.025984 msec
in cpu sequential 74.503777 msec
compiling with “nvcc sumaMatrices.cu -arch=sm_35 -o code35”
the execution of this code…
whith kernel 1.022112 msec
in cpu sequential 74.185089 msec
No differences… I hoped some little ones, but no prob.
In my code, when I put setDevice(1)…
compiling with “nvcc sumaMatrices.cu -arch=sm_20 -o code20”
the execution of this code…
whith kernel 1.270016 msec
in cpu sequential 75.304932 msec
compiling with “nvcc sumaMatrices.cu -arch=sm_35 -o code35”
the execution of this code…
whith kernel 0.001248 msec with right outputs…
in cpu sequential 75.268066 msec
My question is… when i put setDevice(1) (GTX 580, as deviceQuery says…) the result times are better with sm_35 flags??? Has it sense for you???
I hoped that this occur with the k40… but not with the GTX¡¡¡
Is possible that setDevice() is understanding a different argument that the number of device???
Thanks in advance…