Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions recipes/prgenv-gnu/25.7/amdgpu/compilers.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
gcc:
version: "13"
llvm-amdgpu:
version: "6.3.3"
9 changes: 5 additions & 4 deletions recipes/prgenv-gnu/25.7/amdgpu/environments.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gcc-env:
compiler: [gcc, llvm-amdgpu]
compiler: [gcc]
network:
mpi: cray-mpich@8.1.32+rocm
specs: [ 'libfabric@2.3 +rocm' ]
Expand All @@ -21,14 +21,14 @@ gcc-env:
- ninja
- openblas threads=openmp
- osu-micro-benchmarks
- python@3
- python@3.13.8
- zlib-ng
# add GPU-specific packages here, for easier comparison with mc version
- hip@6.3.3 ^mesa@23.3.6
- hdf5+mpi
- hipcub
- llvm-amdgpu
# rocm packages
- llvm-amdgpu
- rocblas ^py-msgpack %cxx=gcc
- rocfft
- rocm-cmake %cxx=gcc
Expand All @@ -39,6 +39,7 @@ gcc-env:
- rocprofiler-dev
- rocprofiler-register ^glog %cxx=gcc ^gflags %cxx=gcc
- rocprofiler-systems@6.3.3+internal-dyninst
- rocprofiler-compute@6.3.3
- rocrand
- rocsolver
- rocsparse
Expand All @@ -58,12 +59,12 @@ gcc-env:
- rccl
# commits pinned for reproducibility, not bugs; update when updating recipe
- aws-ofi-rccl@git.6dae1b0d588c27689ba6daa32710359ea96de78c=cxi
- rccl-tests@git.6405c76e6826663bbb67bd40aeee8c70aa5d3094=develop %cxx=llvm-amdgpu ^cray-mpich@8.1.32 +rocm %c,cxx,fortran=gcc
variants:
- +mpi
- +rocm
- amdgpu_target=gfx942,gfx90a
- amdgpu_target_sram_ecc=gfx942,gfx90a
- ^python@3.13.8
views:
default:
link: roots
Expand Down
28 changes: 28 additions & 0 deletions recipes/prgenv-gnu/25.7/amdgpu/repo/packages/py_dash/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack_repo.builtin.build_systems.python import PythonPackage

from spack.package import *


class PyDash(PythonPackage):
"""Dash is the most downloaded, trusted Python framework
for building ML & data science web apps."""

homepage = "https://dash.plotly.com/"
pypi = "dash/dash-2.17.1.tar.gz"
git = "https://github.com/plotly/dash.git"

license("MIT")

version("3.3.0", sha256="eaaa7a671540b5e1db8066f4966d0277d21edc2c7acdaec2fd6d198366a8b0df")
version("2.17.1", sha256="ee2d9c319de5dcc1314085710b72cd5fa63ff994d913bf72979b7130daeea28e")

depends_on("python@3.8:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-typing-extensions")
depends_on("py-flask")
depends_on("py-plotly")
depends_on("py-importlib-metadata")
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack_repo.builtin.build_systems.cmake import CMakePackage

from spack.package import *


class RocprofilerCompute(CMakePackage):
"""Advanced Profiling and Analytics for AMD Hardware"""

homepage = "https://github.com/ROCm/rocprofiler-compute"
git = "https://github.com/ROCm/rocprofiler-compute.git"
url = "https://github.com/ROCm/rocprofiler-compute/archive/refs/tags/rocm-6.4.3.tar.gz"

tags = ["rocm"]

maintainers("afzpatel", "srekolam", "renjithravindrankannath")

license("MIT")
version("7.0.2", sha256="b56ab5c57883e2c3d75b7cc584279eb91157de195722f90c09cad51701ef4650")
version("7.0.0", sha256="0ef46ee668b6ee6936911ecd70947abb4e501ced1c4f87d8001a6e35b9781705")
version("6.4.3", sha256="d5005322dbfdd0feccd619d8fb6665f8631d74be1d6345be8726eff76829747b")
version("6.4.2", sha256="0a0c5cbcc6d54881c58899d2f0db7feaa0d5665bf13e19f0715cb22f54b11187")
version("6.4.1", sha256="a48837861dad010516f579ba627b1cf49469c56d74787f7b0883c5198de6e2a7")
version("6.4.0", sha256="484a8974ebf973fa00241bf3665eac790b3c317aa36b794cc2998f892b3036fc")
version("6.3.3", sha256="0f563874f71b593cbdcdf0eea58b08c7437f1abf807f0886a3a30afa9e7f4953")
version("6.3.2", sha256="317f19acfa6e6780923e6c8144c3c223b523c382588df528b6df001fae38d13d")

depends_on("python@3.8:")
depends_on("py-pip", type="run")
depends_on("py-astunparse@1.6.2", type=("build", "run")) # wants exact version
depends_on("py-colorlover", type=("build", "run"))
depends_on("py-pyyaml", type=("build", "run"))
depends_on("py-matplotlib", type=("build", "run"))
depends_on("py-pandas@1.4.3:", type=("build", "run"))
depends_on("py-numpy@1.17.5:", type=("build", "run"))
depends_on("py-pymongo", type=("build", "run"))
depends_on("py-tabulate", type=("build", "run"))
depends_on("py-tqdm", type=("build", "run"))
depends_on("py-kaleido", type=("build", "run"))
depends_on("py-plotille", type=("build", "run"))
depends_on("py-dash-svg", type=("build", "run"))
depends_on("py-dash", type=("build", "run"))
depends_on("py-dash-bootstrap-components", type=("build", "run"))
depends_on("py-textual", when="@7.0:")
depends_on("py-textual-plotext", when="@7.0:")
depends_on("py-setuptools", type=("build", "run"))

def cmake_args(self):
args = [self.define("ENABLE_TESTS", self.run_tests)]
return args

@run_before("cmake")
def before_cmake(self):
touch(join_path(self.stage.source_path, "VERSION.sha"))
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
From e7dd0146c83527e4977ecf51b22c9cb6939d74f2 Mon Sep 17 00:00:00 2001
From: Afzal Patel <Afzal.Patel@amd.com>
Date: Fri, 2 Feb 2024 13:50:58 +0000
Subject: [PATCH] Disable tests and add fPIC compile option

---
CMakeLists.txt | 26 ++++----------------------
1 file changed, 4 insertions(+), 22 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c8f5da7..5c2537a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,7 +44,7 @@ endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
-add_compile_options(-Wall)
+add_compile_options(-Wall -fPIC)

set(THREADS_PREFER_PTHREAD_FLAG ON)

@@ -162,17 +162,17 @@ add_subdirectory(src)

if(${LIBRARY_TYPE} STREQUAL SHARED)
# Build samples
- add_subdirectory(samples)
+ # add_subdirectory(samples)

# Build tests
- add_subdirectory(tests-v2)
+ # add_subdirectory(tests-v2)
endif()

# Build Plugins
add_subdirectory(plugin)

# Build tests
-add_subdirectory(${TEST_DIR} ${PROJECT_BINARY_DIR}/test)
+# add_subdirectory(${TEST_DIR} ${PROJECT_BINARY_DIR}/test)

# Installation and packaging
set(DEST_NAME ${ROCPROFILER_NAME})
@@ -236,24 +236,6 @@ install(
DESTINATION ${CMAKE_INSTALL_LIBDIR}/${ROCPROFILER_NAME}
COMPONENT runtime)

-# librocprof-tool.so
-install(
- FILES ${PROJECT_BINARY_DIR}/test/librocprof-tool.so
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/${ROCPROFILER_NAME}
- COMPONENT runtime)
-
-install(
- FILES ${PROJECT_BINARY_DIR}/test/librocprof-tool.so
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/${ROCPROFILER_NAME}
- COMPONENT asan)
-
-install(
- FILES ${PROJECT_BINARY_DIR}/test/rocprof-ctrl
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/${ROCPROFILER_NAME}
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ
- WORLD_EXECUTE
- COMPONENT runtime)
-
# File reorg backward compatibility for non ASAN packaging
if(NOT ENABLE_ASAN_PACKAGING)
# File reorg Backward compatibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 869c2dc4b88aa5beb5ab0e57aba85d0c520e7074 Mon Sep 17 00:00:00 2001
From: Afzal Patel <Afzal.Patel@amd.com>
Date: Fri, 2 Feb 2024 14:16:12 +0000
Subject: [PATCH] Disable tests

---
CMakeLists.txt | 2 --
1 file changed, 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9d52082..6f35926 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -176,8 +176,8 @@ endif()
enable_testing()

# Temporarily for CI to work
-set(ROCPROFILER_BUILD_TESTS ON)
-set(ROCPROFILER_BUILD_CI ON)
+set(ROCPROFILER_BUILD_TESTS OFF)
+set(ROCPROFILER_BUILD_CI OFF)

if(ROCPROFILER_BUILD_CI)
include(CTest)
Loading