SlideShare a Scribd company logo
How to burn your GPU with CUDA9.1
2018/02/19 SAKURA Internet, Inc. Research Center SR / Naoto MATSUMOTO
(C) Copyright 1996-2017 SAKURA Internet Inc
How to burn your GPU with CUDA9.1
2
# uname -sr; cat /etc/lsb-release
Linux 4.13.0-21-generic
DISTRIB_DESCRIPTION="Ubuntu 17.10"
# vi /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
# sync; sync; reboot
# apt install g++ freeglut3-dev build-essential libx11-dev libxmu-dev
# apt install libxi-dev libglu1-mesa libglu1-mesa-dev gcc-6 g++-6
Download CUDA9.1 from https://developer.nvidia.com/cuda-toolkit
# bash cuda_9.1.85_387.26_linux.run --silent --toolkit --override --no-opengl-libs --driver
# ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc
# ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g++
# vi ~/.bashrc
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export CUDA_HOME=/usr/local/cuda
# source ~/.bashrc
# git clone https://github.com/wilicc/gpu-burn.git
# cd gpu-burn/
# vi Makefile
NVCC=/usr/local/cuda/bin/nvcc
# make
# ./gpu_burn 1000
# watch -n 1 nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 387.26 Driver Version: 387.26 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1050 Off | 00000000:65:00.0 Off | N/A |
| 37% 72C P0 N/A / 65W | 1793MiB / 1997MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
How to burn your GPU with CUDA9.1 (MapD Community Edition 3.4.0)
3
# apt install -y curl apt-transport-https
# useradd -U mapd
# ufw disable; ufw enable; ufw allow 9092/tcp; ufw allow 22/tcp
# curl https://releases.mapd.com/ce/mapd-ce-cuda.list | sudo tee /etc/apt/sources.list.d/mapd.list
# curl https://releases.mapd.com/GPG-KEY-mapd | sudo apt-key add -
# apt update
# apt install -y mapd
# vi ~/.bashrc
export MAPD_USER=mapd
export MAPD_GROUP=mapd
export MAPD_STORAGE=/var/lib/mapd
export MAPD_PATH=/opt/mapd
# source ~/.bashrc
# mkdir -p $MAPD_STORAGE
# chown -R $MAPD_USER $MAPD_STORAGE
# cd $MAPD_PATH/systemd
# ./install_mapd_systemd.sh
# cd $MAPD_PATH
# systemctl start mapd_server; systemctl enable mapd_server
# systemctl start mapd_web_server; systemctl enable mapd_web_server
# $MAPD_PATH/insert_sample_data
2) Flights (2008) 10k
2
# $MAPD_PATH/bin/mapdql -t
Password: HyperInteractive
mapdql> SELECT origin_city AS "Origin", dest_city AS "Destination", AVG(airtime) AS "Average Airtime" FROM flights_2008_10k
WHERE distance <= 33 GROUP BY origin_city, dest_city;
Execution time: 1268 ms, Total time: 1269 ms
SOURCE: https://www.mapd.com/platform/download-community/
+----------------------------------------------------------
| NVIDIA-SMI 387.26 Driver Version: 387.26
|-------------------------------+----------------------+---
| GPU Name Persistence-M| Bus-Id Disp.A |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage |
|===============================+======================+===
| 0 GeForce GTX 1050 Off | 00000000:65:00.0 Off |
| 29% 27C P0 N/A / 65W | 1449MiB / 1997MiB |
+-------------------------------+----------------------+---
|==========================================================
| 0 5828 C /opt/mapd/bin/mapd_server
+----------------------------------------------------------
Origin|Destination|Average Airtime
West Palm Beach|Tampa|33.81818181818182
Norfolk|Baltimore|36.07142857142857
Ft. Myers|Orlando|28.66666666666667
Indianapolis|Chicago|39.53846153846154
Tampa|West Palm Beach|33.25
Orlando|Ft. Myers|32.58333333333334
Austin|Houston|33.05555555555556
Chicago|Indianapolis|32.7
Baltimore|Norfolk|31.71428571428572
Houston|Austin|29.61111111111111

