Category: Tutorial
Tensorflow List of Devices | Tensorflow Anaconda Python Recognized Devices | Cuda Education
A quick overview of how to know what devices Tensorflow sees on your system in the video. Code snippet should be used in Python Anaconda.
1 2 |
from tensorflow.python.client import device_lib print(device_lib.list_local_devices()) |
Next: Install Tensorflow + Tensorboard + Keras + Anaconda Python in Windows
CUDA Python Installation Guide | Anaconda Python Installation | Numba Installation | Cuda Education
An overview of how to install CUDA Python on your system. It will enable you to run Python code, but take advantage of your Cuda-enabled GPU to speed up your application. A marriage made in heaven?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#code courtesy of NVIDIA #CUDA EDUCATION #Website: cudaeducation.com #Twitter: @cudaeducation #Email: cudaeducation@gmail.com #YouTube: Cuda Education | Please subscribe #Donate: Visit cudaeducation.com to donate to the cause import numpy as np import time from numba import vectorize, cuda @vectorize(['float32(float32, float32)'], target='cuda') def VectorAdd(a, b): return a + b def main(): N = 32000000 A = np.ones(N, dtype=np.float32) B = np.ones(N, dtype=np.float32) start = time.time() C = VectorAdd(A, B) vector_add_time = time.time() - start print ("C[:5] = " + str(C[:5])) print ("C[-5:] = " + str(C[-5:])) print ("VectorAdd took for % s seconds" % vector_add_time) if __name__=='__main__': main() |
1 2 3 4 5 6 7 8 9 |
#CUDA EDUCATION #Website: cudaeducation.com #Twitter: @cudaeducation #Email: cudaeducation@gmail.com #YouTube: Cuda Education | Please subscribe #Donate: Visit cudaeducation.com to donate to the cause from numba import cuda print(cuda.gpus) |
Next: Install Tensorflow […]
Video Walkthrough (32+ min.) of how to use CUDA Cooperative Groups | cooperative_groups | tiled_partition | coalesced_threads | thread_rank | thread_block | Includes Example Code
Learn how to use cooperative groups to make your parallel processing code more organized and manageable. The video walkthrough is 32+ minutes long and includes example source code.
CUDA Toolkit 9.0 Code Walkthrough | nVidia CUDA Tutorial | GPU Programming
Donate Hey guys, I did a video walkthrough of the default code that appears when you start a new CUDA project in CUDA Toolkit 9.0. Hopefully it will help you to better understand what is going on in the background […]
Thread Mapping in CUDA
Understanding how threads are mapped in CUDA and how it relates to blocks and grids can be very challenging. Check out the following PDF from Pelagos Consulting and Education which does a really good job of explaining it: https://www.pelagos-consulting.com/wp-content/uploads/2017/08/CUDA_description.pdf […]
#error — unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported! | Line 133 | Line 707 | CUDA Error
Donate If you are getting the following error when running CUDA in Visual Studio 2017: then all you have to do is go to the menu bar at the top Project -> [your project name] Properties -> General […]
Run nvprof from Command Prompt | Windows Environment | CUDA Toolkit 9 | CUDA Education
Donate The following video goes through how to run nvprof from the command prompt. I am in a Windows environment with CUDA Toolkit 9 and Visual Studio 2017 installed. Subscribe to the Cuda Education YouTube channel, follow on twitter @cudaeducation […]