Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 245 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 245 Bytes

Hello CUDA with C++

Build

make

clang++  -c main.cpp -o main.o -I/usr/local/cuda/include
nvcc -c kernel.cu -o kernel.o
clang++  -o hello_cuda main.o kernel.o -L/usr/local/cuda/lib64 -lcudart

Run

./hello_cuda