Repository navigation
build(rocjitsu): add rocjitsu to therock build system #4942
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
461e644
build(rocjitsu): add rocjitsu to build system
amd-arosa f7cc9ed
test(rocjitsu): add tests
amd-arosa dc5c1f4
build(simulation): move rocjitsu into simulation group
amd-arosa af6d84d
chore: fix whitespace
amd-arosa b725282
rocjitsu DISABLE_AMDGPU_TARGETS
amd-arosa 1967661
build(emulation): rename rocjitsu simulation wrapper
amd-arosa e335f15
build_tools: add rocjitsu artifact installer support
amd-arosa 02891cc
Support rocjitsu source in emulation or experimental
amd-arosa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Copyright Advanced Micro Devices, Inc. | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| # ROCm Emulation Tools | ||
|
|
||
| if(THEROCK_ENABLE_ROCJITSU) | ||
| ############################################################################## | ||
| # rocjitsu | ||
| # | ||
| # ROCm Just-in-Time Suite: simulation, virtualization, and instrumentation | ||
| # tools for AMD GPU applications. Provides ISA-level execution of AMD GPU | ||
| # and RISC-V machine code from HIP fat binaries without requiring GPU | ||
| # hardware. | ||
| ############################################################################## | ||
|
|
||
| if(EXISTS "${THEROCK_ROCM_SYSTEMS_SOURCE_DIR}/emulation/rocjitsu/CMakeLists.txt") | ||
| set(_rocjitsu_source_dir "${THEROCK_ROCM_SYSTEMS_SOURCE_DIR}/emulation/rocjitsu") | ||
| elseif(EXISTS "${THEROCK_ROCM_SYSTEMS_SOURCE_DIR}/experimental/rocjitsu/CMakeLists.txt") | ||
| set(_rocjitsu_source_dir "${THEROCK_ROCM_SYSTEMS_SOURCE_DIR}/experimental/rocjitsu") | ||
| else() | ||
| message(FATAL_ERROR "rocjitsu source directory not found under rocm-systems/emulation or rocm-systems/experimental") | ||
| endif() | ||
|
|
||
| therock_cmake_subproject_declare(rocjitsu | ||
| USE_DIST_AMDGPU_TARGETS | ||
| EXTERNAL_SOURCE_DIR "${_rocjitsu_source_dir}" | ||
| BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/rocjitsu" | ||
| BACKGROUND_BUILD | ||
| CMAKE_ARGS | ||
| -DRJ_BUILD_GUI=OFF | ||
| -DBUILD_TESTING=${THEROCK_BUILD_TESTING} | ||
| ) | ||
|
|
||
| therock_cmake_subproject_glob_c_sources(rocjitsu | ||
| SUBDIRS | ||
| lib | ||
| tools | ||
| tests | ||
| ) | ||
|
|
||
| therock_cmake_subproject_activate(rocjitsu) | ||
|
|
||
| therock_cmake_subproject_build_test(rocjitsu | ||
| COMMAND "${CMAKE_CTEST_COMMAND}" --output-on-failure --no-tests=error | ||
| ) | ||
|
|
||
| therock_test_validate_shared_lib(PATH rocjitsu/dist/lib | ||
| LIB_NAMES | ||
| librocjitsu.so | ||
| ) | ||
|
|
||
| therock_provide_artifact(rocjitsu | ||
| TARGET_NEUTRAL | ||
| DESCRIPTOR artifact-rocjitsu.toml | ||
| COMPONENTS | ||
| dbg | ||
| dev | ||
| lib | ||
| run | ||
| SUBPROJECT_DEPS | ||
| rocjitsu | ||
| ) | ||
| endif() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # rocjitsu | ||
| [components.lib."emulation/rocjitsu/stage"] | ||
| [components.dbg."emulation/rocjitsu/stage"] | ||
| [components.dev."emulation/rocjitsu/stage"] | ||
| [components.run."emulation/rocjitsu/stage"] | ||
| include = [ | ||
| "share/rocjitsu/**", | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.