Skip to content

Commit

Permalink
[Example] Added verbose example
Browse files Browse the repository at this point in the history
  • Loading branch information
dmed256 committed Mar 31, 2018
1 parent 882ed5f commit e09e1ef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/1_add_vectors/c/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
int main(int argc, char **argv) {
occaPrintModeInfo();

/*
Try running with OCCA_VERBOSE=1 or set
verbose at run-time with:
occaPropertiesSet(occaSettings(),
"kernel/verbose,
occaBool(1));
*/

int entries = 5;
int i;

Expand Down
5 changes: 5 additions & 0 deletions examples/1_add_vectors/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@

int main(int argc, char **argv) {
occa::printModeInfo();
/*
Try running with OCCA_VERBOSE=1 or set
verbose at run-time with:
occa::settings()["kernel/verbose"] = true;
*/

int entries = 5;

Expand Down

0 comments on commit e09e1ef

Please sign in to comment.