No-stress CUDA programming using Go and Cby@cleuton-sampaio
7,302 reads

No-stress CUDA programming using Go and C

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

CUDA is for C, so the best alternative is to use Command cgo and invoke an external function with your Cuda Kernel. The vecmul() function is the kernel and a helper function to be called externally. I created a Simple Kernel that has the kernel function and helper function. Its function is to allocate memory in the GPU, copy the parameters, invoke the kernel, and copy the result. Values ​​are passed by reference. If you want to know more about CUDA programming, read the my article.

Company Mentioned

Mention Thumbnail
featured image - No-stress CUDA programming using Go and C
Cleuton Sampaio HackerNoon profile picture

@cleuton-sampaio

Cleuton Sampaio

Learn More
LEARN MORE ABOUT @CLEUTON-SAMPAIO'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa