Skip to content

Support for OpenMP or Co-array Fortran #7

@koshMer

Description

@koshMer

Hi,
I was wondering whether your wrapper has support for openMP or co-array fortran?

i tried running the .f90 program:

module hello_images

	implicit none
	
	contains
	
	subroutine hello()
	
		print *, "I am iamge", this_image(), "of", num_images()
	
	end subroutine hello
	
  	
end module hello_images

with the following python program

import fmodpy 

code = fmodpy.fimport("hello_images.f90",f_compiler = "caf")

code.hello_images.hello()

This gives me an output of I am iamge 0 of 0

Usually, when using co-array fortran, one would supply the number of images when running the program.
For Example: cafrun -n program

Is something like this possible with your wrapper?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions