Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • shared: The only way to share a variable between asyncs is to pass a pointer to a variable or pass a global variable as an IN parameter. Keep in mind that the variable you are trying to share cannot be stack allocated in HC.
  • private: The closest semantic in HC is to declare a variable at the beginning of the async body. Each async is going to have storage for the variable and is not initialized.
  • firstprivate: Matches the semantic of the IN clause. Each async has a local copy of each IN clauses arguments and is initialized to its original value.

...