Compare commits
3 Commits
e4s-23.02
...
features/o
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a542b0cfc0 | ||
|
|
0d02262bbc | ||
|
|
9beac03142 |
25
CHANGELOG.md
25
CHANGELOG.md
@@ -1,28 +1,3 @@
|
||||
# v0.19.1 (2023-02-07)
|
||||
|
||||
### Spack Bugfixes
|
||||
|
||||
* `buildcache create`: make "file exists" less verbose (#35019)
|
||||
* `spack mirror create`: don't change paths to urls (#34992)
|
||||
* Improve error message for requirements (#33988)
|
||||
* uninstall: fix accidental cubic complexity (#34005)
|
||||
* scons: fix signature for `install_args` (#34481)
|
||||
* Fix `combine_phase_logs` text encoding issues (#34657)
|
||||
* Use a module-like object to propagate changes in the MRO, when setting build env (#34059)
|
||||
* PackageBase should not define builder legacy attributes (#33942)
|
||||
* Forward lookup of the "run_tests" attribute (#34531)
|
||||
* Bugfix for timers (#33917, #33900)
|
||||
* Fix path handling in prefix inspections (#35318)
|
||||
* Fix libtool filter for Fujitsu compilers (#34916)
|
||||
* Bug fix for duplicate rpath errors on macOS when creating build caches (#34375)
|
||||
* FileCache: delete the new cache file on exception (#34623)
|
||||
* Propagate exceptions from Spack python console (#34547)
|
||||
* Tests: Fix a bug/typo in a `config_values.py` fixture (#33886)
|
||||
* Various CI fixes (#33953, #34560, #34560, #34828)
|
||||
* Docs: remove monitors and analyzers, typos (#34358, #33926)
|
||||
* bump release version for tutorial command (#33859)
|
||||
|
||||
|
||||
# v0.19.0 (2022-11-11)
|
||||
|
||||
`v0.19.0` is a major feature release.
|
||||
|
||||
@@ -346,7 +346,7 @@ the Environment and then install the concretized specs.
|
||||
(see :ref:`build-jobs`). To speed up environment builds further, independent
|
||||
packages can be installed in parallel by launching more Spack instances. For
|
||||
example, the following will build at most four packages in parallel using
|
||||
three background jobs:
|
||||
three background jobs:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
@@ -394,7 +394,7 @@ version (and other constraints) passed as the spec argument to the
|
||||
|
||||
For packages with ``git`` attributes, git branches, tags, and commits can
|
||||
also be used as valid concrete versions (see :ref:`version-specifier`).
|
||||
This means that for a package ``foo``, ``spack develop foo@git.main`` will clone
|
||||
This means that for a package ``foo``, ``spack develop foo@git.main`` will clone
|
||||
the ``main`` branch of the package, and ``spack install`` will install from
|
||||
that git clone if ``foo`` is in the environment.
|
||||
Further development on ``foo`` can be tested by reinstalling the environment,
|
||||
@@ -630,6 +630,35 @@ The following two Environment manifests are identical:
|
||||
Spec matrices can be used to install swaths of software across various
|
||||
toolchains.
|
||||
|
||||
Note that ordering of matrices is important. For example, the
|
||||
following environments are identical:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
spack:
|
||||
specs:
|
||||
- matrix:
|
||||
- [hdf5@1.10.2+mpi]
|
||||
- [^mpich, ^openmpi]
|
||||
- ['%gcc']
|
||||
- matrix:
|
||||
- [hdf5@1.12.1+mpi]
|
||||
- ['%gcc']
|
||||
- [^mpich, ^openmpi]
|
||||
|
||||
spack:
|
||||
specs:
|
||||
- hdf5@1.10.2+mpi ^mpich%gcc
|
||||
- hdf5@1.10.2+mpi ^openmpi%gcc
|
||||
- hdf5@1.12.1+mpi %gcc ^mpich
|
||||
- hdf5@1.12.1+mpi %gcc ^openmpi
|
||||
|
||||
Notice how the first matrix applies the compiler constraints to the
|
||||
mpi dependencies, whereas the second matrix applies the compiler
|
||||
constraints directly to the root hdf5 node. This gives users the full
|
||||
breadth of expressiveness of the spec syntax through the matrix
|
||||
interface.
|
||||
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
Spec List References
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
@@ -1120,19 +1149,19 @@ index once every package is pushed. Note how this target uses the generated
|
||||
|
||||
SPACK ?= spack
|
||||
BUILDCACHE_DIR = $(CURDIR)/tarballs
|
||||
|
||||
|
||||
.PHONY: all
|
||||
|
||||
|
||||
all: push
|
||||
|
||||
|
||||
include env.mk
|
||||
|
||||
|
||||
example/push/%: example/install/%
|
||||
@mkdir -p $(dir $@)
|
||||
$(info About to push $(SPEC) to a buildcache)
|
||||
$(SPACK) -e . buildcache create --allow-root --only=package --directory $(BUILDCACHE_DIR) /$(HASH)
|
||||
@touch $@
|
||||
|
||||
|
||||
push: $(addprefix example/push/,$(example/SPACK_PACKAGE_IDS))
|
||||
$(info Updating the buildcache index)
|
||||
$(SPACK) -e . buildcache update-index --directory $(BUILDCACHE_DIR)
|
||||
|
||||
@@ -1198,42 +1198,40 @@ def _build_tarball(
|
||||
):
|
||||
raise NoOverwriteException(url_util.format(remote_specfile_path))
|
||||
|
||||
pkg_dir = os.path.basename(spec.prefix.rstrip(os.path.sep))
|
||||
workdir = os.path.join(tmpdir, pkg_dir)
|
||||
|
||||
# TODO: We generally don't want to mutate any files, but when using relative
|
||||
# mode, Spack unfortunately *does* mutate rpaths and links ahead of time.
|
||||
# For now, we only make a full copy of the spec prefix when in relative mode.
|
||||
|
||||
if relative:
|
||||
# tarfile is used because it preserves hardlink etc best.
|
||||
binaries_dir = workdir
|
||||
temp_tarfile_name = tarball_name(spec, ".tar")
|
||||
temp_tarfile_path = os.path.join(tarfile_dir, temp_tarfile_name)
|
||||
with closing(tarfile.open(temp_tarfile_path, "w")) as tar:
|
||||
tar.add(name="%s" % spec.prefix, arcname=".")
|
||||
with closing(tarfile.open(temp_tarfile_path, "r")) as tar:
|
||||
tar.extractall(workdir)
|
||||
os.remove(temp_tarfile_path)
|
||||
else:
|
||||
binaries_dir = spec.prefix
|
||||
mkdirp(os.path.join(workdir, ".spack"))
|
||||
# make a copy of the install directory to work with
|
||||
workdir = os.path.join(tmpdir, os.path.basename(spec.prefix))
|
||||
# install_tree copies hardlinks
|
||||
# create a temporary tarfile from prefix and exract it to workdir
|
||||
# tarfile preserves hardlinks
|
||||
temp_tarfile_name = tarball_name(spec, ".tar")
|
||||
temp_tarfile_path = os.path.join(tarfile_dir, temp_tarfile_name)
|
||||
with closing(tarfile.open(temp_tarfile_path, "w")) as tar:
|
||||
tar.add(name="%s" % spec.prefix, arcname=".")
|
||||
with closing(tarfile.open(temp_tarfile_path, "r")) as tar:
|
||||
tar.extractall(workdir)
|
||||
os.remove(temp_tarfile_path)
|
||||
|
||||
# create info for later relocation and create tar
|
||||
write_buildinfo_file(spec, workdir, relative)
|
||||
|
||||
# optionally make the paths in the binaries relative to each other
|
||||
# in the spack install tree before creating tarball
|
||||
try:
|
||||
if relative:
|
||||
if relative:
|
||||
try:
|
||||
make_package_relative(workdir, spec, allow_root)
|
||||
elif not allow_root:
|
||||
ensure_package_relocatable(workdir, binaries_dir)
|
||||
except Exception as e:
|
||||
shutil.rmtree(workdir)
|
||||
shutil.rmtree(tarfile_dir)
|
||||
shutil.rmtree(tmpdir)
|
||||
tty.die(e)
|
||||
except Exception as e:
|
||||
shutil.rmtree(workdir)
|
||||
shutil.rmtree(tarfile_dir)
|
||||
shutil.rmtree(tmpdir)
|
||||
tty.die(e)
|
||||
else:
|
||||
try:
|
||||
check_package_relocatable(workdir, spec, allow_root)
|
||||
except Exception as e:
|
||||
shutil.rmtree(workdir)
|
||||
shutil.rmtree(tarfile_dir)
|
||||
shutil.rmtree(tmpdir)
|
||||
tty.die(e)
|
||||
|
||||
# create gzip compressed tarball of the install prefix
|
||||
# On AMD Ryzen 3700X and an SSD disk, we have the following on compression speed:
|
||||
@@ -1241,13 +1239,7 @@ def _build_tarball(
|
||||
# compresslevel=9 python default: llvm takes 12mins, roughly 2.1GB
|
||||
# So we follow gzip.
|
||||
with closing(tarfile.open(tarfile_path, "w:gz", compresslevel=6)) as tar:
|
||||
tar.add(name=binaries_dir, arcname=pkg_dir)
|
||||
if not relative:
|
||||
# Add buildinfo file
|
||||
buildinfo_path = buildinfo_file_name(workdir)
|
||||
buildinfo_arcname = buildinfo_file_name(pkg_dir)
|
||||
tar.add(name=buildinfo_path, arcname=buildinfo_arcname)
|
||||
|
||||
tar.add(name="%s" % workdir, arcname="%s" % os.path.basename(spec.prefix))
|
||||
# remove copy of install directory
|
||||
shutil.rmtree(workdir)
|
||||
|
||||
@@ -1575,11 +1567,16 @@ def make_package_relative(workdir, spec, allow_root):
|
||||
relocate.make_link_relative(cur_path_names, orig_path_names)
|
||||
|
||||
|
||||
def ensure_package_relocatable(workdir, binaries_dir):
|
||||
"""Check if package binaries are relocatable."""
|
||||
def check_package_relocatable(workdir, spec, allow_root):
|
||||
"""
|
||||
Check if package binaries are relocatable.
|
||||
Change links to placeholder links.
|
||||
"""
|
||||
buildinfo = read_buildinfo_file(workdir)
|
||||
binaries = [os.path.join(binaries_dir, f) for f in buildinfo["relocate_binaries"]]
|
||||
relocate.ensure_binaries_are_relocatable(binaries)
|
||||
cur_path_names = list()
|
||||
for filename in buildinfo["relocate_binaries"]:
|
||||
cur_path_names.append(os.path.join(workdir, filename))
|
||||
allow_root or relocate.ensure_binaries_are_relocatable(cur_path_names)
|
||||
|
||||
|
||||
def dedupe_hardlinks_if_necessary(root, buildinfo):
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
import spack.package_base
|
||||
import spack.spec
|
||||
import spack.store
|
||||
from spack.directives import build_system, depends_on, extends, maintainers
|
||||
from spack.directives import build_system, depends_on, extends
|
||||
from spack.error import NoHeadersError, NoLibrariesError, SpecError
|
||||
from spack.version import Version
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
|
||||
class PythonExtension(spack.package_base.PackageBase):
|
||||
maintainers("adamjstewart", "pradyunsg")
|
||||
maintainers = ["adamjstewart"]
|
||||
|
||||
@property
|
||||
def import_modules(self):
|
||||
@@ -184,6 +184,8 @@ class PythonPackage(PythonExtension):
|
||||
#: Package name, version, and extension on PyPI
|
||||
pypi: Optional[str] = None
|
||||
|
||||
maintainers = ["adamjstewart", "pradyunsg"]
|
||||
|
||||
# To be used in UI queries that require to know which
|
||||
# build-system class we are using
|
||||
build_system_class = "PythonPackage"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import llnl.util.lang as lang
|
||||
|
||||
from spack.directives import extends, maintainers
|
||||
from spack.directives import extends
|
||||
|
||||
from .generic import GenericBuilder, Package
|
||||
|
||||
@@ -71,7 +71,7 @@ class RPackage(Package):
|
||||
|
||||
GenericBuilder = RBuilder
|
||||
|
||||
maintainers("glennpj")
|
||||
maintainers = ["glennpj"]
|
||||
|
||||
#: This attribute is used in UI queries that need to know the build
|
||||
#: system base class
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
import spack.builder
|
||||
from spack.build_environment import SPACK_NO_PARALLEL_MAKE, determine_number_of_jobs
|
||||
from spack.directives import build_system, extends, maintainers
|
||||
from spack.directives import build_system, extends
|
||||
from spack.package_base import PackageBase
|
||||
from spack.util.environment import env_flag
|
||||
from spack.util.executable import Executable, ProcessError
|
||||
@@ -23,7 +23,7 @@ class RacketPackage(PackageBase):
|
||||
"""
|
||||
|
||||
#: Package name, version, and extension on PyPI
|
||||
maintainers("elfprince13")
|
||||
maintainers = ["elfprince13"]
|
||||
# To be used in UI queries that require to know which
|
||||
# build-system class we are using
|
||||
build_system_class = "RacketPackage"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import spack.builder
|
||||
import spack.package_base
|
||||
from spack.directives import build_system, extends, maintainers
|
||||
from spack.directives import build_system, extends
|
||||
|
||||
from ._checks import BaseBuilder
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
class RubyPackage(spack.package_base.PackageBase):
|
||||
"""Specialized class for building Ruby gems."""
|
||||
|
||||
maintainers("Kerilk")
|
||||
maintainers = ["Kerilk"]
|
||||
|
||||
#: This attribute is used in UI queries that need to know the build
|
||||
#: system base class
|
||||
|
||||
@@ -2265,15 +2265,12 @@ def _concretize_from_constraints(spec_constraints, tests=False):
|
||||
m += "concretization target. all specs must have a single name "
|
||||
m += "constraint for concretization."
|
||||
raise InvalidSpecConstraintError(m)
|
||||
spec_constraints.remove(root_spec[0])
|
||||
|
||||
invalid_constraints = []
|
||||
while True:
|
||||
# Attach all anonymous constraints to one named spec
|
||||
s = root_spec[0].copy()
|
||||
for c in spec_constraints:
|
||||
if c not in invalid_constraints:
|
||||
s.constrain(c)
|
||||
# Combine constraints into a single spec
|
||||
s = Spec(" ".join([str(c) for c in spec_constraints if c not in invalid_constraints]))
|
||||
|
||||
try:
|
||||
return s.concretized(tests=tests)
|
||||
except spack.spec.InvalidDependencyError as e:
|
||||
|
||||
@@ -1012,13 +1012,11 @@ def package_compiler_defaults(self, pkg):
|
||||
def package_requirement_rules(self, pkg):
|
||||
pkg_name = pkg.name
|
||||
config = spack.config.get("packages")
|
||||
requirements, raise_on_failure = config.get(pkg_name, {}).get("require", []), True
|
||||
if not requirements:
|
||||
requirements, raise_on_failure = config.get("all", {}).get("require", []), False
|
||||
rules = self._rules_from_requirements(pkg_name, requirements)
|
||||
self.emit_facts_from_requirement_rules(
|
||||
rules, virtual=False, raise_on_failure=raise_on_failure
|
||||
requirements = config.get(pkg_name, {}).get("require", []) or config.get("all", {}).get(
|
||||
"require", []
|
||||
)
|
||||
rules = self._rules_from_requirements(pkg_name, requirements)
|
||||
self.emit_facts_from_requirement_rules(rules, virtual=False)
|
||||
|
||||
def _rules_from_requirements(self, pkg_name, requirements):
|
||||
"""Manipulate requirements from packages.yaml, and return a list of tuples
|
||||
@@ -1163,13 +1161,11 @@ def condition(self, required_spec, imposed_spec=None, name=None, msg=None, node=
|
||||
named_cond.name = named_cond.name or name
|
||||
assert named_cond.name, "must provide name for anonymous condtions!"
|
||||
|
||||
# Check if we can emit the requirements before updating the condition ID counter.
|
||||
# In this way, if a condition can't be emitted but the exception is handled in the caller,
|
||||
# we won't emit partial facts.
|
||||
requirements = self.spec_clauses(named_cond, body=True, required_from=name)
|
||||
|
||||
condition_id = next(self._condition_id_counter)
|
||||
self.gen.fact(fn.condition(condition_id, msg))
|
||||
|
||||
# requirements trigger the condition
|
||||
requirements = self.spec_clauses(named_cond, body=True, required_from=name)
|
||||
for pred in requirements:
|
||||
self.gen.fact(fn.condition_requirement(condition_id, *pred.args))
|
||||
|
||||
@@ -1265,39 +1261,23 @@ def provider_requirements(self):
|
||||
rules = self._rules_from_requirements(virtual_str, requirements)
|
||||
self.emit_facts_from_requirement_rules(rules, virtual=True)
|
||||
|
||||
def emit_facts_from_requirement_rules(self, rules, *, virtual=False, raise_on_failure=True):
|
||||
"""Generate facts to enforce requirements from packages.yaml.
|
||||
|
||||
Args:
|
||||
rules: rules for which we want facts to be emitted
|
||||
virtual: if True the requirements are on a virtual spec
|
||||
raise_on_failure: if True raise an exception when a requirement condition is invalid
|
||||
for the current spec. If False, just skip that condition
|
||||
"""
|
||||
def emit_facts_from_requirement_rules(self, rules, virtual=False):
|
||||
"""Generate facts to enforce requirements from packages.yaml."""
|
||||
for requirement_grp_id, (pkg_name, policy, requirement_grp) in enumerate(rules):
|
||||
self.gen.fact(fn.requirement_group(pkg_name, requirement_grp_id))
|
||||
self.gen.fact(fn.requirement_policy(pkg_name, requirement_grp_id, policy))
|
||||
requirement_weight = 0
|
||||
for spec_str in requirement_grp:
|
||||
for requirement_weight, spec_str in enumerate(requirement_grp):
|
||||
spec = spack.spec.Spec(spec_str)
|
||||
if not spec.name:
|
||||
spec.name = pkg_name
|
||||
when_spec = spec
|
||||
if virtual:
|
||||
when_spec = spack.spec.Spec(pkg_name)
|
||||
|
||||
try:
|
||||
member_id = self.condition(
|
||||
required_spec=when_spec, imposed_spec=spec, name=pkg_name, node=virtual
|
||||
)
|
||||
except Exception as e:
|
||||
if raise_on_failure:
|
||||
raise RuntimeError("cannot emit requirements for the solver") from e
|
||||
continue
|
||||
|
||||
member_id = self.condition(
|
||||
required_spec=when_spec, imposed_spec=spec, name=pkg_name, node=virtual
|
||||
)
|
||||
self.gen.fact(fn.requirement_group_member(member_id, pkg_name, requirement_grp_id))
|
||||
self.gen.fact(fn.requirement_has_weight(member_id, requirement_weight))
|
||||
requirement_weight += 1
|
||||
|
||||
def external_packages(self):
|
||||
"""Facts on external packages, as read from packages.yaml"""
|
||||
|
||||
@@ -464,12 +464,12 @@ requirement_group_satisfied(Package, X) :-
|
||||
requirement_policy(Package, X, "one_of"),
|
||||
requirement_group(Package, X).
|
||||
|
||||
requirement_weight(Package, Group, W) :-
|
||||
requirement_weight(Package, W) :-
|
||||
condition_holds(Y),
|
||||
requirement_has_weight(Y, W),
|
||||
requirement_group_member(Y, Package, Group),
|
||||
requirement_policy(Package, Group, "one_of"),
|
||||
requirement_group_satisfied(Package, Group).
|
||||
requirement_group_member(Y, Package, X),
|
||||
requirement_policy(Package, X, "one_of"),
|
||||
requirement_group_satisfied(Package, X).
|
||||
|
||||
requirement_group_satisfied(Package, X) :-
|
||||
1 { condition_holds(Y) : requirement_group_member(Y, Package, X) } ,
|
||||
@@ -477,16 +477,16 @@ requirement_group_satisfied(Package, X) :-
|
||||
requirement_policy(Package, X, "any_of"),
|
||||
requirement_group(Package, X).
|
||||
|
||||
requirement_weight(Package, Group, W) :-
|
||||
requirement_weight(Package, W) :-
|
||||
W = #min {
|
||||
Z : requirement_has_weight(Y, Z), condition_holds(Y), requirement_group_member(Y, Package, Group);
|
||||
Z : requirement_has_weight(Y, Z), condition_holds(Y), requirement_group_member(Y, Package, X);
|
||||
% We need this to avoid an annoying warning during the solve
|
||||
% concretize.lp:1151:5-11: info: tuple ignored:
|
||||
% #sup@73
|
||||
10000
|
||||
},
|
||||
requirement_policy(Package, Group, "any_of"),
|
||||
requirement_group_satisfied(Package, Group).
|
||||
requirement_policy(Package, X, "any_of"),
|
||||
requirement_group_satisfied(Package, X).
|
||||
|
||||
error(2, "Cannot satisfy the requirements in packages.yaml for the '{0}' package. You may want to delete them to proceed with concretization. To check where the requirements are defined run 'spack config blame packages'", Package) :-
|
||||
activate_requirement_rules(Package),
|
||||
@@ -1139,8 +1139,8 @@ opt_criterion(75, "requirement weight").
|
||||
#minimize{ 0@275: #true }.
|
||||
#minimize{ 0@75: #true }.
|
||||
#minimize {
|
||||
Weight@75+Priority,Package,Group
|
||||
: requirement_weight(Package, Group, Weight),
|
||||
Weight@75+Priority
|
||||
: requirement_weight(Package, Weight),
|
||||
build_priority(Package, Priority)
|
||||
}.
|
||||
|
||||
|
||||
@@ -51,7 +51,9 @@ def specs_as_constraints(self):
|
||||
constraints = []
|
||||
for item in self.specs_as_yaml_list:
|
||||
if isinstance(item, dict): # matrix of specs
|
||||
constraints.extend(_expand_matrix_constraints(item))
|
||||
expanded = _expand_matrix_constraints(item)
|
||||
for e in expanded:
|
||||
constraints.append([Spec(x) for x in e])
|
||||
else: # individual spec
|
||||
constraints.append([Spec(item)])
|
||||
self._constraints = constraints
|
||||
@@ -62,13 +64,11 @@ def specs_as_constraints(self):
|
||||
def specs(self):
|
||||
if self._specs is None:
|
||||
specs = []
|
||||
# This could be slightly faster done directly from yaml_list,
|
||||
# but this way is easier to maintain.
|
||||
for constraint_list in self.specs_as_constraints:
|
||||
spec = constraint_list[0].copy()
|
||||
for const in constraint_list[1:]:
|
||||
spec.constrain(const)
|
||||
specs.append(spec)
|
||||
for item in self.specs_as_yaml_list:
|
||||
if isinstance(item, dict): # matrix of specs
|
||||
specs.extend([Spec(" ".join(x)) for x in _expand_matrix_constraints(item)])
|
||||
else: # individual spec
|
||||
specs.append(Spec(item))
|
||||
self._specs = specs
|
||||
|
||||
return self._specs
|
||||
@@ -193,11 +193,7 @@ def _expand_matrix_constraints(matrix_config):
|
||||
for combo in itertools.product(*expanded_rows):
|
||||
# Construct a combined spec to test against excludes
|
||||
flat_combo = [constraint for constraint_list in combo for constraint in constraint_list]
|
||||
flat_combo = [Spec(x) for x in flat_combo]
|
||||
|
||||
test_spec = flat_combo[0].copy()
|
||||
for constraint in flat_combo[1:]:
|
||||
test_spec.constrain(constraint)
|
||||
test_spec = Spec(" ".join(flat_combo))
|
||||
|
||||
# Abstract variants don't have normal satisfaction semantics
|
||||
# Convert all variants to concrete types.
|
||||
@@ -213,7 +209,7 @@ def _expand_matrix_constraints(matrix_config):
|
||||
continue
|
||||
|
||||
if sigil:
|
||||
flat_combo[0] = Spec(sigil + str(flat_combo[0]))
|
||||
flat_combo[0] = sigil + flat_combo[0]
|
||||
|
||||
# Add to list of constraints
|
||||
results.append(flat_combo)
|
||||
|
||||
@@ -14,13 +14,7 @@
|
||||
|
||||
maintainers = spack.main.SpackCommand("maintainers")
|
||||
|
||||
MAINTAINED_PACKAGES = [
|
||||
"maintainers-1",
|
||||
"maintainers-2",
|
||||
"maintainers-3",
|
||||
"py-extension1",
|
||||
"py-extension2",
|
||||
]
|
||||
MAINTAINED_PACKAGES = ["maintainers-1", "maintainers-2", "maintainers-3", "py-extension1"]
|
||||
|
||||
|
||||
def split(output):
|
||||
@@ -59,9 +53,6 @@ def test_all(mock_packages, capfd):
|
||||
"pradyunsg,",
|
||||
"user1,",
|
||||
"user2",
|
||||
"py-extension2:",
|
||||
"adamjstewart,",
|
||||
"pradyunsg",
|
||||
]
|
||||
|
||||
with capfd.disabled():
|
||||
@@ -78,11 +69,9 @@ def test_all_by_user(mock_packages, capfd):
|
||||
out = split(maintainers("--all", "--by-user"))
|
||||
assert out == [
|
||||
"adamjstewart:",
|
||||
"py-extension1,",
|
||||
"py-extension2",
|
||||
"py-extension1",
|
||||
"pradyunsg:",
|
||||
"py-extension1,",
|
||||
"py-extension2",
|
||||
"py-extension1",
|
||||
"user0:",
|
||||
"maintainers-3",
|
||||
"user1:",
|
||||
|
||||
@@ -413,18 +413,3 @@ def test_incompatible_virtual_requirements_raise(concretize_scope, mock_packages
|
||||
spec = Spec("callpath ^zmpi")
|
||||
with pytest.raises(UnsatisfiableSpecError):
|
||||
spec.concretize()
|
||||
|
||||
|
||||
def test_non_existing_variants_under_all(concretize_scope, mock_packages):
|
||||
if spack.config.get("config:concretizer") == "original":
|
||||
pytest.skip("Original concretizer does not support configuration" " requirements")
|
||||
conf_str = """\
|
||||
packages:
|
||||
all:
|
||||
require:
|
||||
- any_of: ["~foo", "@:"]
|
||||
"""
|
||||
update_packages_config(conf_str)
|
||||
|
||||
spec = Spec("callpath ^zmpi").concretized()
|
||||
assert "~foo" not in spec
|
||||
|
||||
@@ -75,8 +75,8 @@ def test_env_change_spec(tmpdir, mock_packages, config):
|
||||
- desired_specs: ["mpileaks@2.1"]
|
||||
specs:
|
||||
- matrix:
|
||||
- [$compilers]
|
||||
- [$desired_specs]
|
||||
- [$compilers]
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -61,25 +61,25 @@ def test_spec_list_expansions(self):
|
||||
@pytest.mark.parametrize(
|
||||
"specs,expected",
|
||||
[
|
||||
# Constraints are ordered randomly
|
||||
# Constraints are ordered carefully to apply to appropriate node
|
||||
(
|
||||
[
|
||||
{
|
||||
"matrix": [
|
||||
["^zmpi"],
|
||||
["%gcc@4.5.0"],
|
||||
["hypre", "libelf"],
|
||||
["~shared"],
|
||||
["cflags=-O3", 'cflags="-g -O0"'],
|
||||
["^foo"],
|
||||
["^zmpi"],
|
||||
["%gcc@4.5.0"],
|
||||
["cflags=-O3", 'cflags="-g -O0"'],
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
"hypre cflags=-O3 ~shared %gcc@4.5.0 ^foo ^zmpi",
|
||||
'hypre cflags="-g -O0" ~shared %gcc@4.5.0 ^foo ^zmpi',
|
||||
"libelf cflags=-O3 ~shared %gcc@4.5.0 ^foo ^zmpi",
|
||||
'libelf cflags="-g -O0" ~shared %gcc@4.5.0 ^foo ^zmpi',
|
||||
"hypre ~shared ^foo ^zmpi cflags=-O3 %gcc@4.5.0",
|
||||
'hypre ~shared ^foo ^zmpi cflags="-g -O0" %gcc@4.5.0',
|
||||
"libelf ~shared ^foo ^zmpi cflags=-O3 %gcc@4.5.0",
|
||||
'libelf ~shared ^foo ^zmpi cflags="-g -O0" %gcc@4.5.0',
|
||||
],
|
||||
),
|
||||
# A constraint affects both the root and a dependency
|
||||
|
||||
@@ -15,12 +15,11 @@ class Atmi(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/atmi"
|
||||
git = "https://github.com/RadeonOpenCompute/atmi.git"
|
||||
url = "https://github.com/RadeonOpenCompute/atmi/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/atmi/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
|
||||
version("5.4.3", sha256="243aae6614e5bd136a099102957a6d65a01434b620291349613ad63701868ef8")
|
||||
version("5.4.0", sha256="b5cce10d7099fecbb40a0d9c2f29a7675315471fe145212b375e37e4c8ba5618")
|
||||
version("5.3.3", sha256="cc1144e4939cea2944f6c72a21406b9dc5b56d933696494074c280df7469834a")
|
||||
version("5.3.0", sha256="dffc0eb0bc1617843e7f728dbd6c8b12326c5c8baa34369aa267aab40f5deb6a")
|
||||
@@ -133,7 +132,6 @@ class Atmi(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("comgr@" + ver, type="link", when="@" + ver)
|
||||
depends_on("hsa-rocr-dev@" + ver, type="link", when="@" + ver)
|
||||
|
||||
@@ -14,7 +14,7 @@ class Comgr(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/ROCm-CompilerSupport"
|
||||
git = "https://github.com/RadeonOpenCompute/ROCm-CompilerSupport.git"
|
||||
url = "https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath", "haampie")
|
||||
@@ -22,7 +22,6 @@ class Comgr(CMakePackage):
|
||||
|
||||
version("master", branch="amd-stg-open")
|
||||
|
||||
version("5.4.3", sha256="8af18035550977fe0aa9cca8dfacbe65fe292e971de5a0e160710bafda05a81f")
|
||||
version("5.4.0", sha256="f4b83b27ff6195679d695c3f41fa25456e9c50bae6d978f46d3541b472aef757")
|
||||
version("5.3.3", sha256="6a4ef69e672a077b5909977248445f0eedf5e124af9812993a4d444be030c78b")
|
||||
version("5.3.0", sha256="072f849d79476d87d31d62b962e368762368d540a9da02ee2675963dc4942b2c")
|
||||
@@ -145,7 +144,6 @@ class Comgr(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
# llvm libs are linked statically, so this *could* be a build dep
|
||||
|
||||
@@ -23,7 +23,6 @@ class Cp2k(MakefilePackage, CudaPackage):
|
||||
|
||||
maintainers("dev-zero")
|
||||
|
||||
version("2023.1", sha256="dff343b4a80c3a79363b805429bdb3320d3e1db48e0ff7d20a3dfd1c946a51ce")
|
||||
version("2022.2", sha256="1a473dea512fe264bb45419f83de432d441f90404f829d89cbc3a03f723b8354")
|
||||
version("2022.1", sha256="2c34f1a7972973c62d471cd35856f444f11ab22f2ff930f6ead20f3454fd228b")
|
||||
version("9.1", sha256="fedb4c684a98ad857cd49b69a3ae51a73f85a9c36e9cb63e3b02320c74454ce6")
|
||||
@@ -152,12 +151,10 @@ class Cp2k(MakefilePackage, CudaPackage):
|
||||
depends_on("libxc@4.0.3:4", when="@6.0:6.9", type="build")
|
||||
depends_on("libxc@4.0.3:4", when="@7.0:8.1")
|
||||
depends_on("libxc@5.1.3:5.1", when="@8.2:8")
|
||||
depends_on("libxc@5.1.7:5.1", when="@9:2022")
|
||||
depends_on("libxc@6:6.1", when="@2023:")
|
||||
depends_on("libxc@5.1.7:5.1", when="@9:")
|
||||
|
||||
with when("+mpi"):
|
||||
depends_on("mpi@2:")
|
||||
depends_on("mpi@3:", when="@2023.1:")
|
||||
depends_on("scalapack")
|
||||
|
||||
with when("+cosma"):
|
||||
@@ -324,13 +321,10 @@ def edit(self, spec, prefix):
|
||||
"-I{0}".format(fftw_header_dir),
|
||||
]
|
||||
|
||||
# CP2K requires MPI 3 starting at version 2023.1
|
||||
# and __MPI_VERSION is not supported anymore.
|
||||
if "@:2022.2" in spec:
|
||||
if "^mpi@3:" in spec:
|
||||
cppflags.append("-D__MPI_VERSION=3")
|
||||
elif "^mpi@2:" in spec:
|
||||
cppflags.append("-D__MPI_VERSION=2")
|
||||
if "^mpi@3:" in spec:
|
||||
cppflags.append("-D__MPI_VERSION=3")
|
||||
elif "^mpi@2:" in spec:
|
||||
cppflags.append("-D__MPI_VERSION=2")
|
||||
|
||||
cflags = optimization_flags[self.spec.compiler.name][:]
|
||||
cxxflags = optimization_flags[self.spec.compiler.name][:]
|
||||
|
||||
@@ -28,7 +28,6 @@ def url_for_version(self, version):
|
||||
|
||||
version("master", branch="main")
|
||||
|
||||
version("5.4.3", sha256="71d9668619ab57ec8a4564d11860438c5aad5bd161a3e58fbc49555fbd59182d")
|
||||
version("5.4.0", sha256="46a1579310b3ab9dc8948d0fb5bed4c6b312f158ca76967af7ab69e328d43138")
|
||||
version("5.3.3", sha256="f8133a5934f9c53b253d324876d74f08a19e2f5b073bc94a62fe64b0d2183a18")
|
||||
version("5.3.0", sha256="2bf14116b5e2270928265f5d417b3d0f0f2e13cbc8ec5eb8c80d4d4a58ff7e94")
|
||||
@@ -143,7 +142,6 @@ def url_for_version(self, version):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
depends_on("hsakmt-roct@" + ver, when="@" + ver)
|
||||
@@ -166,7 +164,6 @@ def url_for_version(self, version):
|
||||
|
||||
# Add opencl sources thru the below
|
||||
for d_version, d_shasum in [
|
||||
("5.4.3", "b0f8339c844a2e62773bd85cd1e7c5ecddfe71d7c8e8d604e1a1d60900c30873"),
|
||||
("5.4.0", "a294639478e76c75dac0e094b418f9bd309309b07faf6af126cdfad9aab3c5c7"),
|
||||
("5.3.3", "cab394e6ef16c35bab8de29a66b96a7dc0e7d1297aaacba3718fa1d369233c9f"),
|
||||
("5.3.0", "d251e2efe95dc12f536ce119b2587bed64bbda013969fa72be58062788044a9e"),
|
||||
|
||||
@@ -18,7 +18,7 @@ class Hip(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/HIP"
|
||||
git = "https://github.com/ROCm-Developer-Tools/HIP.git"
|
||||
url = "https://github.com/ROCm-Developer-Tools/HIP/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCm-Developer-Tools/HIP/archive/rocm-5.3.3.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath", "haampie")
|
||||
@@ -26,7 +26,6 @@ class Hip(CMakePackage):
|
||||
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="23e51d3af517cd63019f8d199e46b84d5a18251d148e727f3985e8d99ccb0e58")
|
||||
version("5.4.0", sha256="e290f835d69ef23e8b5833a7e616b0a989ff89ada4412d9742430819546efc6c")
|
||||
version("5.3.3", sha256="51d4049dc37d261afb9e1270e60e112708ff06b470721ff21023e16e040e4403")
|
||||
version("5.3.0", sha256="05225832fb5a4d24f49a773ac27e315239943a6f24291a50d184e2913f2cdbe0")
|
||||
@@ -163,7 +162,6 @@ class Hip(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hsakmt-roct@" + ver, when="@" + ver)
|
||||
depends_on("hsa-rocr-dev@" + ver, when="@" + ver)
|
||||
@@ -182,7 +180,6 @@ class Hip(CMakePackage):
|
||||
|
||||
# Add hip-amd sources thru the below
|
||||
for d_version, d_shasum in [
|
||||
("5.4.3", "475edce0f29c4ccd82e5ee21d4cce4836f2b1e3b13cbc891475e423d38a0ebb9"),
|
||||
("5.4.0", "c4b79738eb6e669160382b6c47d738ac59bd493fc681ca400ff012a2e8212955"),
|
||||
("5.3.3", "36acce92af39b0fa06002e164f5a7f5a9c7daa19bf96645361325775a325499d"),
|
||||
("5.3.0", "81e9bd5209a7b400c986f9bf1d7079bcf7169bbcb06fc4fe843644559a4d612e"),
|
||||
@@ -209,7 +206,6 @@ class Hip(CMakePackage):
|
||||
)
|
||||
# Add opencl sources thru the below
|
||||
for d_version, d_shasum in [
|
||||
("5.4.3", "b0f8339c844a2e62773bd85cd1e7c5ecddfe71d7c8e8d604e1a1d60900c30873"),
|
||||
("5.4.0", "a294639478e76c75dac0e094b418f9bd309309b07faf6af126cdfad9aab3c5c7"),
|
||||
("5.3.3", "cab394e6ef16c35bab8de29a66b96a7dc0e7d1297aaacba3718fa1d369233c9f"),
|
||||
("5.3.0", "d251e2efe95dc12f536ce119b2587bed64bbda013969fa72be58062788044a9e"),
|
||||
@@ -235,7 +231,6 @@ class Hip(CMakePackage):
|
||||
when="@{0}".format(d_version),
|
||||
)
|
||||
for d_version, d_shasum in [
|
||||
("5.4.3", "71d9668619ab57ec8a4564d11860438c5aad5bd161a3e58fbc49555fbd59182d"),
|
||||
("5.4.0", "46a1579310b3ab9dc8948d0fb5bed4c6b312f158ca76967af7ab69e328d43138"),
|
||||
("5.3.3", "f8133a5934f9c53b253d324876d74f08a19e2f5b073bc94a62fe64b0d2183a18"),
|
||||
("5.3.0", "2bf14116b5e2270928265f5d417b3d0f0f2e13cbc8ec5eb8c80d4d4a58ff7e94"),
|
||||
|
||||
@@ -14,7 +14,7 @@ class Hipblas(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/hipBLAS"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/hipBLAS.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipBLAS/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipBLAS/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath", "haampie")
|
||||
@@ -23,7 +23,6 @@ class Hipblas(CMakePackage):
|
||||
version("develop", branch="develop")
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="5acac147aafc15c249c2f24c19459135ed68b506403aa92e602b67cfc10c38b7")
|
||||
version("5.4.0", sha256="341d61adff8d08cbf70aa07bd11a088bcd0687fc6156870a1aee9eff74f3eb4f")
|
||||
version("5.3.3", sha256="1ce093fc6bc021ad4fe0b0b93f9501038a7a5a16b0fd4fc485d65cbd220a195e")
|
||||
version("5.3.0", sha256="873d55749479873994679840906c4257316dfb09a6200411204ad4a8c2480565")
|
||||
@@ -156,7 +155,6 @@ def check(self):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocsolver@" + ver, when="@" + ver)
|
||||
|
||||
@@ -11,12 +11,11 @@ class Hipcub(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/hipCUB"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/hipCUB.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipCUB/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipCUB/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
|
||||
version("5.4.3", sha256="cf528d9acb4f9b9c3aad439ae76bfc3d02be6e7a74d96099544e5d54e1a23675")
|
||||
version("5.4.0", sha256="78db2c2ea466a4c5d84beedc000ae934f6d0ff1793eae90bb8d02b2dbff8932c")
|
||||
version("5.3.3", sha256="b4fc3c05892729873dc098f111c31f83af7d33da572bdb7d87de100d4c238e6d")
|
||||
version("5.3.0", sha256="4016cfc240b3cc1a97b549ecc4a5b76369610d46247661834630846391e5fad2")
|
||||
@@ -130,7 +129,6 @@ class Hipcub(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocprim@" + ver, when="@" + ver)
|
||||
|
||||
@@ -16,14 +16,13 @@ class Hipfft(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/hipFFT"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/hipFFT.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipfft/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipfft/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("renjithravindrankannath", "srekolam")
|
||||
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="ae37f40b6019a11f10646ef193716836f366d269eab3c5cc2ed09af85355b945")
|
||||
version("5.4.0", sha256="d0a8e790182928b3d19774b8db1eece9b881a422f6a7055c051b12739fded624")
|
||||
version("5.3.3", sha256="fd1662cd5b1e1bce9db53b320c0fe614179cd196251efc2ef3365d38922b5cdc")
|
||||
version("5.3.0", sha256="ebbe2009b86b688809b6b4d5c3929fc589db455218d54a37790f21339147c5df")
|
||||
@@ -99,7 +98,6 @@ class Hipfft(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
|
||||
@@ -11,12 +11,11 @@ class Hipfort(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/hipfort"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/hipfort.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipfort/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipfort/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath")
|
||||
|
||||
version("5.4.3", sha256="1954a1cba351d566872ced5549b2ced7ab6332221e2b98dba3c07180dce8f173")
|
||||
version("5.4.0", sha256="a781bc6d1dbb508a4bd6cc3df931696fac6c6361d4fd35efb12c9a04a72e112c")
|
||||
version("5.3.3", sha256="593be86502578b68215ffe767c26849fd27d4dbd92c8e76762275805f99e64f5")
|
||||
version("5.3.0", sha256="9e2aa142de45b2d2c29449d6f82293fb62844d511fbf51fa597845ba05c700fa")
|
||||
@@ -118,7 +117,6 @@ class Hipfort(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, type="build", when="@" + ver)
|
||||
|
||||
|
||||
@@ -12,14 +12,13 @@ class HipifyClang(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/HIPIFY"
|
||||
git = "https://github.com/ROCm-Developer-Tools/HIPIFY.git"
|
||||
url = "https://github.com/ROCm-Developer-Tools/HIPIFY/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCm-Developer-Tools/HIPIFY/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="79e27bd6c0a28e6a62b02dccc0b5d88a81f69fe58487e83f3b7ab47d6b64341b")
|
||||
version("5.4.0", sha256="9f51eb280671ae7f7e14eb593ee3ef099899221c4bdccfbdb7a78681ad17f37f")
|
||||
version("5.3.3", sha256="9d08e2896e52c10a0a189a5407567043f2510adc7bf618591c97a22a23699691")
|
||||
version("5.3.0", sha256="7674900d2b9319d91fa8f469252c5acb5bedf339142417cdcb64f33ee8482e00")
|
||||
@@ -134,7 +133,6 @@ class HipifyClang(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
depends_on("llvm-amdgpu@" + ver, when="@" + ver)
|
||||
|
||||
@@ -18,7 +18,7 @@ class Hipsolver(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/hipSOLVER"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/hipSOLVER.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipSOLVER/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipSOLVER/archive/rocm-5.3.3.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath")
|
||||
@@ -27,7 +27,6 @@ class Hipsolver(CMakePackage):
|
||||
version("develop", branch="develop")
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="02a1bffecc494393f49f97174db7d2c101db557d32404923a44520876e682e3a")
|
||||
version("5.4.0", sha256="d53d81c55b458ba5e6ea0ec6bd24bcc79ab06789730391da82d8c33b936339d9")
|
||||
version("5.3.3", sha256="f5a487a1c7225ab748996ac4d837ac7ab26b43618c4ed97a124f8fac1d67786e")
|
||||
version("5.3.0", sha256="6e920a59ddeefd52c9a6d164c33bc097726529e1ede3c417c711697956655b15")
|
||||
@@ -87,7 +86,6 @@ class Hipsolver(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocblas@" + ver, when="@" + ver)
|
||||
|
||||
@@ -14,13 +14,12 @@ class Hipsparse(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/hipSPARSE"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/hipSPARSE.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipSPARSE/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/hipSPARSE/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath", "haampie")
|
||||
libraries = ["libhipsparse"]
|
||||
|
||||
version("5.4.3", sha256="b373eccd03679a13fab4e740fc780da25cbd598abca3a1e5e3613ae14954f9db")
|
||||
version("5.4.0", sha256="47420d38483c8124813b744971e428a0352c83d9b62a5a50f74ffa8f9b785b20")
|
||||
version("5.3.3", sha256="d96d0e47594ab12e8c380da2300704c105736a0771940d7d2fae666f2869e457")
|
||||
version("5.3.0", sha256="691b32b916952ed9af008aa29f60cc190322b73cfc098bb2eda3ff68c89c7b35")
|
||||
@@ -133,11 +132,33 @@ class Hipsparse(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocsparse@" + ver, when="@" + ver)
|
||||
for ver in [
|
||||
"3.8.0",
|
||||
"3.9.0",
|
||||
"3.10.0",
|
||||
"4.0.0",
|
||||
"4.1.0",
|
||||
"4.2.0",
|
||||
"4.3.0",
|
||||
"4.3.1",
|
||||
"4.5.0",
|
||||
"4.5.2",
|
||||
"5.0.0",
|
||||
"5.0.2",
|
||||
"5.1.0",
|
||||
"5.1.3",
|
||||
"5.2.0",
|
||||
"5.2.1",
|
||||
"5.2.3",
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
]:
|
||||
depends_on("rocprim@" + ver, when="@" + ver)
|
||||
|
||||
patch("e79985dccde22d826aceb3badfc643a3227979d2.patch", when="@3.5.0")
|
||||
patch("530047af4a0f437dafc02f76b3a17e3b1536c7ec.patch", when="@3.5.0")
|
||||
|
||||
@@ -166,14 +166,14 @@ class Hpctoolkit(AutotoolsPackage):
|
||||
|
||||
patch(
|
||||
"https://gitlab.com/hpctoolkit/hpctoolkit/-/commit/511afd95b01d743edc5940c84e0079f462b2c23e.patch",
|
||||
sha256="c8371b929f45dafae37d2ef17880fcfb86de893beebaec501a282bc04b61ef64",
|
||||
sha256="8da18df88a80847c092da8d0892de51ea2bf2523124148b6305ab8717707d897",
|
||||
when="@2019.08.01:2021.03 %gcc@11.0:",
|
||||
)
|
||||
|
||||
# Update configure for rocm 5.3.0
|
||||
patch(
|
||||
"https://gitlab.com/hpctoolkit/hpctoolkit/-/commit/411d62544717873432c49ef45c7cb99cc5de2fb8.patch",
|
||||
sha256="7eb3a21c9bf9e1b65ef0375609665d36e5f7a74c664eb474cba728faada9baeb",
|
||||
sha256="484045891a665cdba3b0f141540c89f0d691ed32c5912ef62a93670d44c2786c",
|
||||
when="@2022.04:2022.10 +rocm ^hip@5.3.0:",
|
||||
)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class HsaRocrDev(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/ROCR-Runtime"
|
||||
git = "https://github.com/RadeonOpenCompute/ROCR-Runtime.git"
|
||||
url = "https://github.com/RadeonOpenCompute/ROCR-Runtime/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/ROCR-Runtime/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath", "haampie")
|
||||
@@ -25,7 +25,6 @@ class HsaRocrDev(CMakePackage):
|
||||
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="a600eed848d47a7578c60da7e64eb92f29bbce2ec67932b251eafd4c2974cb67")
|
||||
version("5.4.0", sha256="476cd18500cc227d01f6b44c00c7adc8574eb8234b6b4daefc219650183fa090")
|
||||
version("5.3.3", sha256="aca88d90f169f35bd65ce3366b8670c7cdbe3abc0a2056eab805d0192cfd7130")
|
||||
version("5.3.0", sha256="b51dbedbe73390e0be748b92158839c82d7fa0e514fede60aa7696dc498facf0")
|
||||
@@ -147,7 +146,6 @@ class HsaRocrDev(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
depends_on("hsakmt-roct@" + ver, when="@" + ver)
|
||||
|
||||
@@ -14,14 +14,13 @@ class HsakmtRoct(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface"
|
||||
git = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git"
|
||||
url = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "arjun-raj-kuppala", "renjithravindrankannath")
|
||||
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="3799abbe7177fbff3b304e2a363e2b39e8864f8650ae569b2b88b9291f9a710c")
|
||||
version("5.4.0", sha256="690a78a6e67ae2b3f518dbc4a1e267237d6a342e1063b31eef297f4a04d780f8")
|
||||
version("5.3.3", sha256="b5350de915997ed48072b37a21c2c44438028255f6cc147c25a196ad383c52e7")
|
||||
version("5.3.0", sha256="c150be3958fd46e57bfc9db187819ec34b1db8f0cf9b69f8c3f8915001800ab8")
|
||||
|
||||
@@ -15,14 +15,14 @@ class LlvmAmdgpu(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/llvm-project"
|
||||
git = "https://github.com/RadeonOpenCompute/llvm-project.git"
|
||||
url = "https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
generator = "Ninja"
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath", "haampie")
|
||||
|
||||
version("master", branch="amd-stg-open")
|
||||
version("5.4.3", sha256="a844d3cc01613f6284a75d44db67c495ac1e9b600eacbb1eb13d2649f5d5404d")
|
||||
|
||||
version("5.4.0", sha256="ff54f45a17723892cd775c1eaff9e5860527fcfd33d98759223c70e3362335bf")
|
||||
version("5.3.3", sha256="5296d5e474811c7d1e456cb6d5011db248b79b8d0512155e8a6c2aa5b5f12d38")
|
||||
version("5.3.0", sha256="4e3fcddb5b8ea8dcaa4417e0e31a9c2bbdc9e7d4ac3401635a636df32905c93e")
|
||||
@@ -170,7 +170,6 @@ class LlvmAmdgpu(CMakePackage):
|
||||
|
||||
# Add device libs sources so they can be an external LLVM project
|
||||
for d_version, d_shasum in [
|
||||
("5.4.3", "f4f7281f2cea6d268fcc3662b37410957d4f0bc23e0df9f60b12eb0fcdf9e26e"),
|
||||
("5.4.0", "d68813ded47179c39914c8d1b76af3dad8c714b10229d1e2246af67609473951"),
|
||||
("5.3.3", "963c9a0561111788b55a8c3b492e2a5737047914752376226c97a28122a4d768"),
|
||||
("5.3.0", "f7e1665a1650d3d0481bec68252e8a5e68adc2c867c63c570f6190a1d2fe735c"),
|
||||
|
||||
@@ -13,13 +13,12 @@ class Migraphx(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/AMDMIGraphX"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/AMDMIGraphX.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/AMDMIGraphX/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/AMDMIGraphX/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
libraries = ["libmigraphx"]
|
||||
|
||||
version("5.4.3", sha256="f83e7bbe5d6d0951fb2cf0abf7e8b3530e9a5e45f7cec6d760da055d6905d568")
|
||||
version("5.4.0", sha256="b6e7f4a1bf445ea0dae644ed5722369cde66fbee82a5917722f5d3f8c48b0a8c")
|
||||
version("5.3.3", sha256="91d91902bbedd5e1951a231e8e5c9a328360b128c731912ed17c8059df38e02a")
|
||||
version("5.3.0", sha256="d0b7283f42e03fb38b612868b8c94f46f27a6e0b019ae95fde5b9086582a1c69")
|
||||
@@ -155,7 +154,6 @@ def url_for_version(self, version):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
|
||||
@@ -14,13 +14,12 @@ class MiopenHip(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/MIOpen"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/MIOpen.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
libraries = ["libMIOpen"]
|
||||
|
||||
version("5.4.3", sha256="37ffe2ed3d7942da8ea2f6bdb85c7a2f58e3ccd31767db158a322769d3604efd")
|
||||
version("5.4.0", sha256="b4153791f9eeee4cbc5534bc6ad8b32c0947bcd38e08b77ebe144065a4fa5456")
|
||||
version("5.3.3", sha256="7efc98215d23a2caaf212378c37e9a6484f54a4ed3e9660719286e4f287d3715")
|
||||
version("5.3.0", sha256="c5819f593d71beeda2eb24b89182912240cc40f83b2b8f9de695a8e230aa4ea6")
|
||||
@@ -146,7 +145,6 @@ class MiopenHip(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
@@ -166,7 +164,6 @@ class MiopenHip(CMakePackage):
|
||||
|
||||
for ver in [
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocmlir@" + ver, when="@" + ver)
|
||||
depends_on("nlohmann-json", type="link")
|
||||
|
||||
@@ -14,13 +14,12 @@ class MiopenOpencl(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/MIOpen"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/MIOpen.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
libraries = ["libMIOpen"]
|
||||
|
||||
version("5.4.3", sha256="37ffe2ed3d7942da8ea2f6bdb85c7a2f58e3ccd31767db158a322769d3604efd")
|
||||
version("5.4.0", sha256="b4153791f9eeee4cbc5534bc6ad8b32c0947bcd38e08b77ebe144065a4fa5456")
|
||||
version("5.3.3", sha256="7efc98215d23a2caaf212378c37e9a6484f54a4ed3e9660719286e4f287d3715")
|
||||
version("5.3.0", sha256="c5819f593d71beeda2eb24b89182912240cc40f83b2b8f9de695a8e230aa4ea6")
|
||||
@@ -122,6 +121,27 @@ class MiopenOpencl(CMakePackage):
|
||||
|
||||
for ver in [
|
||||
"3.5.0",
|
||||
"3.7.0",
|
||||
"3.8.0",
|
||||
"3.9.0",
|
||||
"3.10.0",
|
||||
"4.0.0",
|
||||
"4.1.0",
|
||||
"4.2.0",
|
||||
"4.3.0",
|
||||
"4.3.1",
|
||||
"4.5.0",
|
||||
"4.5.2",
|
||||
"5.0.0",
|
||||
"5.0.2",
|
||||
"5.1.0",
|
||||
"5.1.3",
|
||||
"5.2.0",
|
||||
"5.2.1",
|
||||
"5.2.3",
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
]:
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
depends_on("rocm-opencl@" + ver, when="@" + ver)
|
||||
@@ -147,10 +167,7 @@ class MiopenOpencl(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
depends_on("rocm-opencl@" + ver, when="@" + ver)
|
||||
depends_on("miopengemm@" + ver, when="@" + ver)
|
||||
|
||||
for ver in [
|
||||
@@ -166,7 +183,6 @@ class MiopenOpencl(CMakePackage):
|
||||
|
||||
for ver in [
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("nlohmann-json", type="link")
|
||||
depends_on("rocblas", type="link")
|
||||
|
||||
@@ -14,7 +14,7 @@ class Miopengemm(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/MIOpenGEMM"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/MIOpenGEMM.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/MIOpenGEMM/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/MIOpenGEMM/archive/rocm-5.3.3.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
@@ -26,7 +26,6 @@ def url_for_version(self, version):
|
||||
url = "https://github.com/ROCmSoftwarePlatform/MIOpenGEMM/archive/rocm-{0}.tar.gz"
|
||||
return url.format(version)
|
||||
|
||||
version("5.4.3", sha256="5051051cab60ca0f6347a981da6c9dbeddf8b0de698d4e5409a0db0c622acafc")
|
||||
version("5.4.0", sha256="a39faa8f4ab73e0cd6505a667bf10c07f93b9612af0711405c65043c4755129d")
|
||||
version("5.3.3", sha256="4a9c92bebe59bf6e08bd48861b68b1801d9e8dc406250dc8637d36614a5884c8")
|
||||
version("5.3.0", sha256="7e299daaca8e514bdb5b5efd9d9d3fc5cbfda68ad0117fe7cdbbf946b3f842cd")
|
||||
@@ -139,7 +138,6 @@ def url_for_version(self, version):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-cmake@" + ver, type="build", when="@" + ver)
|
||||
depends_on("rocm-opencl@" + ver, when="@" + ver)
|
||||
|
||||
@@ -25,7 +25,6 @@ def url_for_version(self, version):
|
||||
url = "https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX/archive/rocm-{0}.tar.gz"
|
||||
return url.format(version)
|
||||
|
||||
version("5.4.3", sha256="4da82974962a70c326ce2427c664517b1efdff436efe222e6bc28817c222a082")
|
||||
version("5.4.0", sha256="caa28a30972704ddbf1a87cefdc0b0a35381d369961c43973d473a1573bd35cc")
|
||||
version("5.3.3", sha256="378fafcb327e17e0e11fe1d1029d1740d84aaef0fd59614ed7376499b3d716f6")
|
||||
version("5.3.0", sha256="58e68f1c78bbe5694e42bf61be177f9e94bfd3e0c113ec6284493c8684836c58")
|
||||
@@ -235,7 +234,6 @@ def patch(self):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-opencl@" + ver, when="@" + ver)
|
||||
depends_on("miopengemm@" + ver, when="@" + ver)
|
||||
@@ -254,10 +252,9 @@ def patch(self):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("miopen-hip@" + ver, when="@" + ver)
|
||||
for ver in ["5.3.3", "5.4.0", "5.4.3"]:
|
||||
for ver in ["5.3.3", "5.4.0"]:
|
||||
depends_on("migraphx@" + ver, when="@" + ver)
|
||||
|
||||
def flag_handler(self, name, flags):
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/libhdf5/hdf5internal.c
|
||||
+++ b/libhdf5/hdf5internal.c
|
||||
@@ -163,7 +163,7 @@ find_var_dim_max_length(NC_GRP_INFO_T *grp, int varid, int dimid,
|
||||
if (var->dimids[d] == dimid)
|
||||
*maxlen = *maxlen > h5dimlen[d] ? *maxlen : h5dimlen[d];
|
||||
|
||||
-#ifdef USE_PARALLEL
|
||||
+#ifdef USE_PARALLEL4
|
||||
/* If we are doing parallel I/O in collective mode (with
|
||||
* either pnetcdf or HDF5), then communicate with all
|
||||
* other tasks in the collective and find out which has
|
||||
@@ -68,9 +68,6 @@ class NetcdfC(AutotoolsPackage):
|
||||
# See https://github.com/Unidata/netcdf-c/pull/2293
|
||||
patch("4.8.1-no-strict-aliasing-config.patch", when="@4.8.1")
|
||||
|
||||
# See https://github.com/Unidata/netcdf-c/pull/2618
|
||||
patch("4.9.0-no-mpi-yes-pnetcdf.patch", when="@4.9.0: ~mpi+parallel-netcdf")
|
||||
|
||||
variant("mpi", default=True, description="Enable parallel I/O for netcdf-4")
|
||||
variant("parallel-netcdf", default=False, description="Enable parallel I/O for classic files")
|
||||
variant("hdf4", default=False, description="Enable HDF4 support")
|
||||
|
||||
@@ -49,8 +49,6 @@ class Orca(Package):
|
||||
)
|
||||
|
||||
depends_on("zstd", when="@:4.2.1", type="build")
|
||||
depends_on("libevent", type="run")
|
||||
depends_on("libpciaccess", type="run")
|
||||
|
||||
# Map Orca version with the required OpenMPI version
|
||||
openmpi_versions = {
|
||||
@@ -100,6 +98,3 @@ def setup_run_environment(self, env):
|
||||
# In 5.0.3-f.1 an RPATH is set to $ORGIN/../lib
|
||||
if not self.spec.satisfies("@5.0.3-f.1"):
|
||||
env.prepend_path("LD_LIBRARY_PATH", self.prefix.bin)
|
||||
env.prepend_path("LD_LIBRARY_PATH", self.spec["libevent"].prefix.lib)
|
||||
env.prepend_path("LD_LIBRARY_PATH", self.spec["libpciaccess"].prefix.lib)
|
||||
env.prepend_path("LD_LIBRARY_PATH", self.spec["openmpi"].prefix.lib)
|
||||
|
||||
@@ -14,7 +14,6 @@ class PyPytorchLightning(PythonPackage):
|
||||
|
||||
maintainers("adamjstewart")
|
||||
|
||||
version("1.9.2", sha256="e60303e258457ccf7ec37c46a616892691fe3fbb23ab12f5c02b8018f03bf223")
|
||||
version("1.9.1", sha256="45b1031f1bdf68d9350fa42e5ec01ff8492d5badda9685a2ae48e5fd8598510a")
|
||||
version("1.9.0", sha256="5b75fe936d16ef86dae22ea1cb0a73db281605cade682c0ef44e6508a99a0b37")
|
||||
version("1.8.6", sha256="c4af783579a1528e07f40dd9bd0128c162bbbcf74fe1ce4292fec63fa7e76ada")
|
||||
|
||||
@@ -16,13 +16,12 @@ class Rccl(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rccl"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rccl.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rccl/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rccl/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
libraries = ["librccl"]
|
||||
|
||||
version("5.4.3", sha256="a2524f602bd7b3b6afeb8ba9aff660216ee807fa836e46442d068b5ed5f51a4d")
|
||||
version("5.4.0", sha256="213f4f3d75389be588673e43f563e5c0d6908798228b0b6a71f27138fd4ed0c7")
|
||||
version("5.3.3", sha256="8995a2d010ad0748fc85ac06e8da7e8d110ba996db04d42b77526c9c059c05bb")
|
||||
version("5.3.0", sha256="51da5099fa58c2be882319cebe9ceabe2062feebcc0c5849e8c109030882c10a")
|
||||
@@ -140,7 +139,6 @@ class Rccl(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
@@ -169,7 +167,6 @@ class Rccl(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("numactl@2:", when="@" + ver)
|
||||
for ver in [
|
||||
@@ -185,7 +182,6 @@ class Rccl(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-smi-lib@" + ver, when="@" + ver)
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ def url_for_version(self, version):
|
||||
url = "https://github.com/RadeonOpenCompute/rdc/archive/rocm-{0}.tar.gz"
|
||||
return url.format(version)
|
||||
|
||||
version("5.4.3", sha256="c44f0b070b5650bc78e2eb968aae57a8ac1e1fd160e897055b79f3026c4fbad3")
|
||||
version("5.4.0", sha256="268aab43e31045443b08a21aee8750da4cf04750c6f419ec171ec704d377a4e4")
|
||||
version("5.3.3", sha256="1bf1a02f305e3a629801e62584116a34eafbd1b26627837a2a8c10550fcf611b")
|
||||
version("5.3.0", sha256="ce9c85dad8e0c0b21e8e5938bf16f86a62dc5f6ded5f453c61acd43666634d6b")
|
||||
@@ -129,7 +128,6 @@ def url_for_version(self, version):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-smi-lib@" + ver, type=("build", "link"), when="@" + ver)
|
||||
|
||||
@@ -144,7 +142,6 @@ def url_for_version(self, version):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hsa-rocr-dev@" + ver, when="@" + ver)
|
||||
|
||||
@@ -156,7 +153,7 @@ def patch(self):
|
||||
"CMakeLists.txt",
|
||||
string=True,
|
||||
)
|
||||
if self.spec.satisfies("@5.4.0:5.4"):
|
||||
if self.spec.satisfies("@5.4.0"):
|
||||
filter_file(
|
||||
"${ROCM_DIR}/${CMAKE_INSTALL_INCLUDEDIR}",
|
||||
"{0}/include".format(self.spec["rocm-smi-lib"].prefix),
|
||||
|
||||
@@ -18,13 +18,12 @@ class Rocalution(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocALUTION"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocALUTION.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocALUTION/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocALUTION/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath")
|
||||
libraries = ["librocalution_hip"]
|
||||
|
||||
version("5.4.3", sha256="39d00951a9b3cbdc4205a7e3ce75c026d9428c71c784815288c445f84a7f8a0e")
|
||||
version("5.4.0", sha256="dccf004434e0fee6d0c7bedd46827f5a2af0392bc4807a08403b130e461f55eb")
|
||||
version("5.3.3", sha256="3af022250bc25bebdee12bfb8fdbab4b60513b537b9fe15dfa82ded8850c5066")
|
||||
version("5.3.0", sha256="f623449789a5c9c9137ae51d4dbbee5c6940d8813826629cb4b7e84f07fab494")
|
||||
@@ -119,6 +118,25 @@ class Rocalution(CMakePackage):
|
||||
"3.5.0",
|
||||
"3.7.0",
|
||||
"3.8.0",
|
||||
"3.9.0",
|
||||
"3.10.0",
|
||||
"4.0.0",
|
||||
"4.1.0",
|
||||
"4.2.0",
|
||||
"4.3.0",
|
||||
"4.3.1",
|
||||
"4.5.0",
|
||||
"4.5.2",
|
||||
"5.0.0",
|
||||
"5.0.2",
|
||||
"5.1.0",
|
||||
"5.1.3",
|
||||
"5.2.0",
|
||||
"5.2.1",
|
||||
"5.2.3",
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocprim@" + ver, when="@" + ver)
|
||||
@@ -154,25 +172,12 @@ class Rocalution(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocprim@" + ver, when="@" + ver)
|
||||
for tgt in itertools.chain(["auto"], amdgpu_targets):
|
||||
rocblas_tgt = tgt if tgt != "gfx900:xnack-" else "gfx900"
|
||||
depends_on(
|
||||
"rocblas@{0} amdgpu_target={1}".format(ver, rocblas_tgt),
|
||||
when="@{0} amdgpu_target={1}".format(ver, tgt),
|
||||
)
|
||||
depends_on(
|
||||
"rocsparse@{0} amdgpu_target={1}".format(ver, tgt),
|
||||
when="@{0} amdgpu_target={1}".format(ver, tgt),
|
||||
)
|
||||
depends_on(
|
||||
"rocrand@{0} amdgpu_target={1}".format(ver, tgt),
|
||||
when="@{0} amdgpu_target={1}".format(ver, tgt),
|
||||
)
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
|
||||
depends_on("googletest@1.10.0:", type="test")
|
||||
# This fix is added to address the compilation failure and it is
|
||||
|
||||
@@ -13,7 +13,7 @@ class Rocblas(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocBLAS/"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocBLAS.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocBLAS/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocBLAS/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath", "haampie")
|
||||
@@ -22,7 +22,6 @@ class Rocblas(CMakePackage):
|
||||
version("develop", branch="develop")
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="d82cd334b7a9b40d16ec4f4bb1fb5662382dcbfc86ee5e262413ed63d9e6a701")
|
||||
version("5.4.0", sha256="261e05375024a01e68697c5d175210a07f0f5fc63a756234d996ddedffde78a2")
|
||||
version("5.3.3", sha256="62a3b5f415bd8e0dcd0d68233d379f1a928ec0349977c32b4eea72ae5004e805")
|
||||
version("5.3.0", sha256="8ea7269604cba949a6ea84b78dc92a44fa890427db88334da6358813f6512e34")
|
||||
@@ -172,7 +171,6 @@ def check(self):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("llvm-amdgpu@" + ver, type="build", when="@" + ver)
|
||||
@@ -214,7 +212,6 @@ def check(self):
|
||||
("@5.3.0", "b33ca97af456cda14f7b1ec9bcc8aeab3ed6dd08"),
|
||||
("@5.3.3", "006a5d653ce0d82fecb05d5e215d053749b57c04"),
|
||||
("@5.4.0", "5aec08937473b27865fa969bb38a83bcf9463c2b"),
|
||||
("@5.4.3", "5aec08937473b27865fa969bb38a83bcf9463c2b"),
|
||||
]:
|
||||
resource(
|
||||
name="Tensile",
|
||||
|
||||
@@ -13,13 +13,12 @@ class Rocfft(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocFFT/"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocFFT.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocfft/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocfft/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath", "haampie")
|
||||
libraries = ["librocfft"]
|
||||
|
||||
version("5.4.3", sha256="ed9664adc9825c237327497bc4b23f020d50be7645647f14a45f4d943dd506e7")
|
||||
version("5.4.0", sha256="d35a67332f4425fba1824eed78cf98d5c9a17a422614ff3f4cba2461df952336")
|
||||
version("5.3.3", sha256="678c18710578c1fb36a0009311bb79de7607c3468f9102cfba56a866ebb7ff78")
|
||||
version("5.3.0", sha256="d655c5541c4aff4267e80e36d002fc3a55c2f84a0ae8631197c12af3bf03fa7d")
|
||||
@@ -149,7 +148,6 @@ def check(self):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
@@ -159,7 +157,7 @@ def check(self):
|
||||
patch("0002-Fix-clients-fftw3-include-dirs-rocm-4.2.patch", when="@4.2.0:4.3.1")
|
||||
patch("0003-Fix-clients-fftw3-include-dirs-rocm-4.5.patch", when="@4.5.0:5.1")
|
||||
# Patch to add install prefix header location for sqlite for 5.4
|
||||
patch("0004-fix-missing-sqlite-include-paths.patch", when="@5.4.0:5.4")
|
||||
patch("0004-fix-missing-sqlite-include-paths.patch", when="@5.4.0")
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
env.set("CXX", self.spec["hip"].hipcc)
|
||||
|
||||
@@ -12,14 +12,13 @@ class RocmBandwidthTest(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/rocm_bandwidth_test"
|
||||
git = "https://github.com/RadeonOpenCompute/rocm_bandwidth_test.git"
|
||||
url = "https://github.com/RadeonOpenCompute/rocm_bandwidth_test/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/rocm_bandwidth_test/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="a2f5a75bf47db1e39a4626a9f5cd2d120bcafe56b1baf2455d794f7a4734993e")
|
||||
version("5.4.0", sha256="47a1ef92e565d5ce7a167cc1ebe3d4198cc04d598b259426245b8c11eb795677")
|
||||
version("5.3.3", sha256="2bc079297e639d45d57c8017f6f47bc44d4ed34613ec76c80574bb703d79b498")
|
||||
version("5.3.0", sha256="a97365c04d79663db7c85027c63a12d56356abc0a351697f49c2d82bf9ef8999")
|
||||
@@ -131,7 +130,6 @@ class RocmBandwidthTest(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
depends_on("hsa-rocr-dev@" + ver, when="@" + ver)
|
||||
|
||||
@@ -11,13 +11,12 @@ class RocmClangOcl(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/clang-ocl"
|
||||
git = "https://github.com/RadeonOpenCompute/clang-ocl.git"
|
||||
url = "https://github.com/RadeonOpenCompute/clang-ocl/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/clang-ocl/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="689e0354ea685bd488116de8eb902b902492e9ace184c3109b97b9a43f8b2d59")
|
||||
version("5.4.0", sha256="602f8fb1f36587543cc0ee95fd1938f8eeb03de79119101e128150332cc8d89c")
|
||||
version("5.3.3", sha256="549d5bf37507f67c5277abdeed4ec40b5d0edbfbb72907c685444c26b9ce6f8a")
|
||||
version("5.3.0", sha256="66b80ba050848ad921496bd894e740e66afad0ba1923b385f01f2eeae97999ad")
|
||||
@@ -129,7 +128,6 @@ class RocmClangOcl(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
|
||||
@@ -13,13 +13,13 @@ class RocmCmake(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/rocm-cmake"
|
||||
git = "https://github.com/RadeonOpenCompute/rocm-cmake.git"
|
||||
url = "https://github.com/RadeonOpenCompute/rocm-cmake/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/rocm-cmake/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
|
||||
version("master", branch="master")
|
||||
version("5.4.3", sha256="c185b3a10d191d73b76770ca0f9d6bdc355ee91fe0c9016a3779c9cfe042ba0f")
|
||||
|
||||
version("5.4.0", sha256="617faa9a1e51db3c7a59bd0393e054ab67e57be357d59cb0cd9b677f47824946")
|
||||
version("5.3.3", sha256="3e527f99db52e301ab4f1b994029585951e2ae685f0cdfb7b8529c72f4b77af4")
|
||||
version("5.3.0", sha256="659a8327f13e6786103dd562d3632e89a51244548fca081f46c753857cf09d04")
|
||||
|
||||
@@ -16,7 +16,7 @@ class RocmDbgapi(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/ROCdbgapi"
|
||||
git = "https://github.com/ROCm-Developer-Tools/ROCdbgapi.git"
|
||||
url = "https://github.com/ROCm-Developer-Tools/ROCdbgapi/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCm-Developer-Tools/ROCdbgapi/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
@@ -24,7 +24,6 @@ class RocmDbgapi(CMakePackage):
|
||||
|
||||
version("master", branch="amd-master")
|
||||
|
||||
version("5.4.3", sha256="d647c9121a50f2c54367c567d8f39a145cb135e1ceed931581659f57f49f61e5")
|
||||
version("5.4.0", sha256="895eb7056864daada40c3f9cd37645b0bdf4b6dc408b5f8cc974fc4cd9ab7ccb")
|
||||
version("5.3.3", sha256="3c81cb23fe671d391557a63c13b6a13d4dc367db5cb5de55592a6758284d8a3f")
|
||||
version("5.3.0", sha256="afffec78e34fe70952cd41efc3d7ba8f64e43acb2ad20aa35c9b8b591bed48ca")
|
||||
@@ -136,7 +135,6 @@ class RocmDbgapi(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
depends_on("hsa-rocr-dev@" + ver, type="build", when="@" + ver)
|
||||
|
||||
@@ -13,13 +13,12 @@ class RocmDebugAgent(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/rocr_debug_agent"
|
||||
git = "https://github.com/ROCm-Developer-Tools/rocr_debug_agent.git"
|
||||
url = "https://github.com/ROCm-Developer-Tools/rocr_debug_agent/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCm-Developer-Tools/rocr_debug_agent/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
libraries = ["librocm-debug-agent"]
|
||||
|
||||
version("5.4.3", sha256="b2c9ac198ea3cbf35e7e80f57c5d81c461de78b821d07b637ea4037a65cdf49f")
|
||||
version("5.4.0", sha256="94bef73ea0a6d385dab2292ee591ca1dc268a5585cf9f1b5092a1530949f575e")
|
||||
version("5.3.3", sha256="7170312d08e91334ee03586aa1f23d67f33d9ec0df25a5556cbfa3f210b15b06")
|
||||
version("5.3.0", sha256="8dfb6aa442ce136207c0c089321c8099042395977b4a488e4ca219661df0cd78")
|
||||
@@ -141,7 +140,6 @@ def url_for_version(self, version):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hsa-rocr-dev@" + ver, when="@" + ver)
|
||||
depends_on("hsakmt-roct@" + ver, when="@" + ver)
|
||||
@@ -168,7 +166,6 @@ def url_for_version(self, version):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-dbgapi@" + ver, when="@" + ver)
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
|
||||
@@ -12,14 +12,13 @@ class RocmDeviceLibs(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/ROCm-Device-Libs"
|
||||
git = "https://github.com/RadeonOpenCompute/ROCm-Device-Libs.git"
|
||||
url = "https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath", "haampie")
|
||||
|
||||
version("master", branch="amd-stg-open")
|
||||
|
||||
version("5.4.3", sha256="f4f7281f2cea6d268fcc3662b37410957d4f0bc23e0df9f60b12eb0fcdf9e26e")
|
||||
version("5.4.0", sha256="d68813ded47179c39914c8d1b76af3dad8c714b10229d1e2246af67609473951")
|
||||
version("5.3.3", sha256="963c9a0561111788b55a8c3b492e2a5737047914752376226c97a28122a4d768")
|
||||
version("5.3.0", sha256="f7e1665a1650d3d0481bec68252e8a5e68adc2c867c63c570f6190a1d2fe735c")
|
||||
@@ -141,7 +140,6 @@ class RocmDeviceLibs(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
depends_on("llvm-amdgpu@" + ver, when="@" + ver)
|
||||
|
||||
@@ -12,12 +12,11 @@ class RocmGdb(AutotoolsPackage):
|
||||
based on GDB, the GNU source-level debugger."""
|
||||
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/ROCgdb/"
|
||||
url = "https://github.com/ROCm-Developer-Tools/ROCgdb/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCm-Developer-Tools/ROCgdb/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
|
||||
version("5.4.3", sha256="28c1ce39fb1fabe61f86f6e3c6940c10f9a8b8de77f7bb4fdd73b04e172f85f6")
|
||||
version("5.4.0", sha256="7ee984d99818da04733030b140c1f0929639bc719a5e418d53cc2c2a8cbc9a79")
|
||||
version("5.3.3", sha256="9fc3ccd9378ad40f2f0c9577bc400cc9a202d0ae4656378813b67653b9023c46")
|
||||
version("5.3.0", sha256="402537baf0779cae586d608505e81173ba85f976fe993f1633e3afe81669350f")
|
||||
@@ -131,7 +130,6 @@ class RocmGdb(AutotoolsPackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-dbgapi@" + ver, type="link", when="@" + ver)
|
||||
depends_on("comgr@" + ver, type="link", when="@" + ver)
|
||||
|
||||
@@ -29,7 +29,6 @@ def url_for_version(self, version):
|
||||
|
||||
version("master", branch="main")
|
||||
|
||||
version("5.4.3", sha256="b0f8339c844a2e62773bd85cd1e7c5ecddfe71d7c8e8d604e1a1d60900c30873")
|
||||
version("5.4.0", sha256="a294639478e76c75dac0e094b418f9bd309309b07faf6af126cdfad9aab3c5c7")
|
||||
version("5.3.3", sha256="cab394e6ef16c35bab8de29a66b96a7dc0e7d1297aaacba3718fa1d369233c9f")
|
||||
version("5.3.0", sha256="d251e2efe95dc12f536ce119b2587bed64bbda013969fa72be58062788044a9e")
|
||||
@@ -121,7 +120,6 @@ def url_for_version(self, version):
|
||||
depends_on("numactl", type="link", when="@3.7.0:")
|
||||
|
||||
for d_version, d_shasum in [
|
||||
("5.4.3", "71d9668619ab57ec8a4564d11860438c5aad5bd161a3e58fbc49555fbd59182d"),
|
||||
("5.4.0", "46a1579310b3ab9dc8948d0fb5bed4c6b312f158ca76967af7ab69e328d43138"),
|
||||
("5.3.3", "f8133a5934f9c53b253d324876d74f08a19e2f5b073bc94a62fe64b0d2183a18"),
|
||||
("5.3.0", "2bf14116b5e2270928265f5d417b3d0f0f2e13cbc8ec5eb8c80d4d4a58ff7e94"),
|
||||
@@ -186,7 +184,6 @@ def url_for_version(self, version):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
depends_on("comgr@" + ver, type="build", when="@" + ver)
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
"371ed037b95b83fac64fb2ff2fc17313fe7d3befc8671f0a08f0e2072393fa5b",
|
||||
"c86141fcde879fc78d06a41ba6a26ff528da539c6a1be8b714f635182c66e3f4",
|
||||
"bbca540897848fa95fd0f14fc05ab6deda31299a061424972d5e2bc09c7543dc",
|
||||
"7f90634fb621169b21bcbd920c2e299acc88ba0eeb1a33fd40ae26e13201b652",
|
||||
]
|
||||
|
||||
devlib = [
|
||||
@@ -57,7 +56,6 @@
|
||||
"f7e1665a1650d3d0481bec68252e8a5e68adc2c867c63c570f6190a1d2fe735c",
|
||||
"963c9a0561111788b55a8c3b492e2a5737047914752376226c97a28122a4d768",
|
||||
"d68813ded47179c39914c8d1b76af3dad8c714b10229d1e2246af67609473951",
|
||||
"f4f7281f2cea6d268fcc3662b37410957d4f0bc23e0df9f60b12eb0fcdf9e26e",
|
||||
]
|
||||
|
||||
llvm = [
|
||||
@@ -80,7 +78,6 @@
|
||||
"4e3fcddb5b8ea8dcaa4417e0e31a9c2bbdc9e7d4ac3401635a636df32905c93e",
|
||||
"5296d5e474811c7d1e456cb6d5011db248b79b8d0512155e8a6c2aa5b5f12d38",
|
||||
"ff54f45a17723892cd775c1eaff9e5860527fcfd33d98759223c70e3362335bf",
|
||||
"a844d3cc01613f6284a75d44db67c495ac1e9b600eacbb1eb13d2649f5d5404d",
|
||||
]
|
||||
|
||||
flang = [
|
||||
@@ -103,7 +100,6 @@
|
||||
"ef1256ddf6cd9de10a1b88df4736dce48295136983a7e31eadd942fb39b156f7",
|
||||
"ddccd866d0c01086087fe21b5711668f85bcf9cbd9f62853f8bda32eaedb5339",
|
||||
"fae8195a5e1b3778e31dbc6cbeedeae9998ea4b5a54215534af41e91fdcb8ba0",
|
||||
"b283d76244d19ab16c9d087ee7de0d340036e9c842007aa9d288aa4e6bf3749f",
|
||||
]
|
||||
|
||||
extras = [
|
||||
@@ -126,7 +122,6 @@
|
||||
"b3beee383d9c130666c230595c950bdc2ce4c7a99d728b9ddf1bca3963152223",
|
||||
"b26b9f4b11a9ccfab53d0dd55aada7e5b98f7ab51981cb033b376321dd44bf87",
|
||||
"2546becd4b182d1e366f47660c731c8ff7366b6306782f04706b6a7bf4e2094c",
|
||||
"d393f27a85c9229433b50daee8154e11517160beb1049c1de9c55fc31dd11fac",
|
||||
]
|
||||
|
||||
versions = [
|
||||
@@ -149,7 +144,6 @@
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]
|
||||
versions_dict = dict() # type: Dict[str,Dict[str,str]]
|
||||
components = ["aomp", "devlib", "llvm", "flang", "extras"]
|
||||
@@ -167,11 +161,10 @@ class RocmOpenmpExtras(Package):
|
||||
"""OpenMP support for ROCm LLVM."""
|
||||
|
||||
homepage = tools_url + "/aomp"
|
||||
url = tools_url + "/aomp/archive/rocm-5.4.3.tar.gz"
|
||||
url = tools_url + "/aomp/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath", "estewart08")
|
||||
version("5.4.3", sha256=versions_dict["5.4.3"]["aomp"])
|
||||
version("5.4.0", sha256=versions_dict["5.4.0"]["aomp"])
|
||||
version("5.3.3", sha256=versions_dict["5.3.3"]["aomp"])
|
||||
version("5.3.0", sha256=versions_dict["5.3.0"]["aomp"])
|
||||
@@ -264,7 +257,6 @@ class RocmOpenmpExtras(Package):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hsakmt-roct@" + ver, when="@" + ver)
|
||||
depends_on("comgr@" + ver, when="@" + ver)
|
||||
|
||||
@@ -17,15 +17,13 @@ class RocmSmiLib(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/rocm_smi_lib"
|
||||
git = "https://github.com/RadeonOpenCompute/rocm_smi_lib.git"
|
||||
url = "https://github.com/RadeonOpenCompute/rocm_smi_lib/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/rocm_smi_lib/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
libraries = ["librocm_smi64"]
|
||||
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="34d550272e420684230ceb7845aefcef79b155e51cf9ec55e31fdba2a4ed177b")
|
||||
version("5.4.0", sha256="4b110c9ec104ec39fc458b1b6f693662ab75395b75ed402b671d8e58c7ae63fe")
|
||||
version("5.3.3", sha256="c2c2a377c2e84f0c40297a97b6060dddc49183c2771b833ebe91ed98a98e4119")
|
||||
version("5.3.0", sha256="8f72ad825a021d5199fb73726b4975f20682beb966e0ec31b53132bcd56c5408")
|
||||
|
||||
@@ -13,12 +13,11 @@ class RocmTensile(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/Tensile/"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/Tensile.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/Tensile/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/Tensile/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath", "haampie")
|
||||
|
||||
version("5.4.3", sha256="a4c5e62edd33ea6b8528eb3f017a14c28eaa67c540f5c9023f6a245340198b0f")
|
||||
version("5.4.0", sha256="2da9c1df3c6d9b44afdad621ef59a03389fb1a38a61a8b8bad9c9991b97157eb")
|
||||
version("5.3.3", sha256="ecb99243edf1cd2bb5e953915a7dae7867c3cdb0cd8ed15b8618aaaeb2bd7b29")
|
||||
version("5.3.0", sha256="05c546986549154e6c7b4f57a0b3bfd5cb223d2393c206ff1702f89454c832f4")
|
||||
@@ -152,7 +151,6 @@ class RocmTensile(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-cmake@" + ver, type="build", when="@" + ver)
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
@@ -182,7 +180,6 @@ class RocmTensile(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("rocm-smi-lib@" + ver, type="build", when="@" + ver)
|
||||
|
||||
|
||||
@@ -16,12 +16,11 @@ class RocmValidationSuite(CMakePackage):
|
||||
compatible platform."""
|
||||
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/ROCmValidationSuite"
|
||||
url = "https://github.com/ROCm-Developer-Tools/ROCmValidationSuite/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCm-Developer-Tools/ROCmValidationSuite/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
|
||||
version("5.4.3", sha256="1f0888e559104a4b8c2f5322f7463e425f2baaf12aeb1a8982a5974516e7b667")
|
||||
version("5.4.0", sha256="ca2abfa739c2853f71453e65787e318ab879be8a6a362c4cb4d27baa90f3cd5f")
|
||||
version("5.3.3", sha256="9acbc8de9b2e18659f51bd49f6e92ab6c93742e2ed0046322025f017fc12497f")
|
||||
version("5.3.0", sha256="d6afb8a5f4eaf860fd510bcfe65e735cbf96d4b8817c758ea7aee84d4c994382")
|
||||
@@ -152,7 +151,6 @@ def setup_build_environment(self, build_env):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocminfo@" + ver, when="@" + ver)
|
||||
|
||||
@@ -12,14 +12,13 @@ class Rocminfo(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/RadeonOpenCompute/rocminfo"
|
||||
git = "https://github.com/RadeonOpenCompute/rocminfo.git"
|
||||
url = "https://github.com/RadeonOpenCompute/rocminfo/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/RadeonOpenCompute/rocminfo/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath", "haampie")
|
||||
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="72159eed31f8deee0df9228b9e306a18fe9efdd4d6c0eead871cad4617874170")
|
||||
version("5.4.0", sha256="79123b92992cce75ae679caf9a6bf57b16d24e96e54b36eb002511f3800e29c6")
|
||||
version("5.3.3", sha256="77e6adc81da6c1d153517e1d28db774205531a2ec188e6518f998328ef7897c6")
|
||||
version("5.3.0", sha256="c279da1d946771d120611b64974fde751534e787a394ceb6b8e0b743c143d782")
|
||||
@@ -131,7 +130,6 @@ class Rocminfo(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
"master",
|
||||
]:
|
||||
depends_on("hsakmt-roct@" + ver, when="@" + ver)
|
||||
|
||||
@@ -14,11 +14,10 @@ class Rocmlir(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocMLIR"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocMLIR.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocMLIR/archive/refs/tags/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocMLIR/archive/refs/tags/rocm-5.4.0.tar.gz"
|
||||
|
||||
maintainers = ["srekolam"]
|
||||
|
||||
version("5.4.3", sha256="c0ba0f565e1c6614c9e6091a24cbef67b734a29e4a4ed7a8a57dc43f58ed8d53")
|
||||
version("5.4.0", sha256="3823f455ee392118c3281e27d45fa0e5381f3c4070eb4e06ba13bc6b34a90a60")
|
||||
version("5.3.0", sha256="e8471a13cb39d33adff34730d3162adaa5d20f9544d61a6a94b39b9b5762ad6d")
|
||||
variant(
|
||||
@@ -49,7 +48,6 @@ def patch(self):
|
||||
for ver in [
|
||||
"5.3.0",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("llvm-amdgpu@" + ver, when="@" + ver)
|
||||
|
||||
@@ -11,12 +11,11 @@ class Rocprim(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocPRIM"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocPRIM.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocPRIM/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocPRIM/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath")
|
||||
|
||||
version("5.4.3", sha256="7be6314a46195912d3203e7e59cb8880a46ed7c1fd221e92fadedd20532e0e48")
|
||||
version("5.4.0", sha256="1740dca11c70ed350995331c292f7e3cb86273614e4a5ce9f0ea64dea5364318")
|
||||
version("5.3.3", sha256="21a6b352ad3f5b2b7d05a5ed55e612feb3c5c19d34fdb8f80260b6d25af18b2d")
|
||||
version("5.3.0", sha256="4885bd662b038c6e9f058a756fd838203dbd00227bfef6adaf31496010b100e4")
|
||||
@@ -133,7 +132,6 @@ class Rocprim(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("comgr@" + ver, when="@" + ver)
|
||||
|
||||
@@ -13,13 +13,12 @@ class RocprofilerDev(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/rocprofiler"
|
||||
git = "https://github.com/ROCm-Developer-Tools/rocprofiler.git"
|
||||
url = "https://github.com/ROCm-Developer-Tools/rocprofiler/archive/refs/tags/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCm-Developer-Tools/rocprofiler/archive/refs/tags/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
libraries = ["librocprofiler64"]
|
||||
|
||||
version("5.4.3", sha256="86c3f43ee6cb9808796a21409c853cc8fd496578b9eef4de67ca77830229cac1")
|
||||
version("5.4.0", sha256="0322cbe5d1d3182e616f472da31f0707ad6040833c38c28f2b39381a85210f43")
|
||||
version("5.3.3", sha256="07ee28f3420a07fc9d45910e78ad7961b388109cfc0e74cfdf2666789e6af171")
|
||||
version("5.3.0", sha256="b0905a329dc1c97a362b951f3f8ef5da9d171cabb001ed4253bd59a2742e7d39")
|
||||
@@ -130,7 +129,6 @@ class RocprofilerDev(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hsakmt-roct@" + ver, when="@" + ver)
|
||||
depends_on("hsa-rocr-dev@" + ver, when="@" + ver)
|
||||
|
||||
@@ -16,17 +16,16 @@ class Rocrand(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocRAND"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocRAND.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocRAND/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocRAND/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath")
|
||||
libraries = ["librocrand"]
|
||||
|
||||
version("develop", branch="develop")
|
||||
version("master", branch="master")
|
||||
version("5.4.3", sha256="463aa760e9f74e45b326765040bb8a8a4fa27aaeaa5e5df16f8289125f88a619")
|
||||
version("5.4.0", sha256="0f6a0279b8b5a6dfbe32b45e1598218fe804fee36170d5c1f7b161c600544ef2")
|
||||
version("5.3.3", sha256="b0aae79dce7f6f9ef76ad2594745fe1f589a7b675b22f35b4d2369e7d5e1985a")
|
||||
version("develop", branch="develop")
|
||||
version("master", branch="master")
|
||||
version("5.3.0", sha256="be4c9f9433415bdfea50d9f47b8afb43ac315f205ed39674f863955a6c256dca")
|
||||
version("5.2.3", sha256="01eda8022fab7bafb2c457fe26a9e9c99950ed1b772ae7bf8710b23a90b56e32")
|
||||
version("5.2.1", sha256="4b2a7780f0112c12b5f307e1130e6b2c02ab984a0c1b94e9190dae38f0067600")
|
||||
@@ -127,7 +126,6 @@ class Rocrand(CMakePackage):
|
||||
|
||||
# Add hiprand sources thru the below
|
||||
for d_version, d_commit in [
|
||||
("5.4.3", "125d691d3bcc6de5f5d63cf5f5a993c636251208"),
|
||||
("5.4.0", "125d691d3bcc6de5f5d63cf5f5a993c636251208"),
|
||||
("5.3.3", "12e2f070337945318295c330bf69c6c060928b9e"),
|
||||
("5.3.0", "12e2f070337945318295c330bf69c6c060928b9e"),
|
||||
@@ -185,7 +183,6 @@ class Rocrand(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
|
||||
@@ -15,7 +15,7 @@ class Rocsolver(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocSOLVER"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocSOLVER.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocSOLVER/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocSOLVER/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath", "haampie")
|
||||
@@ -35,7 +35,6 @@ class Rocsolver(CMakePackage):
|
||||
version("develop", branch="develop")
|
||||
version("master", branch="master")
|
||||
|
||||
version("5.4.3", sha256="5308b68ea72f465239a4bb2ed1a0507f0df7c98d3df3fd1f392e6d9ed7975232")
|
||||
version("5.4.0", sha256="69690839cb649dee43353b739d3e6b2312f3d965dfe66705c0ea910e57c6a8cb")
|
||||
version("5.3.3", sha256="d2248b5e2e0b20e08dd1ee5408e38deb02ecd28096dc7c7f2539351df6cb6ad5")
|
||||
version("5.3.0", sha256="4569f860d240d50e94e77d498050f5cafe5ad11daddaead3e7e9eaa1957878a7")
|
||||
@@ -171,7 +170,6 @@ def check(self):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocblas@" + ver, when="@" + ver)
|
||||
|
||||
@@ -17,7 +17,7 @@ class Rocsparse(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocSPARSE"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocSPARSE.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocSPARSE/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocSPARSE/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath")
|
||||
@@ -34,7 +34,6 @@ class Rocsparse(CMakePackage):
|
||||
)
|
||||
variant("test", default=False, description="Build rocsparse-test client")
|
||||
|
||||
version("5.4.3", sha256="9fb633f235eb0567cc54fae6bdc779f16bf0bb4e6f5bdddb40312c6d11ca8478")
|
||||
version("5.4.0", sha256="c8f0e920a8ec15b9ae40564c68191363356cc4d793c16247bb6e11ef5293ed11")
|
||||
version("5.3.3", sha256="4204035e952e20ada4526a94989e8e5c76c04574176fe63a021522862461c800")
|
||||
version("5.3.0", sha256="521ca0e7b52f26edbff8507eb1479dc26019f456756d884d7b8b192c3ea518e8")
|
||||
@@ -139,7 +138,6 @@ class Rocsparse(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocprim@" + ver, when="@" + ver)
|
||||
|
||||
@@ -14,12 +14,11 @@ class Rocthrust(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocThrust"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocThrust.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocThrust/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocThrust/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("cgmb", "srekolam", "renjithravindrankannath")
|
||||
|
||||
version("5.4.3", sha256="d133e14ea6d27d358d1bd4d31b79fb1562d1aea7c400e5a2d28d0f159cb6c8a8")
|
||||
version("5.4.0", sha256="a4799fb1086da3f70c9b95effb1f5f9033c861685e960a8759278463cc55a971")
|
||||
version("5.3.3", sha256="0c2fc8d437efaf5c4c859d97adb049d4025025d0be0e0908f59a8112508234e5")
|
||||
version("5.3.0", sha256="0e11b12f208d2751e3e507e3a32403c9bd45da4e191671d765d33abd727d9b96")
|
||||
@@ -138,7 +137,6 @@ class Rocthrust(CMakePackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
depends_on("rocprim@" + ver, when="@" + ver)
|
||||
|
||||
@@ -13,12 +13,11 @@ class RoctracerDevApi(Package):
|
||||
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/roctracer"
|
||||
git = "https://github.com/ROCm-Developer-Tools/roctracer.git"
|
||||
url = "https://github.com/ROCm-Developer-Tools/roctracer/archive/refs/tags/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCm-Developer-Tools/roctracer/archive/refs/tags/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
|
||||
version("5.4.3", sha256="6b5111be5efd4d7fd6935ca99b06fab19b43d97a58d26fc1fe6e783c4de9a926")
|
||||
version("5.4.0", sha256="04c1e955267a3e8440833a177bb976f57697aba0b90c325d07fc0c6bd4065aea")
|
||||
version("5.3.3", sha256="f2cb1e6bb69ea1a628c04f984741f781ae1d8498dc58e15795bb03015f924d13")
|
||||
version("5.3.0", sha256="36f1da60863a113bb9fe2957949c661f00a702e249bb0523cda1fb755c053808")
|
||||
|
||||
@@ -15,13 +15,12 @@ class RoctracerDev(CMakePackage, ROCmPackage):
|
||||
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/roctracer"
|
||||
git = "https://github.com/ROCm-Developer-Tools/roctracer.git"
|
||||
url = "https://github.com/ROCm-Developer-Tools/roctracer/archive/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCm-Developer-Tools/roctracer/archive/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
libraries = ["libroctracer64"]
|
||||
|
||||
version("5.4.3", sha256="6b5111be5efd4d7fd6935ca99b06fab19b43d97a58d26fc1fe6e783c4de9a926")
|
||||
version("5.4.0", sha256="04c1e955267a3e8440833a177bb976f57697aba0b90c325d07fc0c6bd4065aea")
|
||||
version("5.3.3", sha256="f2cb1e6bb69ea1a628c04f984741f781ae1d8498dc58e15795bb03015f924d13")
|
||||
version("5.3.0", sha256="36f1da60863a113bb9fe2957949c661f00a702e249bb0523cda1fb755c053808")
|
||||
@@ -75,7 +74,6 @@ class RoctracerDev(CMakePackage, ROCmPackage):
|
||||
"5.3.0",
|
||||
"5.3.3",
|
||||
"5.4.0",
|
||||
"5.4.3",
|
||||
]:
|
||||
depends_on("hsakmt-roct@" + ver, when="@" + ver)
|
||||
depends_on("hsa-rocr-dev@" + ver, when="@" + ver)
|
||||
|
||||
@@ -21,12 +21,11 @@ class Rocwmma(CMakePackage):
|
||||
|
||||
homepage = "https://github.com/ROCmSoftwarePlatform/rocWMMA"
|
||||
git = "https://github.com/ROCmSoftwarePlatform/rocWMMA.git"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocWMMA/archive/refs/tags/rocm-5.4.3.tar.gz"
|
||||
url = "https://github.com/ROCmSoftwarePlatform/rocWMMA/archive/refs/tags/rocm-5.4.0.tar.gz"
|
||||
tags = ["rocm"]
|
||||
|
||||
maintainers("srekolam", "renjithravindrankannath")
|
||||
|
||||
version("5.4.3", sha256="0968366c83b78a9d058d483be536aba03e79b300ccb6890d3da43298be54c288")
|
||||
version("5.4.0", sha256="a18724c3b45d171e54ef9f85c269124ce8d29b6a2f9dbd76a4806bda2933f7a7")
|
||||
version("5.3.3", sha256="cd9bc09f98fb78e53ba4bde1dcfe1817c34c2822234a82b1128d36d92b97ae79")
|
||||
version("5.3.0", sha256="04bac641ba18059118d3faa5f21fe3bf3e285055d40930489ebf27ffc8e5d16e")
|
||||
@@ -52,7 +51,7 @@ class Rocwmma(CMakePackage):
|
||||
|
||||
depends_on("googletest@1.10.0:", type="test")
|
||||
|
||||
for ver in ["5.2.0", "5.2.1", "5.2.3", "5.3.0", "5.3.3", "5.4.0", "5.4.3"]:
|
||||
for ver in ["5.2.0", "5.2.1", "5.2.3", "5.3.0", "5.3.3", "5.4.0"]:
|
||||
depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver)
|
||||
depends_on("llvm-amdgpu@" + ver, type="build", when="@" + ver)
|
||||
depends_on("hip@" + ver, when="@" + ver)
|
||||
|
||||
@@ -14,17 +14,9 @@ class StarCcmPlus(Package):
|
||||
"""STAR-CCM+ (Computational Continuum Mechanics) CFD solver."""
|
||||
|
||||
homepage = "https://mdx.plm.automation.siemens.com/star-ccm-plus"
|
||||
url = "file://{0}/STAR-CCM+11.06.010_02_linux-x86_64.tar.gz".format(os.getcwd())
|
||||
manual_download = True
|
||||
|
||||
def url_for_version(self, version):
|
||||
url = "{pwd}/STAR-CCM+{version}_linux-x86_64.tar.gz".format(
|
||||
pwd=os.getcwd(), version=version
|
||||
)
|
||||
return url
|
||||
|
||||
version(
|
||||
"17.02.007_01", sha256="79c0859b84f753d9c690aad60b6252677a8625224148fb698aa6a94aa2a09a8c"
|
||||
)
|
||||
version(
|
||||
"16.06.008_01", sha256="64577ec0e9a98d971114e68c4eec05bb746e061dfbf77b8d8919583c796c9e4b"
|
||||
)
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
From 8a622dd8204754733c769f0d13b685419e6607db Mon Sep 17 00:00:00 2001
|
||||
From: Paul Kuberry <pakuber@sandia.gov>
|
||||
Date: Wed, 12 Apr 2023 13:36:28 -0600
|
||||
Subject: [PATCH] Remove use of OpenMPI specific struct member
|
||||
|
||||
MPITest/testBUG967 could not be built with MPICH because it used
|
||||
OpenMPI specific struct member variable `_ucount`.
|
||||
|
||||
Replaced use of `_ucount` with call to MPI_Get_count, which is
|
||||
compatible with OpenMPI and MPICH.
|
||||
---
|
||||
src/test/MPITest/testBUG967.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/test/MPITest/testBUG967.c b/src/test/MPITest/testBUG967.c
|
||||
index cdf7f918f..26e1b5311 100644
|
||||
--- a/src/test/MPITest/testBUG967.c
|
||||
+++ b/src/test/MPITest/testBUG967.c
|
||||
@@ -45,8 +45,10 @@ int main(int narg, char**arg)
|
||||
for (i=0; i < nrecvs; i++){
|
||||
MPI_Wait(req + i, &status);
|
||||
procs_from[i] = status.MPI_SOURCE;
|
||||
- printf("%d wait source %d count %lu \n",
|
||||
- my_proc, status.MPI_SOURCE, status._ucount);
|
||||
+ int count;
|
||||
+ MPI_Get_count(&status, MPI_INT, &count);
|
||||
+ printf("%d wait source %d count %d \n",
|
||||
+ my_proc, status.MPI_SOURCE, count);
|
||||
}
|
||||
|
||||
for (i = 0; i < nrecvs; i++)
|
||||
--
|
||||
2.37.1 (Apple Git-137.1)
|
||||
|
||||
@@ -128,14 +128,6 @@ class Xyce(CMakePackage):
|
||||
# HDF5
|
||||
depends_on("hdf5~shared", when="^hdf5")
|
||||
|
||||
# fix MPI issue
|
||||
patch(
|
||||
"450-mpich-xyce.patch",
|
||||
sha256="e91063d22afeeff01e6c572cef2ac2e3abea27b2fcb5a7e6ac5f41e4734a556d",
|
||||
when="@:7.6,master",
|
||||
)
|
||||
|
||||
# fix RPATH issue on mac
|
||||
patch(
|
||||
"https://github.com/xyce/xyce/commit/40dbc0e0341a5cf9a7fa82a87313869dc284fdd9.patch?full_index=1",
|
||||
sha256="3c32faeeea0bb29be44ec20e414670c9fd375f9ed921a7f6e9fd3de02c28859d",
|
||||
|
||||
@@ -3,16 +3,12 @@
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
|
||||
from spack.build_systems.autotools import AutotoolsBuilder
|
||||
from spack.build_systems.msbuild import MSBuildBuilder
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class Xz(MSBuildPackage, AutotoolsPackage, SourceforgePackage):
|
||||
class Xz(AutotoolsPackage, SourceforgePackage):
|
||||
"""XZ Utils is free general-purpose data compression software with
|
||||
high compression ratio. XZ Utils were written for POSIX-like systems,
|
||||
but also work on some not-so-POSIX systems. XZ Utils are the successor
|
||||
@@ -48,11 +44,9 @@ class Xz(MSBuildPackage, AutotoolsPackage, SourceforgePackage):
|
||||
# xz-5.2.7/src/liblzma/common/common.h:56 uses attribute __symver__ instead of
|
||||
# __asm__(.symver) for newer GCC releases.
|
||||
conflicts("%intel", when="@5.2.7", msg="icc does not support attribute __symver__")
|
||||
conflicts("platform=windows", when="+pic") # no pic on Windows
|
||||
# prior to 5.2.3, build system is for MinGW only, not currently supported by Spack
|
||||
conflicts("platform=windows", when="@:5.2.3")
|
||||
|
||||
build_system(conditional("msbuild", when="platform=windows"), "autotools", default="autotools")
|
||||
def configure_args(self):
|
||||
return self.enable_or_disable("libs")
|
||||
|
||||
def flag_handler(self, name, flags):
|
||||
if name == "cflags" and "+pic" in self.spec:
|
||||
@@ -69,60 +63,7 @@ def determine_version(cls, exe):
|
||||
match = re.search(r"xz \(XZ Utils\) (\S+)", output)
|
||||
return match.group(1) if match else None
|
||||
|
||||
|
||||
class AutotoolsBuilder(AutotoolsBuilder):
|
||||
def configure_args(self):
|
||||
return self.enable_or_disable("libs")
|
||||
|
||||
@run_after("install")
|
||||
def darwin_fix(self):
|
||||
if self.spec.satisfies("platform=darwin"):
|
||||
fix_darwin_install_name(self.prefix.lib)
|
||||
|
||||
|
||||
class MSBuildBuilder(MSBuildBuilder):
|
||||
@property
|
||||
def build_directory(self):
|
||||
def get_file_string_number(f):
|
||||
s = re.findall(r"\d+$", f)
|
||||
return (int(s[0]) if s else -1, f)
|
||||
|
||||
win_dir = os.path.join(super().build_directory, "windows")
|
||||
compiler_dirs = []
|
||||
with working_dir(win_dir):
|
||||
for obj in os.scandir():
|
||||
if obj.is_dir():
|
||||
compiler_dirs.append(obj.name)
|
||||
newest_compiler = max(compiler_dirs, key=get_file_string_number)
|
||||
return os.path.join(win_dir, newest_compiler)
|
||||
|
||||
def is_64bit(self):
|
||||
return "64" in self.pkg.spec.target.family
|
||||
|
||||
def msbuild_args(self):
|
||||
plat = "x64" if self.is_64bit() else "x86"
|
||||
if self.pkg.spec.satisfies("libs=shared,static"):
|
||||
f = "xz_win.sln"
|
||||
elif self.pkg.spec.satisfies("libs=shared"):
|
||||
f = "liblzma_dll.vcxproj"
|
||||
else:
|
||||
f = "liblzma.vcxproj"
|
||||
return [self.define("Configuration", "Release"), self.define("Platform", plat), f]
|
||||
|
||||
def install(self, pkg, spec, prefix):
|
||||
with working_dir(self.build_directory):
|
||||
# Ensure we have libs directory
|
||||
mkdirp(prefix.lib)
|
||||
libs_to_find = []
|
||||
if "libs=shared" in self.pkg.spec:
|
||||
libs_to_find.extend(["*.dll", "*.lib"])
|
||||
else:
|
||||
libs_to_find.append("*.lib")
|
||||
for lib in libs_to_find:
|
||||
libs_to_install = glob.glob(
|
||||
os.path.join(self.build_directory, "**", lib), recursive=True
|
||||
)
|
||||
for library in libs_to_install:
|
||||
install(library, prefix.lib)
|
||||
with working_dir(pkg.stage.source_path):
|
||||
install_tree(os.path.join("src", "liblzma", "api"), prefix.include)
|
||||
|
||||
Reference in New Issue
Block a user