Skip to content
Closed
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: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
[submodule "rocm-systems"]
path = rocm-systems
url = https://github.com/ROCm/rocm-systems.git
branch = develop
branch = users/kcossett-amd/rocprof-sys-build-examples
[submodule "spirv-llvm-translator"]
path = compiler/spirv-llvm-translator
url = https://github.com/ROCm/SPIRV-LLVM-Translator.git
Expand Down
7 changes: 7 additions & 0 deletions BUILD_TOPOLOGY.toml
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,13 @@ feature_name = "ROCPROFSYS"
feature_group = "PROFILER"
disable_platforms = ["windows"]

[artifacts.rocprofiler-systems-examples]
artifact_group = "profiler-apps"
type = "target-specific"
artifact_deps = ["rocprofiler-systems"]
feature_group = "PROFILER"
disable_platforms = ["windows"]

# --- Data Center Tools ---

[artifacts.rdc]
Expand Down
3 changes: 3 additions & 0 deletions build_tools/install_rocm_from_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ def retrieve_artifacts_by_run_id(args):
extra_artifacts.append("rocprofiler-systems")
# Contains executables (rocprof-sys-run, rocprof-sys-instrument, etc.)
argv.append("rocprofiler-systems_run")
if args.tests:
# Contains example binaries primarily used in rocprofiler-systems tests
extra_artifacts.append("rocprofiler-systems-examples")
if args.rocrtst:
extra_artifacts.append("rocrtst")
# rocrtst depends on sysdeps-hwloc (which depends on sysdeps-libpciaccess)
Expand Down
59 changes: 48 additions & 11 deletions profiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ endif(THEROCK_BUILD_TESTING)
gfx942
CMAKE_ARGS
-DHIP_PLATFORM=amd
-DENABLE_TESTS=${THEROCK_BUILD_TESTING}
-DINSTALL_TESTS=${THEROCK_BUILD_TESTING}
-DTEST_FROM_INSTALL=${THEROCK_BUILD_TESTING}
-DENABLE_TESTS=OFF
-DINSTALL_TESTS=OFF
-DTEST_FROM_INSTALL=OFF
-DCHECK_PYTHON_DEPS=OFF
CMAKE_INCLUDES
therock_explicit_finders.cmake
Expand Down Expand Up @@ -227,12 +227,6 @@ endif(THEROCK_BUILD_TESTING)
# rocprofiler-systems requires GCC, but sanitizer builds use Clang.
# Skip enabling rocprofiler-systems when building with sanitizers.
if (THEROCK_ENABLE_ROCPROFSYS AND THEROCK_SANITIZER STREQUAL "")
# Escape semicolons in GPU targets list to prevent shell interpretation
if (THEROCK_DIST_AMDGPU_TARGETS STREQUAL "THEROCK_DIST_AMDGPU_TARGETS-NOTFOUND")
set(_ROCPROFSYS_GFX_TARGETS_ESCAPED "")
else()
string(REPLACE ";" "\\;" _ROCPROFSYS_GFX_TARGETS_ESCAPED "${THEROCK_DIST_AMDGPU_TARGETS}")
endif()

therock_cmake_subproject_declare(rocprofiler-systems
USE_DIST_AMDGPU_TARGETS
Expand All @@ -247,7 +241,6 @@ endif(THEROCK_BUILD_TESTING)
-DROCPROFSYS_BUILD_BOOST=ON
-DROCPROFSYS_BUILD_DYNINST=ON
-DROCPROFSYS_BUILD_FOR_THEROCK=ON
-DROCPROFSYS_GFX_TARGETS="${_ROCPROFSYS_GFX_TARGETS_ESCAPED}"
-DROCPROFSYS_BUILD_SPDLOG=OFF
INSTALL_RPATH_DIRS
"lib"
Expand All @@ -269,7 +262,7 @@ endif(THEROCK_BUILD_TESTING)
therock_cmake_subproject_glob_c_sources(rocprofiler-systems
SUBDIRS .
)

therock_cmake_subproject_provide_package(rocprofiler-systems rocprofiler-systems lib/cmake/rocprofiler-systems)
therock_cmake_subproject_activate(rocprofiler-systems)

therock_provide_artifact(rocprofiler-systems
Expand All @@ -281,10 +274,54 @@ endif(THEROCK_BUILD_TESTING)
doc
lib
run
test
SUBPROJECT_DEPS
amdsmi
rocprofiler-sdk
rocprofiler-systems
)

# Build the examples/ folder for tests. These are target-specific
if(THEROCK_BUILD_TESTING)

# Escape semicolons in GPU targets list to prevent shell interpretation
if (THEROCK_DIST_AMDGPU_TARGETS STREQUAL "THEROCK_DIST_AMDGPU_TARGETS-NOTFOUND")
set(_ROCPROFSYS_GFX_TARGETS_ESCAPED "")
else()
string(REPLACE ";" "\\;" _ROCPROFSYS_GFX_TARGETS_ESCAPED "${THEROCK_DIST_AMDGPU_TARGETS}")
endif()

therock_cmake_subproject_declare(rocprofiler-systems-examples
USE_DIST_AMDGPU_TARGETS
EXTERNAL_SOURCE_DIR "${THEROCK_ROCM_SYSTEMS_SOURCE_DIR}/projects/rocprofiler-systems/examples"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/rocprofiler-systems-examples"
BACKGROUND_BUILD
CMAKE_ARGS
-DHIP_PLATFORM=amd
-DROCPROFSYS_GFX_TARGETS="${_ROCPROFSYS_GFX_TARGETS_ESCAPED}"
-DROCPROFSYS_BUILD_FOR_THEROCK="${THEROCK_BUILD_TESTING}"
INSTALL_RPATH_DIRS
"lib"
"lib/rocprofiler-systems"
"llvm/lib"
RUNTIME_DEPS
rocprofiler-systems
)
therock_cmake_subproject_glob_c_sources(rocprofiler-systems-examples
SUBDIRS .
)
therock_cmake_subproject_activate(rocprofiler-systems-examples)

therock_provide_artifact(rocprofiler-systems-examples
DESCRIPTOR artifact-rocprofiler-systems-examples.toml
COMPONENTS
test
SUBPROJECT_DEPS
rocprofiler-systems
rocprofiler-systems-examples
)

endif()

endif(THEROCK_ENABLE_ROCPROFSYS AND THEROCK_SANITIZER STREQUAL "")
endif(THEROCK_ENABLE_ROCPROFV3)
5 changes: 5 additions & 0 deletions profiler/artifact-rocprofiler-systems-examples.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# rocprofiler-systems-examples
[components.test."profiler/rocprofiler-systems-examples/stage"]
include = [
"share/rocprofiler-systems/**",
]
8 changes: 7 additions & 1 deletion profiler/artifact-rocprofiler-systems.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ include = [
[components.lib."profiler/rocprofiler-systems/stage"]
include = [
"libexec/rocprofiler-systems/**",
"share/rocprofiler-systems/**",
]
[components.run."profiler/rocprofiler-systems/stage"]
include = [
"bin/**",
"share/rocprofiler-systems/**"
]
exclude = [
"share/rocprofiler-systems/tests/**"
]
[components.test."profiler/rocprofiler-systems/stage"]
include = [
"share/rocprofiler-systems/tests/**"
]
2 changes: 1 addition & 1 deletion rocm-systems
Submodule rocm-systems updated 31 files
+0 −4 .github/labeler.yml
+16 −1 .github/workflows/rocprofiler-systems-formatting.yml
+1 −2 projects/rccl/src/device/sendrecv.h
+5 −5 projects/rccl/src/enqueue.cc
+0 −1 projects/rccl/src/include/comm.h
+5 −17 projects/rccl/src/include/device.h
+0 −1 projects/rccl/src/include/rccl_common.h
+4 −7 projects/rccl/src/init.cc
+0 −16 projects/rccl/src/rccl_wrap.cc
+29 −548 projects/rocprofiler-sdk/source/docs/how-to/using-rocpd-output-format.rst
+6 −476 projects/rocprofiler-sdk/source/lib/python/rocpd/README.md
+25 −46 projects/rocprofiler-systems/CMakeLists.txt
+44 −2 projects/rocprofiler-systems/cmake/MacroUtilities.cmake
+1 −0 projects/rocprofiler-systems/docs/conf.py
+45 −0 projects/rocprofiler-systems/examples/CMakeLists.txt
+3 −1 projects/rocprofiler-systems/examples/fork/CMakeLists.txt
+1 −8 projects/rocprofiler-systems/examples/openmp/CMakeLists.txt
+2 −2 projects/rocprofiler-systems/examples/openmp/external/CMakeLists.txt
+4 −1 projects/rocprofiler-systems/examples/rccl/CMakeLists.txt
+1 −1 projects/rocprofiler-systems/examples/shmem/CMakeLists.txt
+5 −12 projects/rocr-runtime/libhsakmt/src/memory.c
+0 −13 projects/rocshmem/docs/api/env_variables.rst
+0 −1 projects/rocshmem/src/CMakeLists.txt
+0 −25 projects/rocshmem/src/constmem.cpp
+0 −42 projects/rocshmem/src/constmem.hpp
+0 −1 projects/rocshmem/src/envvar.cpp
+0 −1 projects/rocshmem/src/envvar.hpp
+2 −2 projects/rocshmem/src/gda/bnxt/queue_pair_bnxt.cpp
+4 −11 projects/rocshmem/src/gda/context_gda_tmpl_device.hpp
+0 −39 projects/rocshmem/src/gda/gda_enums.hpp
+0 −5 projects/rocshmem/src/rocshmem.cpp
Loading