[SDK] Support CMake option for using internal RCCL tracing + (temporary) enable in CI (#457)
* Temp: disable RCCL tracing
* Update continuous_integration.yml
* Update continuous_integration.yml
* Update continuous_integration.yml
* Adding option to disable rccl tracing from CMake
* Update codeql.yml
* Misc updates
- ROCPROFILER_BUILD_RCCL -> ROCPROFILER_INTERNAL_RCCL_API_TRACE
- env.EXTRA_TEMP_CMAKE_OPTIONS -> env.GLOBAL_CMAKE_OPTIONS
- add (advanced) option ROCPROFILER_INTERNAL_RCCL_API_TRACE
* Fix rocprofiler::sdk::get_enum_label
- missing enum labels for HIP_RUNTIME_API_TABLE_STEP_VERSION > 8
* Update tests/rocprofv3/advanced-thread-trace/CMakeLists.txt
- improve various aspect of cmake -- particularly echoing where attdecoder_LIBRARY was found
* Use CMAKE_MESSAGE_INDENT
- add prefix to cmake messages to help indicate where messages are coming from
- make find_package(Python3 ...) QUIET for bindings
* Fix rocprofiler::sdk::get_enum_label
- handle HSA_AMD_EXT_API_TABLE_MAJOR_VERSION
* Fix rocprofv3 message for att library path
* Fix tests/rocprofv3/advanced-thread-trace/att_input.yml config
* Fix rocprofv3 check_att_capability + soversion/version library resolution
- Account for ROCPROF_ATT_LIBRARY_PATH in env in check_att_capability
- Add resolve_library_path
- supports resolution of library names to SOVERSION and VERSION paths
* Fix python linting error (unused import)
---------
Co-authored-by: Ammar ELWazir <aelwazir@amd.com>
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
[ROCm/rocprofiler-sdk commit: aeb1621c2b]
This commit is contained in:
@@ -11,9 +11,7 @@ function(rocprofiler_sdk_get_gfx_architectures _VAR)
|
||||
set(ARG_DELIM ", ")
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED ARG_PREFIX)
|
||||
set(ARG_PREFIX "[${PROJECT_NAME}] ")
|
||||
endif()
|
||||
set(CMAKE_MESSAGE_INDENT "[${PROJECT_NAME}]${ARG_PREFIX} ")
|
||||
|
||||
find_program(
|
||||
rocminfo_EXECUTABLE
|
||||
@@ -55,9 +53,7 @@ endfunction()
|
||||
function(rocprofiler_sdk_pc_sampling_disabled _VAR)
|
||||
cmake_parse_arguments(ARG "ECHO" "PREFIX" "" ${ARGN})
|
||||
|
||||
if(NOT DEFINED ARG_PREFIX)
|
||||
set(ARG_PREFIX "[${PROJECT_NAME}] ")
|
||||
endif()
|
||||
set(CMAKE_MESSAGE_INDENT "[${PROJECT_NAME}]${ARG_PREFIX} ")
|
||||
|
||||
rocprofiler_sdk_get_gfx_architectures(rocprofiler-sdk-tests-gfx-info ECHO)
|
||||
list(GET rocprofiler-sdk-tests-gfx-info 0 pc-sampling-gpu-0-gfx-info)
|
||||
@@ -70,10 +66,7 @@ function(rocprofiler_sdk_pc_sampling_disabled _VAR)
|
||||
FALSE
|
||||
PARENT_SCOPE)
|
||||
if(ARG_ECHO)
|
||||
message(
|
||||
STATUS
|
||||
"${ARG_PREFIX}PC Sampling is enabled for ${pc-sampling-gpu-0-gfx-info}"
|
||||
)
|
||||
message(STATUS "PC Sampling is enabled for ${pc-sampling-gpu-0-gfx-info}")
|
||||
endif()
|
||||
else()
|
||||
# PC sampling is disabled on this architecture.
|
||||
@@ -81,10 +74,7 @@ function(rocprofiler_sdk_pc_sampling_disabled _VAR)
|
||||
TRUE
|
||||
PARENT_SCOPE)
|
||||
if(ARG_ECHO)
|
||||
message(
|
||||
STATUS
|
||||
"${ARG_PREFIX}PC Sampling is disabled for ${pc-sampling-gpu-0-gfx-info}"
|
||||
)
|
||||
message(STATUS "PC Sampling is disabled for ${pc-sampling-gpu-0-gfx-info}")
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
@@ -94,9 +84,7 @@ endfunction()
|
||||
function(rocprofiler_sdk_pc_sampling_stochastic_disabled _VAR)
|
||||
cmake_parse_arguments(ARG "ECHO" "PREFIX" "" ${ARGN})
|
||||
|
||||
if(NOT DEFINED ARG_PREFIX)
|
||||
set(ARG_PREFIX "[${PROJECT_NAME}] ")
|
||||
endif()
|
||||
set(CMAKE_MESSAGE_INDENT "[${PROJECT_NAME}]${ARG_PREFIX} ")
|
||||
|
||||
rocprofiler_sdk_get_gfx_architectures(rocprofiler-sdk-tests-gfx-info ECHO)
|
||||
list(GET rocprofiler-sdk-tests-gfx-info 0 pc-sampling-gpu-0-gfx-info)
|
||||
@@ -108,10 +96,7 @@ function(rocprofiler_sdk_pc_sampling_stochastic_disabled _VAR)
|
||||
FALSE
|
||||
PARENT_SCOPE)
|
||||
if(ARG_ECHO)
|
||||
message(
|
||||
STATUS
|
||||
"${ARG_PREFIX}PC Sampling is enabled for ${pc-sampling-gpu-0-gfx-info}"
|
||||
)
|
||||
message(STATUS "PC Sampling is enabled for ${pc-sampling-gpu-0-gfx-info}")
|
||||
endif()
|
||||
else()
|
||||
# PC sampling is disabled on this architecture.
|
||||
@@ -119,10 +104,7 @@ function(rocprofiler_sdk_pc_sampling_stochastic_disabled _VAR)
|
||||
TRUE
|
||||
PARENT_SCOPE)
|
||||
if(ARG_ECHO)
|
||||
message(
|
||||
STATUS
|
||||
"${ARG_PREFIX}PC Sampling is disabled for ${pc-sampling-gpu-0-gfx-info}"
|
||||
)
|
||||
message(STATUS "PC Sampling is disabled for ${pc-sampling-gpu-0-gfx-info}")
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user