mirror of
https://github.com/guillaumetousignant/multigrid.git
synced 2026-05-25 19:46:42 -04:00
1D multigrid code
- C++ 90.8%
- Makefile 9.2%
| .gitignore | ||
| jacobi.okl | ||
| main.cpp | ||
| Makefile | ||
| README.md | ||
Example 1: Add Vectors
A 'Hello World' example showing the basics
- Creating an OCCA device
- Allocating and setting memory
- Building a kernel (function that runs on the device)
Compiling the Example
make
Usage
> ./main --help
Usage: ./main [OPTIONS]
Example adding two vectors
Options:
-d, --device Device properties (default: "mode: 'Serial'")
-h, --help Print usage
-v, --verbose Compile kernels in verbose mode