Weitere ähnliche Inhalte Ähnlich wie ROCm with dGPU(AMD GPU) (memo) (20) Mehr von Naoto MATSUMOTO (20) Kürzlich hochgeladen (20) ROCm with dGPU(AMD GPU) (memo)1. ROCm with dGPU(AMD GPU)
(memo)
2018/02/22 SAKURA Internet, Inc. Research Center SR / Naoto MATSUMOTO
(C) Copyright 1996-2018 SAKURA Internet Inc
2. ROCm with dGPU(AMD GPU) (memo)
2
# uname -sr; cat /etc/lsb-release
Linux 4.4.0-87-generic
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
# lscpu
Model name: Intel(R) Core(TM) i7-7800X CPU @ 3.50GHz
# lspci | grep VGA
65:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67ef (rev cf) / *[Radeon RX 460]
ROCm Platform Supports Two Graphics Core Next (GCN) GPU Generations
GFX8: Radeon RX 480,Radeon RX 470,Radeon RX 460,R9 Nano,Radeon R9 Fury,Radeon R9 Fury X Radeon Pro WX7100, FirePro S9300 x2
Radeon Vega Frointer Edition, Radeon Instinct: MI6, MI8, and MI25 (https://rocm.github.io/hardware.html)
# apt update
# apt dist-upgrade
# apt-get install -y libnuma-dev
# sync; sync; sync; reboot
# wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
# sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
# apt-get install -y rocm-dkms
# usermod -a -G video $LOGNAME
# sync; sync; sync; reboot
# /opt/rocm/opencl/bin/x86_64/clinfo
Platform Version: OpenCL 2.1 AMD-APP.internal (2545.0)
Platform Name: AMD Accelerated Parallel Processing
# wget https://raw.githubusercontent.com/bgaster/opencl-book-samples/master/src/Chapter_2/HelloWorld/HelloWorld.cpp
# wget https://raw.githubusercontent.com/bgaster/opencl-book-samples/master/src/Chapter_2/HelloWorld/HelloWorld.cl
# g++ -I /opt/rocm/opencl/include/ ./HelloWorld.cpp -o HelloWorld -L/opt/rocm/opencl/lib/x86_64 -lOpenCL
# ./HelloWorld
0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 75 78 81 84 87 90 93 96 99 102 105 108 111 114 117 120
... 2985 2988 2991 2994 2997
Executed program succesfully.