
Update to include the latest versions of Totalview and remove retired and interim maintainers.
153 lines
5.7 KiB
Python
153 lines
5.7 KiB
Python
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class Totalview(Package):
|
|
"""Totalview parallel debugger.
|
|
|
|
Select the version associated with your machine architecture'
|
|
'."""
|
|
|
|
homepage = "https://totalview.io"
|
|
maintainers("dshrader", "suzannepaterno")
|
|
license_required = True
|
|
license_comment = "#"
|
|
license_files = ["tv_license/license.lic"]
|
|
license_vars = ["RLM_LICENSE"]
|
|
|
|
# As the install of Totalview is via multiple tarballs, the base install
|
|
# will be the documentation. The architecture-specific tarballs are added
|
|
# as resources dependent on the specific architecture used.
|
|
|
|
version(
|
|
"2025.1-x86-64",
|
|
sha256="d38952c87c155482ef9cdda08bfc648b127b72eedce085c86375e3cf6e2535ed",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2025.1/totalview_2025.1.13_linux_x86-64.tar",
|
|
)
|
|
|
|
version(
|
|
"2025.1-powerle",
|
|
sha256="934f95e9d792b146798ab7533c45518c4a1e6e93033ae6ec86867fd5c8315efa",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2025.1/totalview_2025.1.13_linux_powerle.tar",
|
|
)
|
|
|
|
version(
|
|
"2025.1-linux-arm64",
|
|
sha256="843ab88ba43d2078cea65b36a5316d5fef69f33c3a8c19fe8df66563ab72bfb7",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2025.1/totalview_2025.1.13_linux_arm64.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.4-x86-64",
|
|
sha256="9735ab672c53397370f41212bc9f5d0e2a5cf63335d812406137b954ba3c4672",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.4/totalview_2024.4.2_linux_x86-64.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.4-powerle",
|
|
sha256="02741b35a774331f007b590368d776bd76e5ecc2cdd693b8518975cfc0d1db57",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.4/totalview_2024.4.2_linux_powerle.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.4-linux-arm64",
|
|
sha256="0eb74718d86923d9fefed006b21cecad678355554b3295e0899b7ed9aafd388d",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.4/totalview_2024.4.2_linux_arm64.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.3-x86-64",
|
|
sha256="fb47c5a5abc6ad0e3e7cff1a346037387fa471c3a5cb46b6cdbe7f8a10aff2a7",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.3/totalview_2024.3.10_linux_x86-64.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.3-powerle",
|
|
sha256="a064d3c9b12108ec228e2ff203549442172e282682786ff20d02ea9bf40109b2",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.3/totalview_2024.3.10_linux_powerle.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.3-linux-arm64",
|
|
sha256="91701e3460cad8bba8810c5ece4720f0156ccba7526d407801a7d0b0e09fb054",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.3/totalview_2024.3.10_linux_arm64.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.2-x86-64",
|
|
sha256="b6d9cfd804ff1f6641fbd92f9730b34f62062ead9b1324eaf44f34ea78c69ef1",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.2/totalview_2024.2.11_linux_x86-64.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.2-powerle",
|
|
sha256="2bc1ef377e95f6f09d1f221a1dcc2f79415bad9e1e8403c647f38e2d383524d6",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.2/totalview_2024.2.11_linux_powerle.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.2-linux-arm64",
|
|
sha256="63f737e61c2fb7f4816bcfc1d00e9e7c39817455531abdd09500f953be4ac75d",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.2/totalview_2024.2.11_linux_arm64.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.1-x86-64",
|
|
sha256="964b73e70cb9046ce320bb0f95891b05c96a59117e5243fdc269855831c7059b",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.1/totalview_2024.1.21_linux_x86-64.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.1-powerle",
|
|
sha256="c4dd8a3099d4f6ed23a6646b1d091129e0bf0b10c7a0d7ec73bd767818bab39b",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.1/totalview_2024.1.21_linux_powerle.tar",
|
|
)
|
|
|
|
version(
|
|
"2024.1-linux-arm64",
|
|
sha256="769527478dceb30855413970621f09a9dc54ef863ddaf75bb5a40142a54af346",
|
|
url="https://dslwuu69twiif.cloudfront.net/totalview/2024.1/totalview_2024.1.21_linux_arm64.tar",
|
|
)
|
|
|
|
def setup_run_environment(self, env):
|
|
env.prepend_path(
|
|
"PATH",
|
|
join_path(self.prefix, "toolworks", "totalview.{0}".format(self.version), "bin"),
|
|
)
|
|
env.prepend_path(
|
|
"TVROOT", join_path(self.prefix, "toolworks", "totalview.{0}".format(self.version))
|
|
)
|
|
env.prepend_path("TVDSVRLAUNCHCMD", "ssh")
|
|
|
|
def install(self, spec, prefix):
|
|
# Assemble install line
|
|
install_cmd = which("./Install")
|
|
arg_list = ["-agree", "-nosymlink", "-directory", "{0}".format(prefix)]
|
|
|
|
# Platform specification.
|
|
if spec.target.family == "x86_64" and spec.platform == "linux":
|
|
arg_list.extend(["-platform", "linux-x86-64"])
|
|
elif spec.target.family == "aarch64":
|
|
arg_list.extend(["-platform", "linux-arm64"])
|
|
elif spec.target.family == "ppc64le":
|
|
arg_list.extend(["-platform", "linux-powerle"])
|
|
else:
|
|
raise InstallError("Architecture {0} not permitted!".format(spec.target.family))
|
|
|
|
install_cmd.exe.extend(arg_list)
|
|
|
|
# Run install script for totalview (which automatically installs memoryscape)
|
|
install_cmd = which("./Install")
|
|
arg_list.extend(["-install", "totalview"])
|
|
install_cmd.exe.extend(arg_list)
|
|
install_cmd()
|
|
|
|
# If a license file was created
|
|
symlink(
|
|
join_path(self.prefix, "tv_license", "license.lic"),
|
|
join_path(self.prefix, "toolworks", "tv_license", "license.lic"),
|
|
)
|