Skip to content

Bishwasls/cuda_programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some CUDA programs:

This repo contains my effort to learn CUDA programming. I have tested these codes only on NVIDIA GeForce GTX 1650 Ti (4GB) GPU, but you should be able to run these codes in any CUDA capable desktop/laptop.

Installation of CUDA on Ubuntu 20.04:
Follow the instructions on

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=2004&target_type=deblocal

to install cuda on Lenovo X1 Carbon Extreme Gen 3 machine with Ubuntu 20.04 OS.

Type the following command on linux terminal to get informations about the numbers of CUDA cores you have in your machine

$ nvidia-settings -q CUDACores -t

Also, following command is useful to know the information about the NVIDIA GPU

$ nvidia-smi

A more detailed information about the device can be obtained running the simple CUDA program "cuda_device_info.cu" on this repo.

$ nvcc cuda_device_info.cu

$ ./a.out

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages