Skip to content
Merged
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
35 changes: 31 additions & 4 deletions .github/workflows/multi_arch_build_portable_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# 3. wsl-rocdxg (generic) - WSL-only ROCDXG bridge library (after compiler-runtime)
# 4. math-libs (per-arch) - BLAS, FFT, etc.
# 5. comm-libs (per-arch) - RCCL, rocshmem (parallel to math-libs)
# 6. debug-tools (generic) - amd-dbgapi, rocr-debug-agent, rocgdb (parallel to math-libs)
# 7. dctools-core (generic) - RDC (parallel to math-libs)
# 8. profiler-apps (generic) - rocprofiler-systems (parallel to math-libs)
# 9. media-libs (generic) - sysdeps-amd-mesa, rocdecode, rocjpeg
# 6. storage-libs (generic) - hipfile (parallel to math-libs)
# 7. debug-tools (generic) - amd-dbgapi, rocr-debug-agent, rocgdb (parallel to math-libs)
# 8. dctools-core (generic) - RDC (parallel to math-libs)
# 9. profiler-apps (generic) - rocprofiler-systems (parallel to math-libs)
# 10. media-libs (generic) - sysdeps-amd-mesa, rocdecode, rocjpeg

name: Multi-Arch Build (Linux)

Expand Down Expand Up @@ -199,6 +200,32 @@ jobs:
contents: read
id-token: write

# ==========================================================================
# STAGE: storage-libs (generic, single job parallel to math-libs)
# hipFile is a TARGET_NEUTRAL artifact.
# ==========================================================================
storage-libs:
needs: compiler-runtime
if: ${{ !cancelled() && !failure() && !contains(inputs.prebuilt_stages, 'storage-libs') }}
uses: ./.github/workflows/multi_arch_build_portable_linux_artifacts.yml
secrets: inherit
with:
stage_name: storage-libs
stage_display_name: "Stage - Storage Libs"
timeout_minutes: 240 # 4 hours
Comment on lines +214 to +215

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This took 1m9s (https://github.com/ROCm/TheRock/actions/runs/27576722924/job/81531817331?pr=5217), so we could set this timeout much lower. How about 1 hour? Or lower, like 30 minutes?

I think you'll want some room to grow, and we want these timeouts to catch gross configuration / build issues without burning CI runner time. The default timeout is 6 hours.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I set up the CI PR I will drop this to 30 min

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our CI runs really quickly so we'll keep that timeout low as well

amdgpu_family: ""
dist_amdgpu_families: ${{ inputs.dist_amdgpu_families }}
rocm_package_version: ${{ inputs.rocm_package_version }}
build_variant_cmake_preset: ${{ inputs.build_variant_cmake_preset }}
build_runs_on: ${{ inputs.build_runs_on }}
release_type: ${{ inputs.release_type }}
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
external_repo_config: ${{ inputs.external_repo_config }}
permissions:
contents: read
id-token: write

# ==========================================================================
# STAGE: debug-tools (generic, parallel to math-libs)
# ==========================================================================
Expand Down
23 changes: 23 additions & 0 deletions BUILD_TOPOLOGY.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ submodules = []
description = "Communication library submodules"
submodules = []

[source_sets.storage-libs]
description = "Storage library submodules"
submodules = []

[source_sets.amd-mesa]
description = "ROCm media submodules (Mesa for VA-API)"
submodules = ["amd-mesa"]
Expand Down Expand Up @@ -168,6 +172,11 @@ description = "Communication libraries (generic, single job parallel to math-lib
artifact_groups = ["comm-libs"]
type = "generic"

[build_stages.storage-libs]
description = "Storage libraries (generic, single job parallel to math-libs)"
artifact_groups = ["storage-libs"]
type = "generic"

[build_stages.debug-tools]
description = "ROCm debug tools"
artifact_groups = ["debug-tools"]
Expand Down Expand Up @@ -281,6 +290,12 @@ artifact_group_deps = ["hip-runtime"]
# TODO: rocm-systems included for projects/hip/VERSION (see CMakeLists.txt)
source_sets = ["comm-libs", "rocm-systems"]

[artifact_groups.storage-libs]
description = "Storage libraries"
type = "generic"
artifact_group_deps = ["hip-runtime"]
source_sets = ["storage-libs", "rocm-systems"]

[artifact_groups.profiler-core]
description = "Core profiling libraries and annotation support"
type = "generic"
Expand Down Expand Up @@ -688,6 +703,14 @@ type = "target-neutral"
artifact_deps = ["core-runtime", "core-hip", "sysdeps"]
disable_platforms = ["windows"]

# --- Storage Libraries ---

[artifacts.hipfile]
artifact_group = "storage-libs"
type = "target-neutral"
artifact_deps = ["core-runtime", "core-hip", "sysdeps", "sysdeps-util-linux"]
disable_platforms = ["windows"]

# --- Profiler Tools ---

[artifacts.aqlprofile]
Expand Down
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ math-libs/ # rocBLAS, rocFFT, etc.
media-libs/ # rocDecode, rocJPEG
ml-libs/ # MIOpen, composable_kernel
comm-libs/ # RCCL, rocSHMEM
storage-libs/ # hipFile
profiler/ # rocprofiler, roctracer
build_tools/ # Python build scripts
cmake/ # CMake infrastructure
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ option(THEROCK_USE_SAFE_DEPENDENCY_PROVIDER "Enable the safe dependency provider
option(THEROCK_ENABLE_ALL "Enables building of all feature groups" ON)
option(THEROCK_ENABLE_CORE "Enable building of core libraries" "${THEROCK_ENABLE_ALL}")
option(THEROCK_ENABLE_COMM_LIBS "Enable building of comm libraries" "${THEROCK_ENABLE_ALL}")
option(THEROCK_ENABLE_STORAGE_LIBS "Enable building of storage libraries" "${THEROCK_ENABLE_ALL}")
Comment thread
derobins marked this conversation as resolved.
Resolved
option(THEROCK_ENABLE_DEBUG_TOOLS "Enable building the ROCm debug tools" "${THEROCK_ENABLE_ALL}")
option(THEROCK_ENABLE_MATH_LIBS "Enable building of math libraries" "${THEROCK_ENABLE_ALL}")
option(THEROCK_ENABLE_ML_LIBS "Enable building of ML libraries" "${THEROCK_ENABLE_ALL}")
Expand Down Expand Up @@ -506,6 +507,7 @@ add_subdirectory(emulation)
# Data center tools (RDC, etc.)
add_subdirectory(dctools)
add_subdirectory(comm-libs)
add_subdirectory(storage-libs)
Comment thread
derobins marked this conversation as resolved.
Resolved
add_subdirectory(math-libs)
add_subdirectory(ml-libs)
add_subdirectory(media-libs)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ minimal build):
| `-DTHEROCK_ENABLE_ROCPROFSYS=ON` | Enables rocprofiler-systems |
| `-DTHEROCK_ENABLE_RCCL=ON` | Enables RCCL |
| `-DTHEROCK_ENABLE_ROCSHMEM=ON` | Enables rocSHMEM |
| `-DTHEROCK_ENABLE_HIPFILE=ON` | Enables hipFile |
| `-DTHEROCK_ENABLE_ROCR_DEBUG_AGENT=ON` | Enables the ROCR debug agent library |
| `-DTHEROCK_ENABLE_PRIM=ON` | Enables the PRIM library |
| `-DTHEROCK_ENABLE_BLAS=ON` | Enables the BLAS libraries |
Expand Down
1 change: 1 addition & 0 deletions build_tools/analyze_build_times.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"profiler",
"ml-libs",
"media-libs",
"storage-libs",
}

# Regex to parse artifact filenames: <project>_<variant>[_suffix].tar.xz
Expand Down
5 changes: 4 additions & 1 deletion build_tools/bump_submodules.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ def parse_components(components: list[str]) -> list[list]:
if "default" in components:
return [], []

