Skip to content

Howto use caffeine: documentation and roadmap? #322

@amckinstry

Description

@amckinstry

Hi,

I've gotten caffeine/coarrays working on Debian Linux with flang-22:

-- llvm-toolchain-22-22.1.1/debian/rules.orig 2026-05-10 10:40:25.428061790 +0100
+++ llvm-toolchain-22-22.1.1/debian/rules 2026-05-10 10:40:42.667293081 +0100
@@ -640,7 +640,6 @@
ifneq (,$(filter $(DEB_HOST_ARCH), $(FLANG_ARCHS)))
PROJECTS += ;flang
RUNTIMES += ;flang-rt

  • STAGE_ALL_CMAKE_EXTRA += -DFLANG_ENABLE_PRIF=ON
    endif

alastair@sid:~/deb-packages/llvm$ cat hello.f90
program main
  implicit none
  write (*,*) "Hello from image", this_image(), "of", num_images()
end program main

$ flang-22 -o hello hello.f90 -fcoarray -lcaffeine-smp -lgasnet-smp-seq -L/usr/lib/aarch64-linux-gnu/fortran/flang/ -lassert
warning: Support for multi image Fortran features is still experimental and in development.

$ alastair@sid:~/deb-packages/llvm$ gasnetrun_smp -n 2 ./hello
 Hello from image 1 of 2
 Hello from image 2 of 2 

I've not found any documentation of how its supposed to work; is this it for the moment? is there any work ongoing to simplify this, remove the need to specify libraries etc?

Metadata

Metadata

Assignees

No one assigned

    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