[MacPorts] #22480: Fortran and MPI support for hdf5-18
#22480: Fortran and MPI support for hdf5-18 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: hdf5-18 --------------------------------------+------------------------------------- I suggest to add Fortran and MPI support to hdf5-18 as hdf5. -- Ticket URL: <http://trac.macports.org/ticket/22480> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22480: Fortran and MPI support for hdf5-18 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: hdf5-18 --------------------------------------+------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => mmoll@… -- Ticket URL: <http://trac.macports.org/ticket/22480#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22480: Fortran and MPI support for hdf5-18 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: hdf5-18 --------------------------------------+------------------------------------- Comment(by mmoll@…): HDF5 does not support all languages simultaneously. Certain combinations of shared/parallel/{fortran,c++} don't work either. See http://www.hdfgroup.org/HDF5/release/SuppConfigFeats5.html. Type "make check" to see what works. For each variant you add, you basically need to check which other variants if conflicts with, based on the output of "make check". -- Ticket URL: <http://trac.macports.org/ticket/22480#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22480: Fortran and MPI support for hdf5-18 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: hdf5-18 --------------------------------------+------------------------------------- Comment(by ryusuke.numata@…): Replying to [comment:2 mmoll@…]:
HDF5 does not support all languages simultaneously. Certain combinations of shared/parallel/{fortran,c++} don't work either. See http://www.hdfgroup.org/HDF5/release/SuppConfigFeats5.html. Type "make check" to see what works. For each variant you add, you basically need to check which other variants if conflicts with, based on the output of "make check".
I thought it's working because my program does not give me an error. I understand the situation, and withdraw this suggestion. Hope HDF5 supports those features soon. -- Ticket URL: <http://trac.macports.org/ticket/22480#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22480: Fortran and MPI support for hdf5-18 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: invalid | Keywords: Port: hdf5-18 | ---------------------------------------+------------------------------------ Changes (by snc@…): * status: new => closed * resolution: => invalid -- Ticket URL: <http://trac.macports.org/ticket/22480#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22480: Fortran and MPI support for hdf5-18 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: | Keywords: Port: hdf5-18 | ---------------------------------------+------------------------------------ Changes (by jcharris@…): * status: closed => reopened * resolution: invalid => Comment: As far as I can tell, HDF5 does work with Fortran and MPI at this point, and it is relatively simple to setup. See attached patch. Some combination of the originally submitted patch and my attached patch may work best. For an openmpi variant, openmpi depends on gcc44, so Fortran is already installed. In order to get hdf5-18 to work with Fortran, one just needs to set the --enable-fortran flag and remove the -arch flag, as in the gcc44 variant (because gfortran, as configured in MacPorts, does not support it -- although this is an issue of how it's setup in MacPorts, as gfortran, as I understand it, can be setup to support -arch). One could point out that the patch that I have attached does not allow one to do something like "sudo port install hdf5-18 +openmpi +gcc44" to combine the MPI-enabling and Fortran-enabling variants -- but (a) openmpi depends on gcc44 already, so the functionality should be added into hdf5-18; (b) if desired, instead of having +openmpi set the compiler, one could have the Fortran compiler set by the +gcc44 variant, and have +openmpi add the necessary flags "-I/opt/local/include/openmpi -I/opt/local/lib -L/opt/local/lib -lmpi_f90 -lmpi_f77 -lmpi" (which one can see by running 'openmpif90 -showme'). -- Ticket URL: <https://trac.macports.org/ticket/22480#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22480: Fortran and MPI support for hdf5-18 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: | Keywords: Port: hdf5-18 | ---------------------------------------+------------------------------------ Comment(by mmoll@…): I just updated the port to hdf5 1.8.7 in r78599. Fortran support, MPI support or both at the same time should work now. -- Ticket URL: <https://trac.macports.org/ticket/22480#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22480: Fortran and MPI support for hdf5-18 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: hdf5-18 | ---------------------------------------+------------------------------------ Changes (by mmoll@…): * status: reopened => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/22480#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts