1D multigrid code
  • C++ 90.8%
  • Makefile 9.2%
Find a file
2020-02-26 19:38:25 -05:00
.gitignore added ebug exclusion 2020-02-23 15:45:22 -05:00
jacobi.okl added start okl file 2020-02-26 18:16:13 -05:00
main.cpp tolerance is shown 2020-02-26 13:09:19 -05:00
Makefile Initial commit, example 2020-02-22 14:27:05 -05:00
README.md added readme from example 2020-02-22 14:27:38 -05:00

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