- Open the file
run.ipynb
on Google Colab and follow the provided instructions.
If you prefer to run the code locally on Google Colab, follow these steps:
%cd /content
!rm -rf cuda
!git clone -b main https://github.com/vietddude/cuda.git
Navigate to the cuda
folder:
%cd /content/cuda
!make clean
!make setup
!make clean_test_cpu
!make kernel_0
!make test_cpu
!./test_cpu
!make kernel_0
!make clean_test
!make test
!./test
You can perform the same steps for other kernels by replacing kernel_0
with the appropriate kernel identifier. Follow the identical procedure for each kernel.
Video demo for this project: Lenet-5 CNN CUDA