Python CUDA Installation & CUPY | GPU Acceleration Basics 01

  Рет қаралды 5,977

Rounak Paul

Rounak Paul

Күн бұрын

CUPY is a Numpy-like array implementation for NVIDIA CUDA. In this video, I have walked through the installation process and the basics of CUPY. Python can compile and run NVIDIA CUDA accelerated applications. In this tutorial series learn to use CUDA on Python with cupy and numba. Accelerate your applications by leveraging the parallel processing of a GPU.
Playlist: • Acceleration Basics wi...
Python beginners Tutorial Playlist: • Python Beginners Tutorial
This second lecture is about installing CUDA toolkit from NVIDIA and doing our first acceleration using CUPY.
#python #cuda #nvidia #programming #coding #gpu

Пікірлер: 24
@nagen78
@nagen78 6 ай бұрын
simple and straight to the point.
@rounakpaul001
@rounakpaul001 6 ай бұрын
Thank you, appreciate the comment.
@taj-ulislam6902
@taj-ulislam6902 5 ай бұрын
Unique information - hard to find. Much appreciate your effort.
@rounakpaul001
@rounakpaul001 5 ай бұрын
Thank you
@rajatpaul3728
@rajatpaul3728 8 ай бұрын
Helpful
@rounakpaul001
@rounakpaul001 8 ай бұрын
Thank you
@kingkeshu5561
@kingkeshu5561 6 ай бұрын
nice video. Pretty helpful!
@rounakpaul001
@rounakpaul001 6 ай бұрын
Thank you
@ah_bb8267
@ah_bb8267 4 ай бұрын
I wished i had knew about this before. Numpy uses a lot of ram and cpu. I was looking for a way to shift some of the data preprocessing workload onto the GPU. Does tensorflow recognise cupy arrays as valid input data types like numpy arrays? Great video.
@rounakpaul001
@rounakpaul001 4 ай бұрын
Numpy and Tensor has similar data structure, but CuPy has completely different data structure as the pool it uses is from the GPU, not the system RAM. But you can still do conversions and have a hybrid code running in CPU and GPU: import tensorflow as tf import cupy as cp # Create a CuPy array cupy_array = cp.array([1, 2, 3]) # Convert CuPy array to NumPy array numpy_array = cp.asnumpy(cupy_array) # Use NumPy array as input to TensorFlow tensor = tf.constant(numpy_array) # Perform TensorFlow operations on the tensor result = tf.math.square(tensor) print(result)
@ah_bb8267
@ah_bb8267 4 ай бұрын
​@@rounakpaul001Thanks 🙏
@itsamitnitrkl5199
@itsamitnitrkl5199 3 ай бұрын
My doubt is also same , can be use copy for ml models
@yadongwang8629
@yadongwang8629 5 ай бұрын
thanks for sharing. So if I am using M1 Macbook. I can install the cupy in python and use Colab to mimic the GPU?
@rounakpaul001
@rounakpaul001 5 ай бұрын
By CuPy devs: "We cannot guarantee that CuPy works on other environments like MacOs, even if it looks like it is working" On mac, your best acceleration options are: Metal API or Vulkan Compute pipeline For learning and prototyping algorithms you can use google colab's TGPU.
@rounakpaul001
@rounakpaul001 5 ай бұрын
If using Colab, no need to install CuPy on your M1 computer. The colab does the setup on the cloud VM by itself.
@ОлегФедоров-з7д
@ОлегФедоров-з7д 5 ай бұрын
Thank you! Tell me, can I put a ready-made script code in Python into this shell and run it through the GPU and not the CPU?
@rounakpaul001
@rounakpaul001 5 ай бұрын
In short, mostly no. The script will always be run on the CPU, but your computation tasks you can do on GPU. The architecture of the CPU and GPU are different. Using python modules to run programs on the gpu may look similar to a normal python program, but underneath it's different. With some modifications you can probably run your functions on the gpu.
@cattnation6257
@cattnation6257 4 ай бұрын
will you help me? i can code but configration always sucks me
@rounakpaul001
@rounakpaul001 4 ай бұрын
I will try, kindly explain the problem you are facing.
@cattnation6257
@cattnation6257 4 ай бұрын
@@rounakpaul001 i am working on somthing where i use yolo mediapipe and tensorflow i code enough to do my work and code working properly but the issue is i cant able to use gpu so when a video i pass throw my function the one frame take 300 ms and its two slow i have nivdea gpu 4060 install 12 version i always have issue in version what should i do
@infernophoenix1575
@infernophoenix1575 5 ай бұрын
Just a quick question, does this method work even with laptops with AMD GPU's or this is only restricted to only NVIDIA GPU-type laptops
@rounakpaul001
@rounakpaul001 5 ай бұрын
The methods are currently limited to NVIDIA GPUs. AMD has launched their new CUDA equivalent toolkits recently, I will learn it when I can get my hand on an AMD GUP system.
@tkz4_on_osu295
@tkz4_on_osu295 4 ай бұрын
Best Indian tutorial I’ve ever seen🙌
@rounakpaul001
@rounakpaul001 4 ай бұрын
thank you
Numba & Custom CUDA kernels | GPU Acceleration Basics 02
18:02
Rounak Paul
Рет қаралды 1,9 М.
Tutorial: CUDA programming in Python with numba and cupy
45:43
nickcorn93
Рет қаралды 78 М.
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 11 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 65 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 5 МЛН
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 113 М.
GPU acceleration in Python
42:02
Jan Verschelde
Рет қаралды 2,2 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 559 М.
CUDA Simply Explained - GPU vs CPU Parallel Computing for Beginners
19:11
Python Simplified
Рет қаралды 258 М.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 391 М.
CUDA Programming in Python
9:12
JetsonHacks
Рет қаралды 7 М.
Creating and maintaining a conda-forge package
41:31
nickcorn93
Рет қаралды 10 М.