https://github.com/jaderock/cuda-by-example
Sample CUDA projects for the CUDA by Example book
https://github.com/jaderock/cuda-by-example
bazel c cpp cuda gpu
Last synced: about 2 months ago
JSON representation
Sample CUDA projects for the CUDA by Example book
- Host: GitHub
- URL: https://github.com/jaderock/cuda-by-example
- Owner: jaderock
- License: mit
- Created: 2025-08-22T16:33:32.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-22T19:01:02.000Z (10 months ago)
- Last Synced: 2025-08-22T19:06:58.233Z (10 months ago)
- Topics: bazel, c, cpp, cuda, gpu
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cuda-by-example
Sample CUDA projects for the CUDA by Example book
Helper functions are re-written to use modern C++ and frameworks such as GLFW, GLEW, etc.
## Original Code
Original code can be downloaded from the `CUDA by Example` book website at https://developer.nvidia.com/cuda-example
## Build
The projects are built with CUDA Toolkit v13.0 and Bazel v8.5.
Build -
`$ bazel build //chapter3:hello-world`
Run -
`$ bazel run //chapter3:hello-world`
## Third Party Dependency
### GLFW
### GLAD
GLAD library is loaded from https://glad.dav1d.de/
GLAD bazel build file can be found at https://github.com/jaderock/bazel-build-library/tree/main/glad