More Related Content

PDF
My First BCC
PDF
NetBSDworkshop
PPT
Qemu - Raspberry | while42 Singapore #2
PDF
My First XDP (eXpress Data Path)
PDF
curl --http3 cheatsheet
PDF
NetBSD workshop
KEY
今さら聞けないAWS on Rails
PDF
My First F-Stack
My First BCC
NetBSDworkshop
Qemu - Raspberry | while42 Singapore #2
My First XDP (eXpress Data Path)
curl --http3 cheatsheet
NetBSD workshop
今さら聞けないAWS on Rails
My First F-Stack

What's hot (20)

PDF
How to train your L3DSR with PBR - MEMO -
PDF
OpenBTS AirPutih
PDF
Perl on embedded Linux with Buildroot‎
PDF
Build Android OS on OSX
PDF
Picobgp - A simple deamon for routing advertising
PDF
x86_64 Hardware Deep dive
PDF
Introducing OpenHPC Cross Platform Provisioning Assembly for Warewulf
PDF
AMDGPU ROCm Deep dive
PDF
Make A Shoot ‘Em Up Game with Amethyst Framework
PDF
Gameboy emulator in rust and web assembly
PDF
Control-M 800 - Infrastructure Example
PDF
redis-benchmark with AMD RYZEN 1800X memo
PDF
There is more to C
PDF
用 Bitbar Tool 寫 Script 自動擷取外幣
PDF
Asus WL500gP USB Serial
PPTX
ns2 install
PDF
Linux kernel bug hunting
PDF
AWS ロボを作ろう JAWSUG Kobe
PDF
Introduction to nand2 tetris
How to train your L3DSR with PBR - MEMO -
OpenBTS AirPutih
Perl on embedded Linux with Buildroot‎
Build Android OS on OSX
Picobgp - A simple deamon for routing advertising
x86_64 Hardware Deep dive
Introducing OpenHPC Cross Platform Provisioning Assembly for Warewulf
AMDGPU ROCm Deep dive
Make A Shoot ‘Em Up Game with Amethyst Framework
Gameboy emulator in rust and web assembly
Control-M 800 - Infrastructure Example
redis-benchmark with AMD RYZEN 1800X memo
There is more to C
用 Bitbar Tool 寫 Script 自動擷取外幣
Asus WL500gP USB Serial
ns2 install
Linux kernel bug hunting
AWS ロボを作ろう JAWSUG Kobe
Introduction to nand2 tetris
Ad

Similar to How to burn your GPU with CUDA9.1 (20)

PDF
9 creating cent_os 7_mages_for_dpdk_training
PPT
Qt native built for raspberry zero
PDF
How to Burn Multi-GPUs using CUDA stress test memo
PDF
More than Applications: (Ab)using Docker to Improve the Portability of Everyt...
PDF
Bundling Packages and Deploying Applications with RPM
PDF
Attacking IoT Devices from a Web Perspective - Linux Day
PPT
Edup wifi for raspberry zero
PDF
UP Board AI Core Configuration memo
PDF
SPDK benchmark memo
DOCX
Tutorial to setup OpenStreetMap tileserver with customized boundaries of India
PPTX
Programming OpenRISC on Altera De0_nano
PPTX
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
PDF
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
PDF
Using Nix and Docker as automated deployment solutions
PDF
How to Install Ghost (CMS) MEMO
PPTX
How to go the extra mile on monitoring
PDF
How to twist a IPv6 over Bluetooth (6lowpan)
PDF
How to ride a 100GbE LAN -MEMO-
PDF
Globus toolkit4installationguide
PDF
Free radius billing server with practical vpn exmaple
9 creating cent_os 7_mages_for_dpdk_training
Qt native built for raspberry zero
How to Burn Multi-GPUs using CUDA stress test memo
More than Applications: (Ab)using Docker to Improve the Portability of Everyt...
Bundling Packages and Deploying Applications with RPM
Attacking IoT Devices from a Web Perspective - Linux Day
Edup wifi for raspberry zero
UP Board AI Core Configuration memo
SPDK benchmark memo
Tutorial to setup OpenStreetMap tileserver with customized boundaries of India
Programming OpenRISC on Altera De0_nano
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
Using Nix and Docker as automated deployment solutions
How to Install Ghost (CMS) MEMO
How to go the extra mile on monitoring
How to twist a IPv6 over Bluetooth (6lowpan)
How to ride a 100GbE LAN -MEMO-
Globus toolkit4installationguide
Free radius billing server with practical vpn exmaple
Ad

