This is an example of integrating muda-app. (about muda)
The program just prints hello muda
from GPU kernel.
The structure of the project is as following:
muda-app
- src
- main.cpp
- hello_muda.cu
- hello_muda.h
We define the hello muda
things in hello_muda.cu
and export the function in a hello_muda.h
header. Thus we could use the function in a normal cpp program (in main.cpp
).
Firstly, you need to pull MUDA.
git submodule update --init
The MUDA submodule will be placed at ./submodules/muda/
Build scripts location: CMakeLists.txt
Build:
$ mkdir build && cd build
$ cmake -S .. -B . -DCMAKE_BUILD_TYPE=Debug
$ cmake --build . --config Debug