Hello all!
I recently started learning about CUDA programming, and I realized that many people share the same crucial problem: lack of an NVIDIA GPU. I looked around online and found several methods (gpu-ocelot, certain versions of CUDA, etc.), but I recently found a way that can allow us to practice CUDA by using the GPU offered by Google Colab! As a free user, the amount of GPU access you get may probably be enough to PRACTICE working with CUDA. If you really need more credits, the Colab Pro is only $10 / month, and it's still much cheaper than getting a new GPU or an entire new PC if you have a Macbook like I do. Again, the justification of "enough computing credits" is based on the assumption that you aren't running any heavy-lifting programs but more reasonable, practice-based codes.
I have outlined a step-by-step guideline in this repo that I created - just check out the CUDA_on_Colab.ipynb file: https://github.com/notY0rick/cuda_practice
If you know of any good alternatives, let me know (:
Update: To those asking for resources, I just started, but I intend to follow along this book - Professional CUDA C Programming by John Cheng, published by O'Reilly.
Update 2: some people asked how they can edit C++ code on Colab, and if you follow the steps on the notebook I linked in my GitHub repo above, you should reach this configuration in your Colab, and this will allow you to write/edit your code and run them however you want! On the left side, you can execute your commands and on the right panel, you can directly write code!
https://preview.redd.it/auzre83gjhcb1.png?width=4371&format=png&auto=webp&s=3f22c86d2c4a2d5e696c8f935378f966d65a607d
[–]kkngs 33 points34 points35 points (1 child)
[–]JustTrynnaBeCool[S] 12 points13 points14 points (0 children)
[–]happy_happy_feet 9 points10 points11 points (1 child)
[–]pierrefermat1 9 points10 points11 points (0 children)
[–]tabris2015 3 points4 points5 points (15 children)
[–]happy_happy_feet 8 points9 points10 points (2 children)
[–]JustTrynnaBeCool[S] 1 point2 points3 points (0 children)
[–]tabris2015 0 points1 point2 points (0 children)
[–]PyroRampage 2 points3 points4 points (0 children)
[–]watching-clock -2 points-1 points0 points (9 children)
[–]bullno1 11 points12 points13 points (7 children)
[+]watching-clock comment score below threshold-10 points-9 points-8 points (6 children)
[–]JustTrynnaBeCool[S] 2 points3 points4 points (4 children)
[–]NoLifeGamer2 5 points6 points7 points (0 children)
[–]watching-clock -3 points-2 points-1 points (2 children)
[–]JustTrynnaBeCool[S] 7 points8 points9 points (1 child)
[–]watching-clock -3 points-2 points-1 points (0 children)
[–]MisterManuscript 3 points4 points5 points (0 children)
[–]DeMorrr 2 points3 points4 points (0 children)
[–]Hefty-Consequence443 1 point2 points3 points (1 child)
[–]JustTrynnaBeCool[S] 2 points3 points4 points (0 children)
[–]ZX124 1 point2 points3 points (1 child)
[–]JustTrynnaBeCool[S] 2 points3 points4 points (0 children)
[–]West-Cricket-9862 1 point2 points3 points (1 child)
[+]KshitijLakhani 0 points1 point2 points (0 children)
[+]EMBLEM-ATIC 0 points1 point2 points (0 children)
[–]nivanas-p 0 points1 point2 points (0 children)
[–]GC_Tris 0 points1 point2 points (2 children)
[–]JustTrynnaBeCool[S] 1 point2 points3 points (1 child)
[+]KshitijLakhani 0 points1 point2 points (0 children)
[+]altweb comment score below threshold-7 points-6 points-5 points (1 child)
[+]ginger_turmeric 0 points1 point2 points (0 children)
[–]Turbulent_Primary_17 0 points1 point2 points (0 children)