Translations:OpenACC Tutorial - Adding directives/46/en

From Alliance Doc
Jump to navigation Jump to search
Challenge: Add OpenACC directives kernels or parallel loop
  1. Modify the functions matvec, waxpby and dot to use OpenACC. You may use either the kernels or the parallel loop directives. The directories step1.* from the Github repository contain solutions.
  2. Modify the Makefile to add -acc -gpu=managed and -Minfo=accel to your compiler flags.