More from Naoto MATSUMOTO (20)

PDF
Alder Lake-S CPU Temperature Monitoring
PDF
CPU製品出荷状況と消費電力の見える化
PDF
5Gの見える化
PDF
2023年以降のサーバークラスタリング設計(メモ)
PDF
防災を考慮した水中調査の一考察
PDF
旅するパケットの見える化
PDF
LTE-M/NB IoTを試してみる nRF9160/Thingy:91
PDF
災害時における無線モニタリングによる社会インフラの見える化
PDF
BeautifulSoup / selenium Deep dive
PDF
Network Adapter Deep dive
PDF
RTL2838 DVB-T Deep dive
PDF
ADS-B, AIS, APRS cheatsheet
PDF
3/4G USB modem Cheat Sheet
PDF
How To Train Your ARM(SBC)
PDF
全国におけるCOVID-19対策の見える化 ~宿泊業の場合~
PDF
我が国の電波の使用状況/携帯電話向け割当 (2019年3月1日現在)
PDF
私たちに訪れる(かもしれない)未来と計算機によるモノコトの見える化
PDF
仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)
PDF
インターネットを用いたニア・リアルタイムでの災害観測の考察
PDF
AMD Ryzen Threadripper 3960X によるPCIe 4.0 x16x16x16環境の詳解
Alder Lake-S CPU Temperature Monitoring
CPU製品出荷状況と消費電力の見える化
5Gの見える化
2023年以降のサーバークラスタリング設計(メモ)
防災を考慮した水中調査の一考察
旅するパケットの見える化
LTE-M/NB IoTを試してみる nRF9160/Thingy:91
災害時における無線モニタリングによる社会インフラの見える化
BeautifulSoup / selenium Deep dive
Network Adapter Deep dive
RTL2838 DVB-T Deep dive
ADS-B, AIS, APRS cheatsheet
3/4G USB modem Cheat Sheet
How To Train Your ARM(SBC)
全国におけるCOVID-19対策の見える化 ~宿泊業の場合~
我が国の電波の使用状況/携帯電話向け割当 (2019年3月1日現在)
私たちに訪れる(かもしれない)未来と計算機によるモノコトの見える化
仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)
インターネットを用いたニア・リアルタイムでの災害観測の考察
AMD Ryzen Threadripper 3960X によるPCIe 4.0 x16x16x16環境の詳解

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Empathic Computing: Creating Shared Understanding
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Electronic commerce courselecture one. Pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
Network Security Unit 5.pdf for BCA BBA.
Per capita expenditure prediction using model stacking based on satellite ima...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
The AUB Centre for AI in Media Proposal.docx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
Electronic commerce courselecture one. Pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
MIND Revenue Release Quarter 2 2025 Press Release
Review of recent advances in non-invasive hemoglobin estimation
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Programs and apps: productivity, graphics, security and other tools
Diabetes mellitus diagnosis method based random forest with bat algorithm

