Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pumi install via spack with simmodsuite=base fails #368

Open
cwsmith opened this issue Jul 20, 2022 · 1 comment
Open

pumi install via spack with simmodsuite=base fails #368

cwsmith opened this issue Jul 20, 2022 · 1 comment

Comments

@cwsmith
Copy link
Contributor

cwsmith commented Jul 20, 2022

The PUMI cmake command fails when it can't find SimParititonedMesh-mpi as done here:

set(SIM_BOOTSTRAP_LIB_NAME
SimPartitionedMesh-mpi)
simLibCheck("${SIM_BOOTSTRAP_LIB_NAME}" TRUE)

The base install of SimModSuite via Spack does not appear to include this lib. (to be confirmed)

@Thomas-Ulrich
Copy link
Contributor

I would change:
https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/pumi/package.py#L97-L98
to:

        if self.spec.satisfies("simmodsuite=base"):
            args.append("-DENABLE_SIMMETRIX=ON")
            mpi_id = spec["mpi"].name + spec["mpi"].version.up_to(1).string
            args.append("-DSIM_MPI=" + mpi_id)

and change also
https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/pumi/package.py#L104
to mpi_id = spec["mpi"].name + spec["mpi"].version.up_to(1).string

Because the precompiled libraries are:
libSimPartitionWrapper-mpich3.a, libSimPartitionWrapper-openmpi4.a or libSimPartitionWrapper-openmpi3.a

By the way, it would be nice it would be possible to fine-tune the install with simmodsuite, e.g. compiling

args.append("-DSIM_DISCRETE=ON")

but without:

args.append("-DSIM_ACIS=ON")
args.append("-DSIM_PARASOLID=ON")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants