Package Details: opencoarrays 2.9.2-1

Git Clone URL: https://aur.archlinux.org/opencoarrays.git (read-only, click to copy)
Package Base: opencoarrays
Description: A transport layer for coarray Fortran compilers.
Upstream URL: http://www.opencoarrays.org/
Keywords: caf coarray fortran parallel
Licenses: BSD
Submitter: jamesclark
Maintainer: backerman
Last Packager: backerman
Votes: 7
Popularity: 0.000086
First Submitted: 2015-10-13 14:12 (UTC)
Last Updated: 2021-04-18 01:53 (UTC)

Pinned Comments

physkets commented on 2019-03-19 05:35 (UTC) (edited on 2019-03-19 06:07 (UTC) by physkets)

The package compiles specifically using MPICH executables as placed by its AUR package. If you've modified that, you will have to make appropriate changes in the PKGBUILD.

If you have any compilers other than GCC installed, take care to check your PATH environment variable to ensure that '/usr/bin' has higher priority, before building this package. (You'll also have to have done this while installing mpich)

To use OpenCoarrays, do:

$ caf <filename.f90>
$ cafrun -n <num_images> ./a.out

Latest Comments

edwardbowers commented on 2022-06-11 02:11 (UTC)

opencoarrays-2.9.2 fails to build because of a dummy argument being renamed in GCC>=12; this was fixed in opencoarrays-2.9.3, see here: https://github.com/sourceryinstitute/OpenCoarrays/pull/746

I also had issues with failing tests, namely 7, 8, 9, 26, and 27. These failed after trying to free an invalid pointer and crashing. Looking through the test logs, there were other tests that incorrectly reported passing, because they managed to output "Test Passed" before trying to free an invalid pointer.

I finally managed to get the latest version (2.10.0) to build and pass all tests. The solution turned out to be rebuilding MPICH with CH3:nemesis as the communication device rather than the current default of CH4:UCX. I don't know if this is a bug in MPICH or opencoarrays, or just a simple incompatibility.

Aurelius_Nero commented on 2022-02-04 02:13 (UTC)

@backerman HAve you fixed the failed tests problem ? I am getting the failed test errors too in my case, The following tests FAILED: 7 - register_alloc_comp_1 (Failed) 8 - register_alloc_comp_2 (Failed) 9 - register_alloc_comp_3 (Failed) 26 - sendget_convert_nums (Failed) 27 - sendget_convert_char_array (Failed)

fcmario commented on 2021-10-27 08:21 (UTC) (edited on 2021-10-27 08:23 (UTC) by fcmario)

Pardon me, but I have to inform you that I also face the same problem on opencoarrays-2.9.2(test #26 & #27 failed). Other than that, thank you for the guidance about pgp keyserver.

Note: I use dual core processor. I run Manjaro under VMWare workstation. I change the cpu number from 1 to 4 but this didn't help either.

jvfaegje commented on 2021-10-10 10:09 (UTC)

Tests #26 and #27 fail when trying to install the package (Version 2.9.2-1)

I'm getting the same problem, as per the LastTest.log below:

26/80 Testing: sendget_convert_nums
26/80 Test: sendget_convert_nums
Command: "/usr/bin/bash" "/var/tmp/pamac-build-avltbyzn/opencoarrays/src/OpenCoarrays-2.9.2/build/bin/cafrun" "-np" "3" "/var/tmp/pamac-build-avltbyzn/opencoarrays/src/OpenCoarrays-2.9.2/build/bin/OpenCoarrays-2.9.2-tests/sendget_convert_nums"
Directory: /var/tmp/pamac-build-avltbyzn/opencoarrays/src/OpenCoarrays-2.9.2/build
"sendget_convert_nums" start time: Oct 10 20:43 AEDT
Output:
----------------------------------------------------------
   42
          42
          42
   42
    5    4    3    2    1
           5           4           3           2           1
           5           4           3           2           1
    5    4    3    2    1
   37.0419998    
   37.041999816894531     
   37.041999816894531     
   37.0419998    
   5.09999990       4.19999981       3.29999995       2.40000010       1.50000000    
   5.0999999046325684        4.1999998092651367        3.2999999523162842        2.4000000953674316        1.5000000000000000     
   5.0999999046325684        4.1999998092651367        3.2999999523162842        2.4000000953674316        1.5000000000000000     
   5.09999990       4.19999981       3.29999995       2.40000010       1.50000000    
   42
          42
    5    4    3    2    1
           5           4           3           2           1
   37.0419998    
   37.041999816894531     
   5.09999990       4.19999981       3.29999995       2.40000010       1.50000000    
   5.0999999046325684        4.1999998092651367        3.2999999523162842        2.4000000953674316        1.5000000000000000     
          -4
   -4
          64          50          77          90          -4
   64   -4    0   -4   -4
   14439332156801024.     
   0.00000000    
   14439327861833728.        4.5912142885138307E-041  -1651836160.0000000        4.5619271506094420E-041   5.6051938572992683E-045
   0.00000000       0.00000000       0.00000000       0.00000000       0.00000000    
 sendget scalar int kind=1 to kind=4 to image 2 failed.
 sendget scalar int kind=4 to kind=1 to image 2 failed.
 sendget int kind=1 to kind=4 to image 2 failed.
 sendget int kind=4 to kind=1 to image 2 failed.
 sendget scalar real kind=4 to kind=8 to image 2 failed.
 sendget scalar real kind=8 to kind=4 to image 2 failed.
 sendget real kind=4 to kind=8 to image 2 failed.
 sendget real kind=8 to kind=4 to image 2 failed.
           0           0           0           0           0
   -4   -4   -4   -4   -4
 sendget int scal kind=4 to array kind=4 to image 2 failed.
 sendget int scal kind=1 to array kind=1 to image 2 failed.
   6.9525818608845118E-310   6.9525818608845118E-310   6.9525818608845118E-310   6.9525818608845118E-310   6.9525818608845118E-310
 sendget real kind=8 to array kind=8 to image 2 failed.
   7.00649232E-45   7.00649232E-45   7.00649232E-45   7.00649232E-45   7.00649232E-45
 sendget real kind=4 to array kind=4 to image 2 failed.
          64          64          64          64          64
   64   64   64   64   64
   14439327861833728.        14439327861833728.        14439327861833728.        14439327861833728.        14439327861833728.     
   0.00000000       0.00000000       0.00000000       0.00000000       0.00000000    
 sendget int scal kind=1 to array kind=4 to image 2 failed.
 sendget int scal kind=4 to array kind=1 to image 2 failed.
 sendget real kind=4 to array kind=8 to image 2 failed.
 sendget real kind=8 to array kind=4 to image 2 failed.
 sendget real scal kind=4 to int array kind=4 to image 2 failed.
 sendget real scal kind=1 to int array kind=1 to image 2 failed.
           0           0           0           0           0
    0    0    0    0    0
   1515008504.0000000        1515008504.0000000        1515008504.0000000        1515008504.0000000        1515008504.0000000     
   5.09999990      -1.00000000       4.19999981      -1.00000000       3.29999995    
   5.0999999046325684       -1.0000000000000000        4.1999998092651367       -1.0000000000000000        3.2999999523162842     
  -2.0000000000000000        2.4000000953674316       -2.0000000000000000        1.5000000000000000       -2.0000000000000000                1
 sendget int kind=4 to real array kind=8 to image 2 failed.
 sendget int kind=4 to real array kind=4 to image 2 failed.
   1.51500826E+09   1.51500826E+09   1.51500826E+09   1.51500826E+09   1.51500826E+09
    5   -1    4   -1    3
           5          -1           4          -1           3
          -2           2          -2           1          -2
  -2.00000000       5.09999990      -2.00000000       4.19999981      -2.00000000    
   3.29999995       2.40000010       2.40000010       4.19999981       1.50000000    
   3.2999999523162842        2.4000000953674316        2.4000000953674316        4.1999998092651367        1.5000000000000000     
   -2    2   -2    1   -2
    3    2    2    4    1
           3           2           2           4           1
           5          -1           4          -1           3
    5   -1    4   -1    3
   5.0999999046325684       -1.0000000000000000        4.1999998092651367       -1.0000000000000000        3.2999999523162842     
   5.09999990      -1.00000000       4.19999981      -1.00000000       3.29999995    
          64          -1          50          -1          77
   64   -1   -4   -1    0
   0.0000000000000000       -1.0000000000000000        0.0000000000000000       -1.0000000000000000        4.2038953929744512E-045
 strided sendget int kind=1 to kind=4 from image 3 to image 1 failed.
 strided sendget int kind=4 to kind=1 from image 3 to image 1 failed.
 strided sendget real kind=4 to kind=8 from image 3 to image 1 failed.
 strided sendget real kind=8 to kind=4 from image 3 to image 1 failed.
   6.40000248      -1.00000000       0.00000000      -1.00000000       0.00000000    
           0          -1           0          -1           0
    0   -1    0   -1    0
   0.0000000000000000       -1.0000000000000000        0.0000000000000000       -1.0000000000000000        3.0000000000000000     
   64.0000000      -1.00000000       50.0000000      -1.00000000       77.0000000    
 strided sendget real kind=4 to int kind=4 from image 3 to image 1 failed.
 strided sendget int real kind=4 to int kind=1 from image 3 to image 1 failed.
 strided sendget int kind=4 to real kind=8 from image 3 to image 1 failed.
 strided sendget int kind=4 to real kind=4 from image 3 to image 1 failed.
ERROR STOP 
Abort(1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
OpenCoarrays internal error on image 2: SYNC IMAGES failed
OpenCoarrays internal error on image 3: SYNC IMAGES failed
Error: Command:
   `/opt/mpich/bin/mpiexec -n 3 /var/tmp/pamac-build-avltbyzn/opencoarrays/src/OpenCoarrays-2.9.2/build/bin/OpenCoarrays-2.9.2-tests/sendget_convert_nums`
failed to run.
<end of output>
Test time =   0.14 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found. Regex=[Test passed.
]
"sendget_convert_nums" end time: Oct 10 20:43 AEDT
"sendget_convert_nums" time elapsed: 00:00:00
----------------------------------------------------------

27/80 Testing: sendget_convert_char_array
27/80 Test: sendget_convert_char_array
Command: "/usr/bin/bash" "/var/tmp/pamac-build-avltbyzn/opencoarrays/src/OpenCoarrays-2.9.2/build/bin/cafrun" "-np" "3" "/var/tmp/pamac-build-avltbyzn/opencoarrays/src/OpenCoarrays-2.9.2/build/bin/OpenCoarrays-2.9.2-tests/sendget_convert_char_array"
Directory: /var/tmp/pamac-build-avltbyzn/opencoarrays/src/OpenCoarrays-2.9.2/build
"sendget_convert_char_array" start time: Oct 10 20:43 AEDT
Output:
----------------------------------------------------------
 #abcdefghij          #, len:          20
 #abcdefghij          #, len:          20
 #abcdefghij          #, len:          20
 #abcdefghij          #, len:          20
 #abc    #, len:#EFG    #, len:#klm    #, len:#NOP    #, len:           7
 #abc    #, len:#EFG    #, len:#klm    #, len:#NOP    #, len:           7
 #abc    #, len:#EFG    #, len:#klm    #, len:#NOP    #, len:           7
 #abc    #, len:#EFG    #, len:#klm    #, len:#NOP    #, len:           7
 #\90\F1  \FE

?\C8          #, len:          20
ERROR STOP sendget kind=1 to kind=1 from image 1 to image 3 failed.
Abort(1) on node 2 (rank 2 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 1) - process 2
Error: Command:
   `/opt/mpich/bin/mpiexec -n 3 /var/tmp/pamac-build-avltbyzn/opencoarrays/src/OpenCoarrays-2.9.2/build/bin/OpenCoarrays-2.9.2-tests/sendget_convert_char_array`
failed to run.
<end of output>
Test time =   0.12 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found. Regex=[Test passed.
]
"sendget_convert_char_array" end time: Oct 10 20:43 AEDT
"sendget_convert_char_array" time elapsed: 00:00:00
----------------------------------------------------------

mr-chairman commented on 2021-06-23 20:27 (UTC)

Tests #26 and #27 fail when trying to install the package (Version 2.9.2-1)

ciappi commented on 2021-04-28 18:08 (UTC) (edited on 2021-05-16 13:12 (UTC) by ciappi)

@backerman , yes I also have two failed check on 2.9.2 (#26 and #27)

backerman commented on 2021-04-18 01:52 (UTC)

Are the checks passing for other people? I get eight failures with 2.9.0 but only two with 2.9.2. (mpich 3.4.1, gfortran 10.2.0, linux-zen 5.11.13.) Bumping version while I investigate.

koubekjan commented on 2020-07-18 12:51 (UTC)

If you somehow get error about wrong GPG key, you can use different keyserver or simply visit https://keys.openpgp.org/search?q=1C3986CA8C98C2DE to download and then import downloaded key.

jelek21 commented on 2019-05-29 16:30 (UTC)

I confirm it works perfectly now! just installed using pacaur on an Archlinux WSL with mpich-3.3 and gcc-9.0.1. Thanks @zbeekman!

zbeekman commented on 2019-05-29 11:20 (UTC)

https://github.com/sourceryinstitute/OpenCoarrays/releases/tag/2.7.1 Should fix $DESTDIR problems. If not please let me know ASAP.

zbeekman commented on 2019-05-29 11:13 (UTC)

FYI, the $DESTDIR bug should be fixed on master and I'm pressing a new release to resolve this ASAP. (tag 2.7.1). Upstream issue tracker: https://github.com/sourceryinstitute/OpenCoarrays/issues/665

physkets commented on 2019-05-12 17:25 (UTC) (edited on 2019-05-12 17:27 (UTC) by physkets)

@backerman , yes, I did notice that, and have filed a bug, upstream. The issue is that they should be looking inside the $DESTDIR, but are instead looking directly in /usr/... and since we're building a package first and then installing it, the files aren't already there.

Also, I should've checked and then updated the package instead of the other way round. I will make sure to do that from the next time.

backerman commented on 2019-05-12 17:02 (UTC) (edited on 2019-05-12 17:04 (UTC) by backerman)

The build is failing for me in the package() function.

-- Generating SHA256 checksumed receipt for all installed assets
CMake Error at ████████████/.cache/aurman/opencoarrays/src/OpenCoarrays-2.7.0/cmake/InstallFileManifest.cmake:21 (file):
  file SHA256 failed to read file "/usr/share/man/man1/caf.1": No such file
  or directory
Call Stack (most recent call first):
  cmake_install.cmake:95 (include)

caf.1 does exist in the right place in the pkg directory.

zbeekman commented on 2019-03-25 18:16 (UTC)

I've got reproducible builds working on macOS but it seems the archiver is injecting the build path for AUR still. I'm testing on a Linux VM and hope to have a patch release out soon that will be fully reproducible and relocatable.

physkets commented on 2019-03-19 05:35 (UTC) (edited on 2019-03-19 06:07 (UTC) by physkets)

The package compiles specifically using MPICH executables as placed by its AUR package. If you've modified that, you will have to make appropriate changes in the PKGBUILD.

If you have any compilers other than GCC installed, take care to check your PATH environment variable to ensure that '/usr/bin' has higher priority, before building this package. (You'll also have to have done this while installing mpich)

To use OpenCoarrays, do:

$ caf <filename.f90>
$ cafrun -n <num_images> ./a.out

physkets commented on 2018-07-04 06:36 (UTC) (edited on 2018-07-04 06:37 (UTC) by physkets)

The package now compiles specifically using MPICH executables as placed by its AUR package.

If you have any compilers other than GCC installed, take care to check your PATH environment variable to ensure that '/usr/bin' has higher priority. (You'll also have to have done this while installing mpich)

If you choose to install the 'mpich' and 'opencoarrays' AUR packages as is, without modifying the PKGBUIDs, then, to compile and run a Fortran program that uses coarrays, do:

$ /opt/mpich/bin/mpifort -fcoarray=lib <filename.f90> -lcaf_mpi
$ /opt/mpich/bin/mpirun -n <num_images> ./a.out

commented on 2018-02-24 20:57 (UTC)

Add "-DCMAKE_INSTALL_LIBDIR=lib" to avoid it trying to overwrite the lib64 symlink

jamesclark commented on 2016-09-15 10:32 (UTC)

The developers on OpenCoarrays recommend MPICH, so I will keep using that. I updated the package to 1.7.2, I didn't seem to get a notification about the release.

horne.kyle commented on 2016-09-15 04:57 (UTC)

I have an updated PKGBUILD which usees 1.7.2, but I also changed MPI to use openmpi since that is in the main repositories. I can send it to you if you like.

zbeekman commented on 2016-07-25 19:38 (UTC)

The latest version of OpenCoarrays (1.6.2) has been released. I would love it if someone could please update the package definition, or at least give me a quick tutorial on how to do it myself. The one caveat is that I am not running Arch Linux, so if I update it, there will be no testing...

jamesclark commented on 2015-12-16 20:56 (UTC) (edited on 2015-12-16 21:26 (UTC) by jamesclark)

Just to say, I have been testing the MPI implementations some more and switched to MPICH. This should be permanent.

szaghi commented on 2015-10-21 03:40 (UTC)

Hi James, Thank you very much for quick replay. I see that OpenMPI is only a dependency and it is not used for building the package, indeed I have now installed your package and successfully used with MPICH compiled manually. On the behalf of the OpenCoarrays team thank very much for your work. Stefano

jamesclark commented on 2015-10-20 16:41 (UTC)

Hello, I am not sure about exact download statistics, but in the information above there is a "votes" and "popularity" section. I used OpenMPI purely because that is what I have been using. I wanted to say you need OpenMPI or MPICH, but the this functionality isn't built in to PKGBUILDs. I would be willing to change this dependency if there are some good reasons. Let me know how you get on with the package :)

szaghi commented on 2015-10-20 07:52 (UTC) (edited on 2015-10-20 07:54 (UTC) by szaghi)

Dear James, the development team of OpenCoarrays (with which I have talked to) are very grateful to you for maintaining this AUR package build (me too!). They have a question for you (they do not use Arch Linux thus ask me to work as *ambassador*): is it possible to obtain statistics on this AUR package downloads? OpenCoarrays is developed with love by a no-profit Institute (sourceryinstitute) for which this kind of statics is relevant for obtaining future funding. Besides, I have a personal question. Reading your PKBUILD I see that you select OpenMPI rather MPICH. OpenCoarrays official instructions suggest MPICH as the preferred MPI back-end: why do you select OpenMPI? Thank you very much for your great work, it is very appreciated!