if any(comp in components for comp in ["base", "comm-libs", "core", "profiler"]):
if any(
comp in components
for comp in ["base", "comm-libs", "core", "profiler", "storage-libs"]
):
arguments.append("--include-system-projects")
else:
arguments.append("--no-include-system-projects")
Expand Down
2 changes: 2 additions & 0 deletions docs/development/build_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ Sub-project directories:
higher level HIP runtimes.
- [`comm-libs/`](/comm-libs/) : Communication library sub-projects, including
[rccl](https://github.com/ROCm/rccl)
- [`storage-libs/`](/storage-libs/) : Storage library sub-projects, including
[hipFile](https://github.com/ROCm/rocm-systems/tree/develop/projects/hipfile)
- [`math-libs/`](/math-libs/) : Math library sub-projects, including `math-libs/BLAS` for
[Basic Linear Algebra Subprogram](https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms)
projects like [hipBLASLt](https://github.com/ROCm/hipBLASLt).
Expand Down
2 changes: 2 additions & 0 deletions docs/development/windows_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ mainline, in open source, using MSVC, etc.).
| | | | | |
| comm-libs | [rccl](https://github.com/ROCm/rocm-systems/tree/develop/projects/rccl) | rocm-systems | ❌ | Unsupported |
| | | | | |
| storage-libs | [hipFile](https://github.com/ROCm/rocm-systems/tree/develop/projects/hipfile) | rocm-systems | ❌ | Unsupported |
| | | | | |
| media-libs | [rocDecode](https://github.com/ROCm/rocm-systems/tree/develop/projects/rocdecode) | rocm-systems | ❌ | Linux only (requires VA-API / Mesa) |
| media-libs | [rocJPEG](https://github.com/ROCm/rocm-systems/tree/develop/projects/rocjpeg) | rocm-systems | ❌ | Linux only (requires VA-API / Mesa) |
| | | | | |
Expand Down
55 changes: 55 additions & 0 deletions storage-libs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wonder if we can have a parent if(THEROCK_ENABLE_STORAGE_LIBS) along with more granular if enablers

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There will almost certainly be additional storage libraries coming soon

if(THEROCK_ENABLE_HIPFILE)
##############################################################################
# hipFile
##############################################################################
set(_hipfile_subproject_names)
therock_cmake_subproject_declare(hipfile
USE_TEST_AMDGPU_TARGETS
EXTERNAL_SOURCE_DIR "${THEROCK_ROCM_SYSTEMS_SOURCE_DIR}/projects/hipfile"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/hipfile"
BACKGROUND_BUILD
CMAKE_ARGS
-DCMAKE_VERBOSE_MAKEFILE=OFF
-DAIS_CXX_STANDARD=20
-DROCM_PATH=
-DROCM_DIR=
-DHIP_PLATFORM=amd
-DBUILD_TESTING=${THEROCK_BUILD_TESTING}
-DCMAKE_GTEST_DISCOVER_TESTS_DISCOVERY_MODE=PRE_TEST
"-DROCM_VERSION=${ROCM_MAJOR_VERSION}.${ROCM_MINOR_VERSION}.${ROCM_PATCH_VERSION}"
CMAKE_INCLUDES
therock_explicit_finders.cmake
COMPILER_TOOLCHAIN
amd-hip
BUILD_DEPS
rocm-cmake
therock-googletest
RUNTIME_DEPS
hip-clr
${THEROCK_BUNDLED_UTIL_LINUX}
)
therock_cmake_subproject_glob_c_sources(hipfile
SUBDIRS
src
)
therock_cmake_subproject_provide_package(hipfile HIPFILE lib/cmake/hipfile)
therock_cmake_subproject_activate(hipfile)
list(APPEND _hipfile_subproject_names hipfile)

therock_provide_artifact(hipfile
TARGET_NEUTRAL
DESCRIPTOR artifact-hipfile.toml
COMPONENTS
dbg
dev
doc
lib
Comment thread
derobins marked this conversation as resolved.
Resolved
test
SUBPROJECT_DEPS
${_hipfile_subproject_names}
${THEROCK_BUNDLED_UTIL_LINUX}
)
endif(THEROCK_ENABLE_HIPFILE)
12 changes: 12 additions & 0 deletions storage-libs/artifact-hipfile.toml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see that this built: https://therock-ci-artifacts.s3.amazonaws.com/27576722924-linux/logs/storage-libs/hipfile_install.log

however, i don't see any artifacts being created... is that right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the missing .json packaging artifacts? If so, we are saving that for a follow-on PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meant the missing .tar ... unless i am missing something

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# hipfile
[components.lib."storage-libs/hipfile/stage"]
include = [
"share/hipfile/**",
]
[components.dbg."storage-libs/hipfile/stage"]
[components.dev."storage-libs/hipfile/stage"]
[components.doc."storage-libs/hipfile/stage"]

# Tests
[components.test."storage-libs/hipfile/stage"]
optional = true
2 changes: 2 additions & 0 deletions third-party/sysdeps/linux/util-linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
"-DPython3_EXECUTABLE=${Python3_EXECUTABLE}"
INSTALL_DESTINATION
lib/rocm_sysdeps
INTERFACE_INCLUDE_DIRS
lib/rocm_sysdeps/include
INTERFACE_LINK_DIRS
lib/rocm_sysdeps/lib
INTERFACE_INSTALL_RPATH_DIRS
Expand Down
Loading