BerkeleyLab / matcha

T-cell motility simulator
Other
3 stars 1 forks source link

Multi-image (parallel) execution using OpenCoarrays crashes. #129

Closed Dominick99 closed 1 year ago

Dominick99 commented 1 year ago

Steps to reproduce error:

1.) Checkout main and do a git pull: git checkout main

2.) `Run set up script: ./setup.sh

3.) Run command for parallel execution: ./build/run-fpm.sh run --compiler caf --runner "cafrun -n 1"

dominick@dominick-VirtualBox:~/matcha$ ./setup.sh

Setting FC=/home/linuxbrew/.linuxbrew/bin/gfortran-12

Setting CC=/home/linuxbrew/.linuxbrew/bin/gcc-12

Setting CXX=/home/linuxbrew/.linuxbrew/bin/g++-12

PREFIX=/home/dominick/.local

PKG_CONFIG_PATH=/home/dominick/.local/lib/pkgconfig

Project is up to date

________________ Caffeine has been dispensed! ________________

To rebuild or to run tests or examples via the Fortran Package

Manager (fpm) with the required compiler/linker flags, pass a

fpm command to the build/run-fpm.sh script. For example, run

the program example/hello.f90 as follows:

./build/run-fpm.sh run --example hello

/home/dominick/matcha

PKG_CONFIG_PATH=/home/dominick/.local/lib/pkgconfig

________________ Matcha has been poured! ________________

To rebuild or to run tests or examples via the Fortran Package

Manager (fpm) with the required compiler/linker flags, pass a

fpm command to the build/run-fpm.sh script. For example, to

run the Matcha test suite in a single image execute the

following command in a Linux or macOS shell:

./build/run-fpm.sh test --flag -fcoarray=single

For parallel execution instructions, please see the README.md file.

./build/run-fpm.sh run --compiler caf --runner "cafrun -n 1"

input_m.f90                            compiling...

[  0%] Compiling...Fortran runtime error: EXECUTE_COMMAND_LINE: Invalid command line

Error termination. Backtrace:

#0  0x7fb0b9e259f2 in ???

#1  0x7fb0b9e264e9 in ???

#2  0x7fb0b9e2694c in ???

#3  0x7fb0ba088723 in ???

#4  0x7fb0ba088891 in ???

#5  0x55ab65268eaf in __fpm_filesystem_MOD_run

    at ./src/fpm_filesystem.F90:910

#6  0x55ab65263319 in __fpm_compiler_MOD_compile_fortran

    at ./src/fpm_compiler.f90:888

#7  0x55ab6524eac0 in build_target

    at ./src/fpm_backend.F90:321

#8  0x55ab6524eac0 in __fpm_backend_MOD_build_package

    at ./src/fpm_backend.F90:128

#9  0x55ab652488f0 in __fpm_MOD_cmd_run

    at ./src/fpm.f90:451

#10  0x55ab65241ebc in MAIN__

    at app/main.f90:74

#11  0x55ab6524143e in main

    at app/main.f90:11
davytorres commented 1 year ago

This is the error I get when running the main branch with

./build/run-fpm.sh run --compiler caf --runner "cafrun -n 2"

Initialized empty Git repository in /Users/david/matcha8/matcha/build/dependencies/assert/.git/ remote: Enumerating objects: 29, done. remote: Counting objects: 100% (29/29), done. remote: Compressing objects: 100% (27/27), done. remote: Total 29 (delta 0), reused 16 (delta 0), pack-reused 0 Unpacking objects: 100% (29/29), 13.94 KiB | 713.00 KiB/s, done. From https://github.com/sourceryinstitute/assert

Error termination. Backtrace:

0 0x10712186e

1 0x107122555

2 0x107122998

3 0x107381602

4 0x107381829

5 0x1073818d1

6 0x106c0731b

7 0x106c01c29

8 0x106beef18

9 0x106be99ba

10 0x106be3e1d

11 0x106c810ee