File rajalib.hxx

Defines

RAJALIB_H

RAJA library utilities and wrappers

Defines:

  • RajaForAll A class which handles Region indices, and wraps RAJA::forall

  • BOUT_FOR_RAJA A macro which uses RajaForAll when BOUT_HAS_RAJA Falls back to BOUT_FOR when RAJA not enabled

Notes:

  • DISABLE_RAJA can be defined to 1 before including this header, to locally disable RAJA for testing.

BOUT_FOR_RAJA(index, region, ...)

If no RAJA, BOUT_FOR_RAJA reverts to BOUT_FOR Note: Redundant ‘;’ after closing brace should be ignored by compiler Ignores any additional arguments

CAPTURE(...)

If not using RAJA, CAPTURE doesn’t do anything.