Closed AndreMikulec closed 4 years ago
All,
I tried SEVERAL THINGS (but not everything).
This is the way I could get opencoarrays 2.8.0 compiled and built (and working, so far)
on Ubuntu Focal Fossa (development branch) 20.04.
This is from a perfectly new Ubuntu Focal Fossa (development branch) 20.04
#.# I actually just needed 'git' (also acquired gcc and g++ version 9.2)
sudo apt-get install build-essential curl file git
sudo apt install gcc # included gfortran # version 9.2
sudo apt install cmake
sudo apt install libmpich-dev
sudo apt install libcoarrays-mpich-dev
sudo apt install libopenmpi-dev
sudo apt install libcoarrays-openmpi-dev
sudo apt install libcoarrays-dev # already there
#.# sudo apt install mpich
#.# already there
#.# $ which mpiexec
#.# /usr/bin/mpiexec
git clone https://github.com/sourceryinstitute/OpenCoarrays.git
cd OpenCoarrays
git checkout -b OpenCoarrays_2.8.0 2.8.0
mkdir opencoarrays-build
cd opencoarrays-build
export FC=/usr/bin/gfortran
export CC=/usr/bin/gcc
cmake /home/computertu/OpenCoarrays -DCMAKE_INSTALL_PREFIX=/home/computertu/OpenCoarrays/opencoarrays-install
make
make test # optional; verify build works
make install
computertu@computertu:~/OpenCoarrays/opencoarrays-install/bin$ cat a.f90
program myprogram
integer :: a [*]
real :: b [*]
double precision :: c [*]
complex:: d [*]
character (len=10) :: e [*]
logical:: l [*]
end program
computertu@computertu:~/OpenCoarrays/opencoarrays-install/bin$ ./caf a.f90 -o a
computertu@computertu:~/OpenCoarrays/opencoarrays-install/bin$
computertu@computertu:~/OpenCoarrays/opencoarrays-install/bin$ # no MPI_* errors
computertu@computertu:~/OpenCoarrays/opencoarrays-install/bin$ ./cafrun -n 4 a # no MPI_* errors
GNU Fortran 95 compiler
Development files for MPICH
Co-Array Fortran libraries for - development files (MPICH)
high performance message passing library -- header files
Co-Array Fortran libraries - development files (OpenMPI)
Co-Array Fortran libraries
Hi,
I am very new.
I am trying to install open-coarrays-bin on my BRAND SPANKING NEW Ubuntu 20.04 Ubuntu Focal Fossa (development branch).
I did
However, when I execute
I am getting the following error:
in
I was following the article from last year:
https://www.scivision.dev/fortran-2018-coarray-quick-start/
So ..., what is the way (or easiest/best/most_flexible/awesome way) to install? Is there some
better
URL/method to follow?I do prefer the cutting edge.
I noticed mentioned
EasyBuild
andSpack
on the page https://github.com/sourceryinstitute/OpenCoarrays/blob/master/INSTALL.mdAre either good methods?
What are the general recommendations?
Thank you, Andre Mikulec Andre_Mikulec@Hotmail.com