chibi@1604:~$ ls NVIDIA_CUDA-10.2_Samples rtl8812au デスクトップ ピクチャ caffe ダウンロード ドキュメント ミュージック examples.desktop テンプレート ビデオ 公開 chibi@1604:~$ nvidia-smi nvlink -c GPU 0: TITAN RTX (UUID: GPU-5a71d61e-f130-637a-b33d-4df555b0ed88) Link 0, P2P is supported: true Link 0, Access to system memory supported: true Link 0, P2P atomics supported: true Link 0, System memory atomics supported: true Link 0, SLI is supported: true Link 0, Link is supported: false Link 1, P2P is supported: true Link 1, Access to system memory supported: true Link 1, P2P atomics supported: true Link 1, System memory atomics supported: true Link 1, SLI is supported: true Link 1, Link is supported: false GPU 1: TITAN RTX (UUID: GPU-7fb51c1d-c1e7-35cc-aad7-66971f05ddb7) Link 0, P2P is supported: true Link 0, Access to system memory supported: true Link 0, P2P atomics supported: true Link 0, System memory atomics supported: true Link 0, SLI is supported: true Link 0, Link is supported: false Link 1, P2P is supported: true Link 1, Access to system memory supported: true Link 1, P2P atomics supported: true Link 1, System memory atomics supported: true Link 1, SLI is supported: true Link 1, Link is supported: false chibi@1604:~$ cd NVIDIA_CUDA-10.2_Samples chibi@1604:~/NVIDIA_CUDA-10.2_Samples$ ls 0_Simple 2_Graphics 4_Finance 6_Advanced EULA.txt common 1_Utilities 3_Imaging 5_Simulations 7_CUDALibraries Makefile chibi@1604:~/NVIDIA_CUDA-10.2_Samples$ cd 0_Simple chibi@1604:~/NVIDIA_CUDA-10.2_Samples/0_Simple$ ls UnifiedMemoryStreams matrixMul_nvrtc simplePitchLinearTexture asyncAPI memMapIPCDrv simplePrintf cdpSimplePrint simpleAssert simpleSeparateCompilation cdpSimpleQuicksort simpleAssert_nvrtc simpleStreams clock simpleAtomicIntrinsics simpleSurfaceWrite clock_nvrtc simpleAtomicIntrinsics_nvrtc simpleTemplates cppIntegration simpleCallback simpleTemplates_nvrtc cppOverload simpleCooperativeGroups simpleTexture cudaNvSci simpleCubemapTexture simpleTextureDrv cudaOpenMP simpleCudaGraphs simpleVoteIntrinsics cudaTensorCoreGemm simpleDrvRuntime simpleVoteIntrinsics_nvrtc fp16ScalarProduct simpleIPC simpleZeroCopy immaTensorCoreGemm simpleLayeredTexture systemWideAtomics inlinePTX simpleMPI template inlinePTX_nvrtc simpleMultiCopy vectorAdd matrixMul simpleMultiGPU vectorAddDrv matrixMulCUBLAS simpleOccupancy vectorAddMMAP matrixMulDrv simpleP2P vectorAdd_nvrtc chibi@1604:~/NVIDIA_CUDA-10.2_Samples/0_Simple$ cd simpleP2P chibi@1604:~/NVIDIA_CUDA-10.2_Samples/0_Simple/simpleP2P$ ./simpleP2P -bash: ./simpleP2P: そのようなファイルやディレクトリはありません chibi@1604:~/NVIDIA_CUDA-10.2_Samples/0_Simple/simpleP2P$ make /usr/local/cuda-10.2/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o simpleP2P.o -c simpleP2P.cu /usr/local/cuda-10.2/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o simpleP2P simpleP2P.o mkdir -p ../../bin/x86_64/linux/release cp simpleP2P ../../bin/x86_64/linux/release chibi@1604:~/NVIDIA_CUDA-10.2_Samples/0_Simple/simpleP2P$ ./simpleP2P [./simpleP2P] - Starting... Checking for multiple GPUs... CUDA-capable device count: 2 Checking GPU(s) for support of peer to peer memory access... > Peer access from TITAN RTX (GPU0) -> TITAN RTX (GPU1) : Yes > Peer access from TITAN RTX (GPU1) -> TITAN RTX (GPU0) : Yes Enabling peer access between GPU0 and GPU1... Allocating buffers (64MB on GPU0, GPU1 and CPU Host)... Creating event handles... cudaMemcpyPeer / cudaMemcpy between GPU0 and GPU1: 43.53GB/s Preparing host buffer and memcpy to GPU0... Run kernel on GPU1, taking source data from GPU0 and writing to GPU1... Run kernel on GPU0, taking source data from GPU1 and writing to GPU0... Copy data back to host from GPU0 and verify results... Disabling peer access... Shutting down... Test passed chibi@1604:~/NVIDIA_CUDA-10.2_Samples/0_Simple/simpleP2P$ cd ~/NVIDIA_CUDA-10.2_Samples/1_Utilities/ chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities$ ls UnifiedMemoryPerf deviceQuery p2pBandwidthLatencyTest bandwidthTest deviceQueryDrv topologyQuery chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities$ cd p2pBandwidthLatencyTest chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities/p2pBandwidthLatencyTest$ make /usr/local/cuda-10.2/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o p2pBandwidthLatencyTest.o -c p2pBandwidthLatencyTest.cu /usr/local/cuda-10.2/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o p2pBandwidthLatencyTest p2pBandwidthLatencyTest.o mkdir -p ../../bin/x86_64/linux/release cp p2pBandwidthLatencyTest ../../bin/x86_64/linux/release chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities/p2pBandwidthLatencyTest$ ./p2pBandwidthLatencyTest [P2P (Peer-to-Peer) GPU Bandwidth Latency Test] Device: 0, TITAN RTX, pciBusID: 1, pciDeviceID: 0, pciDomainID:0 Device: 1, TITAN RTX, pciBusID: 21, pciDeviceID: 0, pciDomainID:0 Device=0 CAN Access Peer Device=1 Device=1 CAN Access Peer Device=0 ***NOTE: In case a device doesn't have P2P access to other one, it falls back to normal memcopy procedure. So you can see lesser Bandwidth (GB/s) and unstable Latency (us) in those cases. P2P Connectivity Matrix D\D 0 1 0 1 1 1 1 1 Unidirectional P2P=Disabled Bandwidth Matrix (GB/s) D\D 0 1 0 547.98 11.73 1 11.84 552.73 Unidirectional P2P=Enabled Bandwidth (P2P Writes) Matrix (GB/s) D\D 0 1 0 550.95 46.99 1 47.02 552.49 Bidirectional P2P=Disabled Bandwidth Matrix (GB/s) D\D 0 1 0 557.19 20.53 1 20.97 556.85 Bidirectional P2P=Enabled Bandwidth Matrix (GB/s) D\D 0 1 0 554.32 93.49 1 93.58 555.36 P2P=Disabled Latency Matrix (us) GPU 0 1 0 1.91 15.06 1 13.72 1.90 CPU 0 1 0 3.12 8.39 1 8.63 3.36 P2P=Enabled Latency (P2P Writes) Matrix (us) GPU 0 1 0 1.93 2.09 1 2.11 1.90 CPU 0 1 0 3.39 2.80 1 2.83 3.44 NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled. chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities/p2pBandwidthLatencyTest$ cd ~/NVIDIA_CUDA-10.2_Samples/1_Utilities/bandwidthTest chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities/bandwidthTest$ make /usr/local/cuda-10.2/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o bandwidthTest.o -c bandwidthTest.cu /usr/local/cuda-10.2/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o bandwidthTest bandwidthTest.o mkdir -p ../../bin/x86_64/linux/release cp bandwidthTest ../../bin/x86_64/linux/release chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities/bandwidthTest$ ./bandwidthTest [CUDA Bandwidth Test] - Starting... Running on... Device 0: TITAN RTX Quick Mode Host to Device Bandwidth, 1 Device(s) PINNED Memory Transfers Transfer Size (Bytes) Bandwidth(GB/s) 32000000 12.3 Device to Host Bandwidth, 1 Device(s) PINNED Memory Transfers Transfer Size (Bytes) Bandwidth(GB/s) 32000000 11.6 Device to Device Bandwidth, 1 Device(s) PINNED Memory Transfers Transfer Size (Bytes) Bandwidth(GB/s) 32000000 538.1 Result = PASS NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled. chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities/bandwidthTest$ cd ~/NVIDIA_CUDA-10.2_Samples/1_Utilities/deviceQuery chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities/deviceQuery$ make /usr/local/cuda-10.2/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o deviceQuery.o -c deviceQuery.cpp /usr/local/cuda-10.2/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o deviceQuery deviceQuery.o mkdir -p ../../bin/x86_64/linux/release cp deviceQuery ../../bin/x86_64/linux/release chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities/deviceQuery$ ./deviceQuery ./deviceQuery Starting... CUDA Device Query (Runtime API) version (CUDART static linking) Detected 2 CUDA Capable device(s) Device 0: "TITAN RTX" CUDA Driver Version / Runtime Version 10.2 / 10.2 CUDA Capability Major/Minor version number: 7.5 Total amount of global memory: 24220 MBytes (25396445184 bytes) (72) Multiprocessors, ( 64) CUDA Cores/MP: 4608 CUDA Cores GPU Max Clock rate: 1770 MHz (1.77 GHz) Memory Clock rate: 7001 Mhz Memory Bus Width: 384-bit L2 Cache Size: 6291456 bytes Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384) Maximum Layered 1D Texture Size, (num) layers 1D=(32768), 2048 layers Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 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: 1024 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 3 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 supports Compute Preemption: Yes Supports Cooperative Kernel Launch: Yes Supports MultiDevice Co-op Kernel Launch: Yes Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0 Compute Mode: < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) > Device 1: "TITAN RTX" CUDA Driver Version / Runtime Version 10.2 / 10.2 CUDA Capability Major/Minor version number: 7.5 Total amount of global memory: 24220 MBytes (25396838400 bytes) (72) Multiprocessors, ( 64) CUDA Cores/MP: 4608 CUDA Cores GPU Max Clock rate: 1770 MHz (1.77 GHz) Memory Clock rate: 7001 Mhz Memory Bus Width: 384-bit L2 Cache Size: 6291456 bytes Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384) Maximum Layered 1D Texture Size, (num) layers 1D=(32768), 2048 layers Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 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: 1024 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 3 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 supports Compute Preemption: Yes Supports Cooperative Kernel Launch: Yes Supports MultiDevice Co-op Kernel Launch: Yes Device PCI Domain ID / Bus ID / location ID: 0 / 33 / 0 Compute Mode: < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) > > Peer access from TITAN RTX (GPU0) -> TITAN RTX (GPU1) : Yes > Peer access from TITAN RTX (GPU1) -> TITAN RTX (GPU0) : Yes deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.2, CUDA Runtime Version = 10.2, NumDevs = 2 Result = PASS chibi@1604:~/NVIDIA_CUDA-10.2_Samples/1_Utilities/deviceQuery$ cd chibi@1604:~$ cat /etc/os-release NAME="Ubuntu" VERSION="16.04.6 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.6 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial chibi@1604:~$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Wed_Oct_23_19:24:38_PDT_2019 Cuda compilation tools, release 10.2, V10.2.89 chibi@1604:~$ sensors k10temp-pci-00c3 Adapter: PCI adapter temp1: +52.0°C (high = +70.0°C) chibi@1604:~$ nvidia-smi Sun Aug 2 12:03:03 2020 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 TITAN RTX Off | 00000000:01:00.0 On | N/A | | 41% 40C P8 27W / 280W | 498MiB / 24219MiB | 0% Default | +-------------------------------+----------------------+----------------------+ | 1 TITAN RTX Off | 00000000:21:00.0 Off | N/A | | 41% 36C P8 12W / 280W | 1MiB / 24220MiB | 0% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 2237 G /usr/lib/xorg/Xorg 386MiB | | 0 2713 G compiz 109MiB | +-----------------------------------------------------------------------------+ chibi@1604:~$ nvidia-smi nvlink -c GPU 0: TITAN RTX (UUID: GPU-5a71d61e-f130-637a-b33d-4df555b0ed88) Link 0, P2P is supported: true Link 0, Access to system memory supported: true Link 0, P2P atomics supported: true Link 0, System memory atomics supported: true Link 0, SLI is supported: true Link 0, Link is supported: false Link 1, P2P is supported: true Link 1, Access to system memory supported: true Link 1, P2P atomics supported: true Link 1, System memory atomics supported: true Link 1, SLI is supported: true Link 1, Link is supported: false GPU 1: TITAN RTX (UUID: GPU-7fb51c1d-c1e7-35cc-aad7-66971f05ddb7) Link 0, P2P is supported: true Link 0, Access to system memory supported: true Link 0, P2P atomics supported: true Link 0, System memory atomics supported: true Link 0, SLI is supported: true Link 0, Link is supported: false Link 1, P2P is supported: true Link 1, Access to system memory supported: true Link 1, P2P atomics supported: true Link 1, System memory atomics supported: true Link 1, SLI is supported: true Link 1, Link is supported: false chibi@1604:~$