[MacPorts] #34369: arpack with mpich2
#34369: arpack with mpich2 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: arpack --------------------------------------+------------------------------------- I'd like to use mpich2 rather than openmpi for the MPI library. I'm mainly using mpich2, and it seems openmpi and mpich2 can not co-exist (Ticket #11576). So, It would be nice if I can choose which MPI library to use. The attached file is what I tried to compile arpack with mpich2. Compilation was successful, but I have not tested if arpack works properly. Note that the location of include files of mpich2 depends on +default_mpi variant. -- Ticket URL: <https://trac.macports.org/ticket/34369> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: arpack --------------------------------------+------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => mmoll@… * cc: mmoll (removed) * version: 2.0.4 => Comment: Trac requires complete email addresses. This port should use variants for mpich2 and openmpi so the user can choose. -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: arpack --------------------------------------+------------------------------------- Comment(by mmoll@…): mpich2 doesn't appear to have the mpif77 program. Are you sure this patch works? -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: arpack --------------------------------------+------------------------------------- Comment(by ryusuke.numata@…): I have mpif77 installed because of the +gcc45 variant. Similar to openmpi, mpich2 needs the +gcc4? variant to enable Fortran, but any of the +gcc4? variants is not set by default. -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: arpack --------------------------------------+------------------------------------- Comment(by mmoll@…): Ah, I have +gcc46 as a default variant, but that variant doesn't exist for mpich2. Can you try if the Portfile.diff2 patch works? -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: arpack --------------------------------------+------------------------------------- Comment(by ryusuke.numata@…): The patch works if mpich2 is installed without +default_mpi. If the +default_mpi variant is given to mpich2, the include files are installed in /opt/local/include. So, arpack fails to find mpif.h. -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: arpack --------------------------------------+------------------------------------- Comment(by eborisch@…): FWIW, I am planning ro remove the +default_mpi option; it was there when include files conflicted with openmpi. Openmpi is installing includes in include/openmpi/ now, but other conflicts have cropped up (See #11576). Once mpich2 1.5 is released I'll be committing the new portfile which will place mpi*.h into ${prefix}/include/ and will be flagged to conflict with openmpi at this point. (This conflict may or may not continue to be the case; see also #11576) -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: arpack | ---------------------------------------+------------------------------------ Changes (by mmoll@…): * status: new => closed * resolution: => fixed Comment: Fixed in r93972. -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: arpack | ---------------------------------------+------------------------------------ Comment(by eborisch@…): Two quick notes: * I think the dependencies (for mpich2 and openmpi) should be depends_lib and not depends_build. * The the {{{configure.args-append FFLAGS='-I${prefix}/include/mpich2'}}} shouldn't be needed if mpif77 is used, and would be incorrect if mpich2 was installed +default_mpi, or after the 1.5 version is released. -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: arpack | ---------------------------------------+------------------------------------ Comment(by mmoll@…): Fixed in r94055. -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: arpack | ---------------------------------------+------------------------------------ Comment(by eborisch@…): I should have been clearer; the {{{configure.env-append MPIF77=${prefix}/bin/mpif77}}} line (within the mpich2 variant) ''is still needed''; its existence is why the FFLAGS line ''isn't'' needed. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34369: arpack with mpich2 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: arpack | ---------------------------------------+------------------------------------ Comment(by mmoll@…): Sorry. Fixed for real this time in r94060. -- Ticket URL: <https://trac.macports.org/ticket/34369#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts