Skip to content

Enable the use of Caffeine as an alternative to OpenCoarrays #89

@rouson

Description

@rouson
  • Add Caffeine as a dependency in the fpm manifest (fpm.toml)
  • Change the extension in the name of files that will need preprocessing: .f90 -> .F90
  • Add use caffeine_m statements using the C preprocessor
  • Condition the compilation of the new use statements in Matcha on a C preprocessor macro such as USE_CAFFEINE. For example, the matcha_m module will need
#ifdef USE_CAFFEINE
    use caffeine_m, only : this_image => caf_this_image
#endif
  • Repeat the 2nd through 4th steps above for the Caffeine dependency Sourcery, focusing on the data_partition class. If many additional parts of Sourcery need similar revision, we might consider splitting data_partition_t off from Sourcery to become its own library.
  • Also repeat the 2nd through 4th steps above for the Sourcery dependency Assert.
  • Add instructions to the README.md for parallel execution with Caffeine: probably something like fpm test --flag "-DUSE_CAFFEINE"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions