Coco Nvg -
#include <coco/runtime.h> struct coco_device *dev; struct coco_buffer *buf; struct coco_kernel *kernel;
./coco_run --backend nvg --kernel kernel.bin --global 1024 --local 256 Check if kernel loaded correctly: enable debug output coco nvg
sudo apt install build-essential meson ninja-build pkg-config \ libdrm-dev libdrm-nouveau2 mesa-common-dev libclang-dev \ llvm-dev python3 libpciaccess-dev Coco is a meta-framework. The NVG backend is part of coco-nvg (often hosted on GitLab/freedesktop or personal repos). There is no official release; you must clone and build. #include <coco/runtime
Allocated via DRM dumb buffers or ttm (Nouveau). No unified memory. struct coco_device *dev
Example (using a known working fork):
export COCO_BACKEND=nvg export COCO_NVG_DEVICE=0 # first GPU export LIBCOCO_PATH=/path/to/coco-nvg/builddir LD_LIBRARY_PATH=$LIBCOCO_PATH ./my_coco_program