How to burn your GPU with CUDA9.1

  • 1. How to burn your GPU with CUDA9.1 2018/02/19 SAKURA Internet, Inc. Research Center SR / Naoto MATSUMOTO (C) Copyright 1996-2017 SAKURA Internet Inc
  • 2. How to burn your GPU with CUDA9.1 2 # uname -sr; cat /etc/lsb-release Linux 4.13.0-21-generic DISTRIB_DESCRIPTION="Ubuntu 17.10" # vi /etc/modprobe.d/blacklist-nouveau.conf blacklist nouveau options nouveau modeset=0 # sync; sync; reboot # apt install g++ freeglut3-dev build-essential libx11-dev libxmu-dev # apt install libxi-dev libglu1-mesa libglu1-mesa-dev gcc-6 g++-6 Download CUDA9.1 from https://developer.nvidia.com/cuda-toolkit # bash cuda_9.1.85_387.26_linux.run --silent --toolkit --override --no-opengl-libs --driver # ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc # ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g++ # vi ~/.bashrc export PATH=/usr/local/cuda/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} export CUDA_HOME=/usr/local/cuda # source ~/.bashrc # git clone https://github.com/wilicc/gpu-burn.git # cd gpu-burn/ # vi Makefile NVCC=/usr/local/cuda/bin/nvcc # make # ./gpu_burn 1000 # watch -n 1 nvidia-smi +-----------------------------------------------------------------------------+ | NVIDIA-SMI 387.26 Driver Version: 387.26 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 1050 Off | 00000000:65:00.0 Off | N/A | | 37% 72C P0 N/A / 65W | 1793MiB / 1997MiB | 100% Default | +-------------------------------+----------------------+----------------------+
  • 3. How to burn your GPU with CUDA9.1 (MapD Community Edition 3.4.0) 3 # apt install -y curl apt-transport-https # useradd -U mapd # ufw disable; ufw enable; ufw allow 9092/tcp; ufw allow 22/tcp # curl https://releases.mapd.com/ce/mapd-ce-cuda.list | sudo tee /etc/apt/sources.list.d/mapd.list # curl https://releases.mapd.com/GPG-KEY-mapd | sudo apt-key add - # apt update # apt install -y mapd # vi ~/.bashrc export MAPD_USER=mapd export MAPD_GROUP=mapd export MAPD_STORAGE=/var/lib/mapd export MAPD_PATH=/opt/mapd # source ~/.bashrc # mkdir -p $MAPD_STORAGE # chown -R $MAPD_USER $MAPD_STORAGE # cd $MAPD_PATH/systemd # ./install_mapd_systemd.sh # cd $MAPD_PATH # systemctl start mapd_server; systemctl enable mapd_server # systemctl start mapd_web_server; systemctl enable mapd_web_server # $MAPD_PATH/insert_sample_data 2) Flights (2008) 10k 2 # $MAPD_PATH/bin/mapdql -t Password: HyperInteractive mapdql> SELECT origin_city AS "Origin", dest_city AS "Destination", AVG(airtime) AS "Average Airtime" FROM flights_2008_10k WHERE distance <= 33 GROUP BY origin_city, dest_city; Execution time: 1268 ms, Total time: 1269 ms SOURCE: https://www.mapd.com/platform/download-community/ +---------------------------------------------------------- | NVIDIA-SMI 387.26 Driver Version: 387.26 |-------------------------------+----------------------+--- | GPU Name Persistence-M| Bus-Id Disp.A | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | |===============================+======================+=== | 0 GeForce GTX 1050 Off | 00000000:65:00.0 Off | | 29% 27C P0 N/A / 65W | 1449MiB / 1997MiB | +-------------------------------+----------------------+--- |========================================================== | 0 5828 C /opt/mapd/bin/mapd_server +---------------------------------------------------------- Origin|Destination|Average Airtime West Palm Beach|Tampa|33.81818181818182 Norfolk|Baltimore|36.07142857142857 Ft. Myers|Orlando|28.66666666666667 Indianapolis|Chicago|39.53846153846154 Tampa|West Palm Beach|33.25 Orlando|Ft. Myers|32.58333333333334 Austin|Houston|33.05555555555556 Chicago|Indianapolis|32.7 Baltimore|Norfolk|31.71428571428572 Houston|Austin|29.61111111111111