summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorafzpatel <122491982+afzpatel@users.noreply.github.com>2024-11-04 04:41:07 -0500
committerGitHub <noreply@github.com>2024-11-04 10:41:07 +0100
commit754011643c83aefda92b43602456ca31c7703121 (patch)
treea4a139098160a1a271dfb09d8fa646b778339152 /var
parent2148292bdba60f223e4238fab240490a5303fa81 (diff)
downloadspack-754011643c83aefda92b43602456ca31c7703121.tar.gz
spack-754011643c83aefda92b43602456ca31c7703121.tar.bz2
spack-754011643c83aefda92b43602456ca31c7703121.tar.xz
spack-754011643c83aefda92b43602456ca31c7703121.zip
rocal and rocm-openmp-extras: fix build failures (#47314)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mivisionx/package.py4
-rw-r--r--var/spack/repos/builtin/packages/rocal/package.py3
-rw-r--r--var/spack/repos/builtin/packages/rocm-openmp-extras/package.py9
3 files changed, 10 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/mivisionx/package.py b/var/spack/repos/builtin/packages/mivisionx/package.py
index f3e565f99f..332d9d4ca9 100644
--- a/var/spack/repos/builtin/packages/mivisionx/package.py
+++ b/var/spack/repos/builtin/packages/mivisionx/package.py
@@ -15,7 +15,7 @@ class Mivisionx(CMakePackage):
git = "https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX.git"
url = "https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX/archive/rocm-6.1.2.tar.gz"
- maintainers("srekolam", "renjithravindrankannath")
+ maintainers("srekolam", "renjithravindrankannath", "afzpatel")
tags = ["rocm"]
def url_for_version(self, version):
@@ -211,7 +211,7 @@ class Mivisionx(CMakePackage):
when="@5.3:",
)
depends_on("openssl")
- depends_on("libjpeg-turbo@2.0.6+partial_decoder", type="build")
+ depends_on("libjpeg-turbo@2.0.6+partial_decoder", type="build", when="@:6.2.0")
depends_on("rpp@1.2.0", when="@5.5:5.6")
depends_on("lmdb", when="@5.5:")
depends_on("py-setuptools", when="@5.6:")
diff --git a/var/spack/repos/builtin/packages/rocal/package.py b/var/spack/repos/builtin/packages/rocal/package.py
index 84e4583493..c9196dd562 100644
--- a/var/spack/repos/builtin/packages/rocal/package.py
+++ b/var/spack/repos/builtin/packages/rocal/package.py
@@ -20,7 +20,8 @@ class Rocal(CMakePackage):
version("6.2.1", sha256="77d3e63e02afaee6f1ee1d877d88b48c6ea66a0afca96a1313d0f1c4f8e86b2a")
version("6.2.0", sha256="c7c265375a40d4478a628258378726c252caac424f974456d488fce43890e157")
- depends_on("libjpeg-turbo@2.0.6+partial_decoder")
+ depends_on("libjpeg-turbo@2.0.6+partial_decoder", when="@6.2.0")
+ depends_on("libjpeg-turbo@3.0.2:", when="@6.2.1:")
depends_on("rapidjson")
depends_on("ffmpeg@4.4:")
diff --git a/var/spack/repos/builtin/packages/rocm-openmp-extras/package.py b/var/spack/repos/builtin/packages/rocm-openmp-extras/package.py
index 3586bef851..471b662d4b 100644
--- a/var/spack/repos/builtin/packages/rocm-openmp-extras/package.py
+++ b/var/spack/repos/builtin/packages/rocm-openmp-extras/package.py
@@ -155,7 +155,7 @@ class RocmOpenmpExtras(Package):
license("Apache-2.0")
- maintainers("srekolam", "renjithravindrankannath", "estewart08")
+ maintainers("srekolam", "renjithravindrankannath", "estewart08", "afzpatel")
version("6.2.1", sha256=versions_dict["6.2.1"]["aomp"])
version("6.2.0", sha256=versions_dict["6.2.0"]["aomp"])
version("6.1.2", sha256=versions_dict["6.1.2"]["aomp"])
@@ -189,6 +189,7 @@ class RocmOpenmpExtras(Package):
depends_on("libffi", type=("build", "link"))
depends_on("libdrm", when="@5.7:6.0")
depends_on("numactl", when="@5.7:6.0")
+ depends_on("zlib", when="@6.2:")
for ver in [
"5.5.0",
@@ -489,6 +490,7 @@ class RocmOpenmpExtras(Package):
ffi_inc = spec["libffi"].prefix.include
if self.spec.satisfies("@6.2:"):
ncurses_lib_dir = self.spec["ncurses"].prefix.lib
+ zlib_lib_dir = self.spec["zlib"].prefix.lib
# flang1 and flang2 symlink needed for build of flang-runtime
# libdevice symlink to rocm-openmp-extras for runtime
@@ -638,11 +640,12 @@ class RocmOpenmpExtras(Package):
flang_legacy_flags.append("-D_GLIBCXX_USE_CXX11_ABI=0")
if self.spec.satisfies("@6.2:"):
flang_legacy_flags.append("-L{0}".format(ncurses_lib_dir))
+ flang_legacy_flags.append("-L{0}".format(zlib_lib_dir))
components["flang-legacy-llvm"] += [
- "-DCMAKE_CXX_FLAGS={0}".format(",".join(flang_legacy_flags))
+ "-DCMAKE_CXX_FLAGS={0}".format(" ".join(flang_legacy_flags))
]
components["flang-legacy"] += [
- "-DCMAKE_CXX_FLAGS={0}".format(",".join(flang_legacy_flags))
+ "-DCMAKE_CXX_FLAGS={0}".format(" ".join(flang_legacy_flags))
]
components["flang"] = [