Skip to content

Commit

Permalink
xyce: fix self-referential dependencies (spack#42557)
Browse files Browse the repository at this point in the history
  • Loading branch information
alalazo authored Feb 8, 2024
1 parent af49f81 commit 753e8b5
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions var/spack/repos/builtin/packages/xyce/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Xyce(CMakePackage):
depends_on("trilinos@13.5.0:14.4", when="@7.6.0:7.7.0")
depends_on("trilinos@12.12.1:13.4", when="@7.5")
depends_on("trilinos@12.12.1", when="@:7.4")
depends_on("trilinos gotype=all cxxstd=11", when="^trilinos@:12.15")
requires("^trilinos gotype=all cxxstd=11", when="^trilinos@:12.15")
# pymi requires Kokkos/KokkosKernels >= 3.3, Trilinos 13.2 onward
depends_on("trilinos@13.2.0:", when="+pymi")

Expand All @@ -133,27 +133,25 @@ class Xyce(CMakePackage):
with when("+pymi_static_tpls"):
# BLAS
depends_on("blas")
depends_on("openblas~shared", when="^openblas")
depends_on("netlib-lapack~shared", when="^netlib-lapack~external-blas")

depends_on("armpl-gcc~shared", when="^armpl-gcc")
depends_on("atlas~shared", when="^atlas")
depends_on("openblas~shared", when="^[virtuals=blas] openblas")
depends_on("netlib-lapack~shared", when="^[virtuals=blas] netlib-lapack~external-blas")
depends_on("armpl-gcc~shared", when="^[virtuals=blas] armpl-gcc")
depends_on("atlas~shared", when="^[virtuals=blas] atlas")
depends_on("blis libs=static", when="^[virtuals=blas] blis+cblas")
depends_on("blis libs=static", when="^[virtuals=blas] blis+blas")
depends_on("clblast~shared", when="^clblast+netlib")
depends_on("intel-mkl~shared", when="^intel-mkl")
depends_on("intel-oneapi-mkl~shared", when="^intel-oneapi-mkl")
depends_on("intel-parallel-studio~shared", when="^intel-parallel-studio+mkl")
depends_on("veclibfort~shared", when="^veclibfort")
depends_on("clblast~shared", when="^[virtuals=blas] clblast+netlib")
depends_on("intel-mkl~shared", when="^[virtuals=blas] intel-mkl")
depends_on("intel-oneapi-mkl~shared", when="^[virtuals=blas] intel-oneapi-mkl")
depends_on(
"intel-parallel-studio~shared", when="^[virtuals=blas] intel-parallel-studio+mkl"
)
depends_on("veclibfort~shared", when="^[virtuals=blas] veclibfort")
conflicts("^essl", msg="essl not supported with +pymi_static_tpls")
conflicts("^flexiblas", msg="flexiblas not supported with +pymi_static_tpls")
conflicts("^nvhpc", msg="nvhpc not supported with +pymi_static_tpls")
conflicts("^cray-libsci", msg="cray-libsci not supported with +pymi_static_tpls")
# netlib-xblas+plain_blas is always static

# HDF5
depends_on("hdf5~shared", when="^hdf5")

# fix MPI issue
patch(
"https://github.com/xyce/xyce/commit/2f95783637a5171a7f65f5d18c24d9a580a7f39e.patch?full_index=1",
Expand Down

0 comments on commit 753e8b5

Please sign in to comment.