Repository navigation
[hipfile] Add initial hipFile support #5217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # Copyright Advanced Micro Devices, Inc. | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wonder if we can have a parent
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
derobins marked this conversation as resolved.
Resolved
|
||
| test | ||
| SUBPROJECT_DEPS | ||
| ${_hipfile_subproject_names} | ||
| ${THEROCK_BUNDLED_UTIL_LINUX} | ||
| ) | ||
| endif(THEROCK_ENABLE_HIPFILE) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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