-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
MFEM: add new version v4.7 #44010
base: develop
Are you sure you want to change the base?
MFEM: add new version v4.7 #44010
Conversation
* Fix the build when the cuda variant is disabled and cuda is present on the system. * In the 'libs' property, search for the libraries in the whole prefix, not just in 'lib' -- newer versions use 'lib64' at least in some cases. * Propagate the 'make_jobs' setting to the build system -- it requires a special flag in the make options.
path_from_modules(...) to the rpaths when it returns None. The presense of None in the rpaths was causing an issue.
'-std=c89' -- without it the build fails.
… was causing the PETSc configuration to fail.
…nmp' to the SuiteSparse build system. Add backward compatibility support for new SuiteSparse versions which moved the SuiteSparse headers inside a subdirectory 'suitesparse' -- to allow existing packages to work with these new versions, all headers from the 'suitesparse' subdirectory are linked in the parent directory, '<prefix>/include'. Added new version: v7.7.0.
during testing through Spack. Added various tweaks and fixes in the package and updated the testing script 'test_builds.sh'.
@spackbot fix style |
Let me see if I can fix that for you! |
I was able to run spack style --fix==> Running style checks on spack
selected: isort, black, flake8, mypy
==> Modified files
lib/spack/spack/build_environment.py
var/spack/repos/builtin/packages/hiop/package.py
var/spack/repos/builtin/packages/metis/package.py
var/spack/repos/builtin/packages/mfem/package.py
var/spack/repos/builtin/packages/petsc/package.py
var/spack/repos/builtin/packages/suite-sparse/package.py
var/spack/repos/builtin/packages/zlib-ng/package.py
==> Running isort checks
Fixing /tmp/tmp0qna4rvk/spack/var/spack/repos/builtin/packages/suite-sparse/package.py
isort checks were clean
==> Running black checks
reformatted var/spack/repos/builtin/packages/metis/package.py
reformatted var/spack/repos/builtin/packages/suite-sparse/package.py
reformatted var/spack/repos/builtin/packages/zlib-ng/package.py
reformatted var/spack/repos/builtin/packages/mfem/package.py
All done! ✨ 🍰 ✨
4 files reformatted, 3 files left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> Running mypy checks
lib/spack/spack/version/version_types.py:145: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:452: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:481: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
Found 3 errors in 1 file (checked 625 source files)
mypy found errors
I've updated the branch with style fixes. |
@spackbot fix style |
Let me see if I can fix that for you! |
I was able to run spack style --fix==> Running style checks on spack
selected: isort, black, flake8, mypy
==> Modified files
lib/spack/spack/build_environment.py
var/spack/repos/builtin/packages/hiop/package.py
var/spack/repos/builtin/packages/hypre/package.py
var/spack/repos/builtin/packages/metis/package.py
var/spack/repos/builtin/packages/mfem/package.py
var/spack/repos/builtin/packages/petsc/package.py
var/spack/repos/builtin/packages/suite-sparse/package.py
var/spack/repos/builtin/packages/zlib-ng/package.py
==> Running isort checks
isort checks were clean
==> Running black checks
reformatted var/spack/repos/builtin/packages/mfem/package.py
All done! ✨ 🍰 ✨
1 file reformatted, 7 files left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> Running mypy checks
lib/spack/spack/version/version_types.py:145: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:452: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:481: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
Found 3 errors in 1 file (checked 625 source files)
mypy found errors
I've updated the branch with style fixes. |
'ld_flags_from_dirs' as methods of class 'Mfem' so that they can be reused by sub-classes.
@spackbot fix style |
Let me see if I can fix that for you! |
I was able to run spack style --fix==> Running style checks on spack
selected: isort, black, flake8, mypy
==> Modified files
lib/spack/spack/build_environment.py
var/spack/repos/builtin/packages/hiop/package.py
var/spack/repos/builtin/packages/hypre/package.py
var/spack/repos/builtin/packages/metis/package.py
var/spack/repos/builtin/packages/mfem/package.py
var/spack/repos/builtin/packages/petsc/package.py
var/spack/repos/builtin/packages/suite-sparse/package.py
var/spack/repos/builtin/packages/zlib-ng/package.py
==> Running isort checks
isort checks were clean
==> Running black checks
reformatted var/spack/repos/builtin/packages/mfem/package.py
All done! ✨ 🍰 ✨
1 file reformatted, 7 files left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> Running mypy checks
lib/spack/spack/version/version_types.py:145: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:452: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:481: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
Found 3 errors in 1 file (checked 625 source files)
mypy found errors
I've updated the branch with style fixes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @v-dobrev!
TODO:
mfem/package.py
precision
:double
, orsingle
; available since v4.7