Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 471 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 471 Bytes

Example: 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