<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by vishal kajjam on Medium]]></title>
        <description><![CDATA[Stories by vishal kajjam on Medium]]></description>
        <link>https://medium.com/@vishal_kvn?source=rss-a2f79ea298c8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lTaK8GPlNLHanycU.jpeg</url>
            <title>Stories by vishal kajjam on Medium</title>
            <link>https://medium.com/@vishal_kvn?source=rss-a2f79ea298c8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 00:18:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishal_kvn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Software installation for NVIDIA GPU on Fedora 30]]></title>
            <link>https://medium.com/@vishal_kvn/software-installation-for-nvidia-gpu-on-fedora-30-c206d87cf237?source=rss-a2f79ea298c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c206d87cf237</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[fedora]]></category>
            <category><![CDATA[cuda]]></category>
            <category><![CDATA[nvidia-docker]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[vishal kajjam]]></dc:creator>
            <pubDate>Sun, 10 Nov 2019 10:23:38 GMT</pubDate>
            <atom:updated>2019-11-10T10:25:08.677Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous blog post I went over the hardware setup. This blog post covers the <a href="https://medium.com/@vishal_kvn/building-a-deep-learning-computer-35cd63f11ad9">software installation</a> part.</p><h3><strong>Definitions</strong></h3><p><strong>Driver</strong>: A computer program that operates or controls a particular type of device attached to the computer.</p><p><strong>Computer Unified Device Architecture</strong>(CUDA): Is a parallel computing platform which enables General Purpose Computing (widely known as GPGPU) in a very efficient and easy way.</p><p><strong>cuDnn</strong>: Library for deep neural networks built using CUDA. It provides GPU accelerated functionality for common operations in neural networks.</p><p>There are a couple of ways to use GPUs from training models. The first one is to install the driver, cuda and cuDnn OR install the driver and nvidia-docker and allow docker to handle the version dependencies. The docker version is easier to setup and start training.</p><p>Order of software installation -</p><ul><li>OS(Fedora 30)</li><li>GPU driver(430.34) + CUDA(10.1) + cuDnn</li><li>Docker</li></ul><h3>OS Installation</h3><ul><li>From an existing machine go to <a href="https://getfedora.org/en/workstation/download/">getfedora.org</a> and use Fedora package manager write the bootable iso to a USB for a live install.</li><li>On the linux machine, update the boot order to read from the USB and insert the USB drive from the previous step.</li><li>From the live install save Fedora to hard disk and reclaim all partitions if you want to format the hard disk.</li></ul><h3>GPU driver(430.34) + CUDA(10.1) + cuDnn(7.6.0) + gcc(8.3.0) Installation</h3><p>I have tried different combinations of driver, cuda, cudnn and gcc versions until I settled on the above versions. I have used the <a href="https://negativo17.org/nvidia-driver/">negativo17</a> as the installation repository as it has the drivers nicely packaged and importantly uses 8.3.0 version of gcc.</p><pre>$ dnf config-manager — add-repo=https://negativo17.org/repos/fedora-nvidia.repo</pre><p><strong>Driver Installation</strong></p><pre>$ sudo dnf install nvidia-driver nvidia-driver-cuda akmod-nvidinvidia-settings</pre><p><strong>Verify Driver Installation</strong></p><pre>$ glxgears -info</pre><p><strong>Install CUDA and cuDNN</strong></p><pre>$ sudo dnf install cuda cuda-devel cuda-gcc cuda-gcc-c++ cuda-cudnn cuda-cudnn-devel cuda-samples</pre><p><strong>Search for cuda packages</strong></p><pre>$ dnf search cuda</pre><p><strong>Verify gcc version is 8.3.0</strong></p><pre>$ cuda-gcc — version</pre><pre>cuda-gcc (GCC) 8.3.0</pre><pre>Copyright © 2018 Free Software Foundation, Inc.</pre><pre>This is free software; see the source for copying conditions. There is NO</pre><pre>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</pre><p><strong>Verify installation and get GPU info using deviceQuery</strong></p><pre>$ cp -r /usr/share/cuda/samples ~/<br>$ cd samples/1_Utilities/deviceQuery</pre><p>Replace</p><pre>[code]CUDA_PATH ?= /usr/local/cuda[/code]</pre><p>with</p><pre>[code]CUDA_PATH ?= /usr[/code]</pre><p>in the Makefile</p><pre>$ make run</pre><pre>Device 0: “GeForce RTX 2080 Ti”</pre><pre>CUDA Driver Version / Runtime Version 10.1 / 10.1</pre><pre>CUDA Capability Major/Minor version number: 7.5</pre><pre>Total amount of global memory: 11019 MBytes (11554324480 bytes)</pre><pre>(68) Multiprocessors, ( 64) CUDA Cores/MP: 4352 CUDA Cores</pre><pre>GPU Max Clock rate: 1545 MHz (1.54 GHz)</pre><pre>Memory Clock rate: 7000 Mhz</pre><pre>Memory Bus Width: 352-bit</pre><pre>L2 Cache Size: 5767168 bytes</pre><pre>Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384)</pre><pre>Maximum Layered 1D Texture Size, (num) layers 1D=(32768), 2048 layers</pre><pre>Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 2048 layers</pre><pre>Total amount of constant memory: 65536 bytes</pre><pre>Total amount of shared memory per block: 49152 bytes</pre><pre>Total number of registers available per block: 65536</pre><pre>Warp size: 32</pre><pre>Maximum number of threads per multiprocessor: 1024</pre><pre>Maximum number of threads per block: 1024</pre><pre>Max dimension size of a thread block (x,y,z): (1024, 1024, 64)</pre><pre>Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)</pre><pre>Maximum memory pitch: 2147483647 bytes</pre><pre>Texture alignment: 512 bytes</pre><pre>Concurrent copy and kernel execution: Yes with 3 copy engine(s)</pre><pre>Run time limit on kernels: Yes</pre><pre>Integrated GPU sharing Host Memory: No</pre><pre>Support host page-locked memory mapping: Yes</pre><pre>Alignment requirement for Surfaces: Yes</pre><pre>Device has ECC support: Disabled</pre><pre>Device supports Unified Addressing (UVA): Yes</pre><pre>Device supports Compute Preemption: Yes</pre><pre>Supports Cooperative Kernel Launch: Yes</pre><pre>Supports MultiDevice Co-op Kernel Launch: Yes</pre><pre>Device PCI Domain ID / Bus ID / location ID: 0 / 65 / 0</pre><pre>Compute Mode:</pre><pre>&lt; Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) &gt;</pre><pre>deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.1, CUDA Runtime Version = 10.1, NumDevs = 1</pre><pre>Result = PASS</pre><p><strong>Compile and run simplePrintf</strong></p><pre>$ cd 0_Simple/simplePrintf/</pre><pre>$ make run</pre><pre>/usr/bin/nvcc — include-path /usr/include/cuda -ccbin /usr/bin/cuda-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 simplePrintf.o -c simplePrintf.cu</pre><pre>/usr/bin/nvcc — include-path /usr/include/cuda -ccbin /usr/bin/cuda-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 simplePrintf simplePrintf.o</pre><pre>mkdir -p ../../bin/x86_64/linux/release</pre><pre>cp simplePrintf ../../bin/x86_64/linux/release</pre><pre>./simplePrintf</pre><pre>GPU Device 0: “GeForce RTX 2080 Ti” with compute capability 7.5</pre><pre>Device 0: “GeForce RTX 2080 Ti” with Compute 7.5 capability</pre><pre>printf() is called. Output:</pre><pre>[0, 0]: Value is:10</pre><pre>[0, 1]: Value is:10</pre><pre>[0, 2]: Value is:10</pre><pre>[0, 3]: Value is:10</pre><pre>[0, 4]: Value is:10</pre><pre>[0, 5]: Value is:10</pre><pre>[0, 6]: Value is:10</pre><pre>[0, 7]: Value is:10</pre><pre>[1, 0]: Value is:10</pre><pre>[1, 1]: Value is:10</pre><pre>[1, 2]: Value is:10</pre><pre>[1, 3]: Value is:10</pre><pre>[1, 4]: Value is:10</pre><pre>[1, 5]: Value is:10</pre><pre>[1, 6]: Value is:10</pre><pre>[1, 7]: Value is:10</pre><pre>[3, 0]: Value is:10</pre><pre>[3, 1]: Value is:10</pre><pre>[3, 2]: Value is:10</pre><pre>[3, 3]: Value is:10</pre><pre>[3, 4]: Value is:10</pre><pre>[3, 5]: Value is:10</pre><pre>[3, 6]: Value is:10</pre><pre>[3, 7]: Value is:10</pre><pre>[2, 0]: Value is:10</pre><pre>[2, 1]: Value is:10</pre><pre>[2, 2]: Value is:10</pre><pre>[2, 3]: Value is:10</pre><pre>[2, 4]: Value is:10</pre><pre>[2, 5]: Value is:10</pre><pre>[2, 6]: Value is:10</pre><pre>[2, 7]: Value is:10</pre><p><strong>Driver version</strong></p><pre>nvidia-settings<br>nvidia-smi</pre><p><strong>CUDA version</strong></p><pre>nvcc — version</pre><p><strong>cuDNN version</strong></p><pre>which nvcc<br>whereis cuda</pre><pre>cat /usr/include/cuda/cudnn.h | grep CUDNN_MAJOR -A 2 # cudnn version</pre><h3>Docker Installation</h3><pre>sudo dnf -y update<br>sudo reboot<br>sudo dnf -y install dnf-plugins-core<br>sudo dnf config-manager --add-repo <a href="https://download.docker.com/linux/fedora/docker-ce.repo">https://download.docker.com/linux/fedora/docker-ce.repo</a><br>sudo dnf install --releasever=29 docker-ce docker-ce-cli containerd.io<br>sudo systemctl enable --now docker<br>sudo systemctl status  docker<br>sudo usermod -aG docker $(whoami)<br>sudo reboot<br>docker version<br>docker pull alpine<br>docker run -it --rm alpine /bin/sh</pre><h3>Docker NVIDIA Installation</h3><pre>$ sudo dnf -y install dnf-plugins-core<br>$ sudo dnf config-manager \    <br>    --add-repo \    <br>    <a href="https://download.docker.com/linux/fedora/docker-ce.repo">https://download.docker.com/linux/fedora/docker-ce.repo</a></pre><pre>$ sudo dnf install docker-ce<br>$ sudo systemctl start docker<br>$ sudo curl -s -L <a href="https://nvidia.github.io/nvidia-docker/centos7/nvidia-docker.repo">https://nvidia.github.io/nvidia-docker/centos7/nvidia-docker.repo</a> | \<br>    sudo tee /etc/yum.repos.d/nvidia-docker.repo<br>$ sudo dnf install nvidia-docker2<br>$ sudo pkill -SIGHUP dockerd<br>$ sudo docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi</pre><p>Run docker using nvidia runtime</p><pre>$sudo docker run --runtime=nvidia -it tensorflow/tensorflow:latest-gpu-py3 bash</pre><h3>Verify GPU usage</h3><p><strong>Tensorflow version</strong></p><pre>pip3 list | grep tensorflow</pre><pre>OR</pre><pre>python3 -c ‘import tensorflow as tf; print(tf.__version__)’</pre><p><strong>Tensorflow helper methods</strong></p><pre>python<br>&gt;&gt;&gt; import tensorflow as tf<br>&gt;&gt;&gt; tf.test.is_built_with_cuda()</pre><pre>True<br>&gt;&gt;&gt; tf.test.is_gpu_available()<br>2019-07-21 23:40:27.882020: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA<br>2019-07-21 23:40:27.903098: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcuda.so.1<br>2019-07-21 23:40:28.022270: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:28.022862: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x41bbe30 executing computations on platform CUDA. Devices:<br>2019-07-21 23:40:28.022905: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): GeForce RTX 2080 Ti, Compute Capability 7.5<br>2019-07-21 23:40:28.038203: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3493075000 Hz<br>2019-07-21 23:40:28.040134: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x45fd760 executing computations on platform Host. Devices:<br>2019-07-21 23:40:28.040166: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): &lt;undefined&gt;, &lt;undefined&gt;<br>2019-07-21 23:40:28.040404: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:28.041668: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties: <br>name: GeForce RTX 2080 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.545<br>pciBusID: 0000:41:00.0<br>2019-07-21 23:40:28.042004: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0<br>2019-07-21 23:40:28.043380: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10.0<br>2019-07-21 23:40:28.044575: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcufft.so.10.0<br>2019-07-21 23:40:28.044756: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcurand.so.10.0<br>2019-07-21 23:40:28.045767: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusolver.so.10.0<br>2019-07-21 23:40:28.046535: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusparse.so.10.0<br>2019-07-21 23:40:28.048659: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudnn.so.7<br>2019-07-21 23:40:28.048797: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:28.049352: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:28.049799: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0<br>2019-07-21 23:40:28.049829: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0<br>2019-07-21 23:40:28.050719: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix:<br>2019-07-21 23:40:28.050733: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187]      0 <br>2019-07-21 23:40:28.050737: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1200] 0:   N <br>2019-07-21 23:40:28.050817: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:28.051320: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:28.051792: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1326] Created TensorFlow device (/device:GPU:0 with 10029 MB memory) -&gt; physical GPU (device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5)<br>True<br>&gt;&gt;&gt; tf.test.gpu_device_name()<br>2019-07-21 23:40:44.938269: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:44.939155: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties: <br>name: GeForce RTX 2080 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.545<br>pciBusID: 0000:41:00.0<br>2019-07-21 23:40:44.939204: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0<br>2019-07-21 23:40:44.939222: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10.0<br>2019-07-21 23:40:44.939236: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcufft.so.10.0<br>2019-07-21 23:40:44.939252: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcurand.so.10.0<br>2019-07-21 23:40:44.939267: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusolver.so.10.0<br>2019-07-21 23:40:44.939282: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusparse.so.10.0<br>2019-07-21 23:40:44.939297: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudnn.so.7<br>2019-07-21 23:40:44.939373: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:44.940268: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:44.941088: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0<br>2019-07-21 23:40:44.941126: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix:<br>2019-07-21 23:40:44.941138: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187]      0 <br>2019-07-21 23:40:44.941147: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1200] 0:   N <br>2019-07-21 23:40:44.941257: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:44.941811: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:40:44.942295: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1326] Created TensorFlow device (/device:GPU:0 with 10029 MB memory) -&gt; physical GPU (device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5)<br>&#39;/device:GPU:0&#39;<br>&gt;&gt;&gt; a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name=&#39;a&#39;)<br>&gt;&gt;&gt; b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name=&#39;b&#39;)<br>&gt;&gt;&gt; c = tf.matmul(a, b)<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))<br>2019-07-21 23:41:59.131500: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:41:59.132476: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties: <br>name: GeForce RTX 2080 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.545<br>pciBusID: 0000:41:00.0<br>2019-07-21 23:41:59.132530: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0<br>2019-07-21 23:41:59.132548: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10.0<br>2019-07-21 23:41:59.132571: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcufft.so.10.0<br>2019-07-21 23:41:59.132589: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcurand.so.10.0<br>2019-07-21 23:41:59.132604: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusolver.so.10.0<br>2019-07-21 23:41:59.132617: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusparse.so.10.0<br>2019-07-21 23:41:59.132633: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudnn.so.7<br>2019-07-21 23:41:59.132724: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:41:59.133624: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:41:59.134459: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0<br>2019-07-21 23:41:59.134499: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix:<br>2019-07-21 23:41:59.134509: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187]      0 <br>2019-07-21 23:41:59.134517: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1200] 0:   N <br>2019-07-21 23:41:59.134629: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:41:59.135533: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>2019-07-21 23:41:59.136571: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1326] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10029 MB memory) -&gt; physical GPU (device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5)<br>Device mapping:<br>/job:localhost/replica:0/task:0/device:XLA_GPU:0 -&gt; device: XLA_GPU device<br>/job:localhost/replica:0/task:0/device:XLA_CPU:0 -&gt; device: XLA_CPU device<br>/job:localhost/replica:0/task:0/device:GPU:0 -&gt; device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5<br>2019-07-21 23:41:59.137987: I tensorflow/core/common_runtime/direct_session.cc:296] Device mapping:<br>/job:localhost/replica:0/task:0/device:XLA_GPU:0 -&gt; device: XLA_GPU device<br>/job:localhost/replica:0/task:0/device:XLA_CPU:0 -&gt; device: XLA_CPU device<br>/job:localhost/replica:0/task:0/device:GPU:0 -&gt; device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5</pre><pre>&gt;&gt;&gt; print(sess.run(c))<br>MatMul: (MatMul): /job:localhost/replica:0/task:0/device:GPU:0<br>2019-07-21 23:43:15.876826: I tensorflow/core/common_runtime/placer.cc:54] MatMul: (MatMul)/job:localhost/replica:0/task:0/device:GPU:0<br>a: (Const): /job:localhost/replica:0/task:0/device:GPU:0<br>2019-07-21 23:43:15.876890: I tensorflow/core/common_runtime/placer.cc:54] a: (Const)/job:localhost/replica:0/task:0/device:GPU:0<br>b: (Const): /job:localhost/replica:0/task:0/device:GPU:0<br>2019-07-21 23:43:15.876920: I tensorflow/core/common_runtime/placer.cc:54] b: (Const)/job:localhost/replica:0/task:0/device:GPU:0<br>[[22. 28.]<br> [49. 64.]]</pre><h3>References &amp; Related Links</h3><ul><li><a href="https://www.quora.com/What-is-CUDA-and-cuDNN">What is CUDA and cuDNN?</a></li><li><a href="https://www.cstechera.com/2015/05/what-is-cuda.html">What is CUDA?</a></li><li><a href="https://computingforgeeks.com/how-to-install-docker-on-fedora/">How to install Docker on Fedora 30/29/28 - Computing for Geeks</a></li><li><a href="https://medium.com/@aaronpolhamus/nvidia-powered-ml-station-with-fedora-29-docker-a8e4bd6a80ae">NVIDIA-powered ML station with Fedora 29 + Docker</a></li><li><a href="https://nvidia.github.io/nvidia-container-runtime/">Repository configuration</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c206d87cf237" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Deep Learning Computer]]></title>
            <link>https://medium.com/@vishal_kvn/building-a-deep-learning-computer-35cd63f11ad9?source=rss-a2f79ea298c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/35cd63f11ad9</guid>
            <category><![CDATA[diy-projects]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[vishal kajjam]]></dc:creator>
            <pubDate>Sun, 10 Nov 2019 10:16:40 GMT</pubDate>
            <atom:updated>2019-11-10T10:24:32.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Deep Learning Machine</h3><h3><strong>Why should you do it?</strong></h3><ul><li>Better understanding of the end to end training process.</li><li>Pays for itself. Assuming that you train for 240 hours a month, renting an <a href="https://aws.amazon.com/ec2/instance-types/p3/">amazon p3</a> instance($3/hour) would cost you 240 * 3 = $720. Going by this estimate you will break even in 4 months.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*6goVsdfHkO2RgYSSyJyoHA.png" /><figcaption>p3 instance prices as of 11/07/19</figcaption></figure><ul><li>Do not have to remember to turn off you instance once you are done with the training and save your work.</li><li>Ability to take advantage of price drops on components.</li><li>It is fun understanding how different components fit together.</li><li><a href="https://system76.com/">Of the shelf GPU desktop builds</a> are available but are a more expensive and come with pre-installed software and have limited scope for expansion.</li></ul><h3><strong>Where do you start?</strong></h3><ul><li>Reach out to friends or social media who have previously built their own machines</li><li>Read online blog posts (I have included links in the <em>Useful Resources</em> section)</li><li>Subscribe to Youtube channels (I have included links in the <em>Useful Resources</em> section)</li></ul><h3><strong>How do you choose your components?</strong></h3><p>Here are the main building blocks for a desktop are -</p><ul><li>Case</li><li>Power supply</li><li>Motherboard</li><li>CPU</li><li>Memory</li><li>Storage</li><li>GPU</li><li>Cooler</li></ul><p>Depending on your training needs, you can start off with a single GPU. Choose the motherboard and case such that there is room to add additional GPUs if you start working with bigger models and data sets.</p><p>As far as CPUs go, you have 2 companies AMD and Intel. In the past 1 year AMD has been coming up with better CPUs and hence I chose AMD. Since GPUs produce a lot of heat while running it is important to have a cooler. I chose the conventional fan cooler over the liquid cooler as I felt that this would require less maintenance.</p><p>Most hardware websites allow you to compare different components and builds and it has been very helpful for me in choosing the components.</p><p>Here are the specs for my desktop build -</p><pre>+------------------+-----------------------------------------------+<br>|    Component     |                       Description             |<br>+------------------+-----------------------------------------------+<br>| GPU              | Nvidia EVGA GeForce RTX 2080 Ti               |<br>| CPU              | AMD 2nd Gen Ryzen 2920X 12-Core 24-Thread     |<br>| RAM              | G.SKILL Ripjaws V Series 32 GB DDR4 SDRAM     |<br>| Motherboard      | ASRock X399 Taichi                            |<br>| Power            | Seasonic PRIME Ultra 850W 80+ Titanium        |<br>| Storage          | WD Black 500GB SSD                            |<br>| Case             | Fractal Design Mesify - C                     |<br>| CPU Cooler       | Noctua NH-U14S                                |<br>| Thermal Compound | Arctic silver high density thermal compound   |<br>+------------------+-----------------------------------------------+</pre><p>I followed the steps in this <a href="https://medium.com/@vishal_kvn/software-installation-for-nvidia-gpu-on-fedora-30-c206d87cf237">video</a> to assemble all the components. Once you have the hardware setup and you are able to get to the BIOS screen of the motherboard your next step is to install software which I go over in the <a href="https://medium.com/p/c206d87cf237">next blog post</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0HIek1U6isLqeSNqzLbIXg.jpeg" /><figcaption>Final hardware build</figcaption></figure><h3><strong>Useful Resources</strong></h3><ul><li>GPU <a href="https://gpu.userbenchmark.com/">benchmarks</a></li><li>NVIDIA GPU <a href="https://www.nvidia.com/en-us/geforce/products/10series/compare/">comparisons</a></li><li><a href="https://www.youtube.com/watch?v=i5jFXl0GZJo">Building a desktop</a></li><li><a href="https://medium.com/the-mission/how-to-build-the-perfect-deep-learning-computer-and-save-thousands-of-dollars-9ec3b2eb4ce2">https://medium.com/the-mission/how-to-build-the-perfect-deep-learning-computer-and-save-thousands-of-dollars-9ec3b2eb4ce2</a></li><li><a href="https://hackernoon.com/ubuntu-18-04-deep-learning-environment-setup-345ba0b11892">https://hackernoon.com/ubuntu-18-04-deep-learning-environment-setup-345ba0b11892</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35cd63f11ad9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>