Skip to content

Learn cuda step-by-step starting from 0 with these simple and free code examples (comments are provided!)

License

Notifications You must be signed in to change notification settings

ProjectoOfficial/CUDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUDA

Brief

This repository contans multiple examples of code to be run on NVIDIA GPUs, and wants to help you dive deeper into CUDA programming language. CUDA runs in any machine which mounts a NVIDA GPU with compute capability > 3.0 https://developer.nvidia.com/cuda-gpus, so make sure your system is supported. You can run CUDA scripts on Linux and Windows machines, but it is mandatory to install NVIDIA drivers and the NVIDIA CUDA Compiler.

Available code:

  • info: display CUDA and GPU information
  • sum: adds two random number -> learn how to move data from CPU to GPU and vice versa and run code on GPU
  • matmul2d: classical matrix multiplication between two matrices -> learn how to manage multi-dimensional data structure and operate between them

Prerequisites:

  1. install NVIDIA drivers: https://ubuntu.com/server/docs/nvidia-drivers-installation
  2. install CUDA on:
  3. check everything with nvidia-smi and nvcc -v

Compile

To compile a .cu file you need to run nvcc file_name.cu -o output_file_name

About

Learn cuda step-by-step starting from 0 with these simple and free code examples (comments are provided!)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages