2f9b1767e9
* Handle hsa_queue_destroy after finalization
- fixes issue where hsa_queue_destroy(...) is invoked after rocprofiler-sdk has finalized
- hsa::get_queue_controller() returns pointer
- if queue controller is a null pointer, skip invoking QueueController::destroy_queue
* Update HIP/HSA/marker update_table logging
* Update rocprofv3 tests
- remove HSA_TOOLS_LIB env variable
- remove setting ROCPROFILER_LOG_LEVEL env variable
- add timeouts to tests which are missing them
* Disable thread sanitizer deadlock detection
* Update CI workflow
- rename vega20-ubuntu job to core-ci
- enable navi32 in core-ci and sanitizers
* Update run-ci.py
- set gcovr html medium and high threshold
* Update lib/rocprofiler-sdk/hsa/queue_controller.cpp
- remove this capture from enable/disable serialization
* Update lib/rocprofiler-sdk/hsa/{hsa_barrier,profile_serializer}.*
- hsa_barrier::set_barrier accepts const-ref to queue map
- profile_serializer::enable and profile_serializer::disable accept const-ref to queue map
* Logging for HIP/HSA/marker/profile_serializer
* Logging for HIP/HSA/marker/queue_controller
* Improve test_retired_correlation_ids asserts
* Fix tests/counter-collection/validate.py
- scale expected SQ_WAVES counter value based on warp size of GPU
* Tweak github comment for code coverage
* Remove gcovr html high/medium threshold args
* Fix tests/counter-collection/validate.py
- round before casting to int in test_counter_values
* operator bool for profile_serializer
- only wait on CV if profile_serializer is used
* Logging updates (profile_serializer + code_object)
* Update counter-collection validate.py
* QueueController does not wait on CV if finalizing/finalized
* Update CI workflow
- remove navi32 from core job
* Improve HIP/HSA/marker tracing get_functor/functor
- remove lambda wrapper around functor
* Update lib/rocprofiler-sdk/hsa/queue_controller.cpp
- do not acquire cvmutex lock during finalization
* Update lib/rocprofiler-sdk/hsa/hsa_barrier.*
- move ctor and dtor to implementation
- skip signal store screlease and destroy if already finalized
* Update CI workflow
- remove navi32 runners
* bwelton fixes for hangs
* CMake improvements + simplified demangle
- remove amd-comgr from common target (and thus removed from roctx DT_NEEDED)
---------
Co-authored-by: Benjamin Welton <bewelton@amd.com>
67 lignes
2.5 KiB
CMake
67 lignes
2.5 KiB
CMake
#
|
|
#
|
|
#
|
|
rocprofiler_deactivate_clang_tidy()
|
|
|
|
include(GoogleTest)
|
|
|
|
# -------------------------------------------------------------------------------------- #
|
|
#
|
|
# Link to static rocprofiler library
|
|
#
|
|
# -------------------------------------------------------------------------------------- #
|
|
|
|
set(rocprofiler_lib_sources agent.cpp buffer.cpp contexts.cpp hsa.cpp naming.cpp
|
|
timestamp.cpp version.cpp hsa_barrier.cpp)
|
|
|
|
add_executable(rocprofiler-lib-tests)
|
|
target_sources(rocprofiler-lib-tests PRIVATE ${rocprofiler_lib_sources} details/agent.cpp)
|
|
target_link_libraries(
|
|
rocprofiler-lib-tests
|
|
PRIVATE rocprofiler::rocprofiler-static-library
|
|
rocprofiler::rocprofiler-common-library rocprofiler::rocprofiler-hsa-runtime
|
|
GTest::gtest GTest::gtest_main)
|
|
|
|
gtest_add_tests(
|
|
TARGET rocprofiler-lib-tests
|
|
SOURCES ${rocprofiler_lib_sources}
|
|
TEST_LIST lib_TESTS
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set_tests_properties(${lib_TESTS} PROPERTIES TIMEOUT 45 LABELS "unittests")
|
|
|
|
# -------------------------------------------------------------------------------------- #
|
|
#
|
|
# Link to shared rocprofiler library
|
|
#
|
|
# -------------------------------------------------------------------------------------- #
|
|
|
|
set(rocprofiler_shared_lib_sources external_correlation.cpp intercept_table.cpp
|
|
registration.cpp roctx.cpp status.cpp)
|
|
|
|
add_executable(rocprofiler-lib-tests-shared)
|
|
target_sources(rocprofiler-lib-tests-shared PRIVATE ${rocprofiler_shared_lib_sources})
|
|
target_link_libraries(
|
|
rocprofiler-lib-tests-shared
|
|
PRIVATE rocprofiler::rocprofiler-shared-library
|
|
rocprofiler::rocprofiler-common-library
|
|
rocprofiler::rocprofiler-hsa-runtime
|
|
rocprofiler::rocprofiler-sdk-roctx-shared-library
|
|
GTest::gtest
|
|
GTest::gtest_main)
|
|
set_target_properties(rocprofiler-lib-tests-shared PROPERTIES BUILD_RPATH
|
|
"\$ORIGIN/../lib")
|
|
|
|
gtest_add_tests(
|
|
TARGET rocprofiler-lib-tests-shared
|
|
SOURCES ${rocprofiler_shared_lib_sources}
|
|
TEST_LIST shared_lib_TESTS
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set(rocprofiler-lib-tests-env
|
|
"LD_LIBRARY_PATH=${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}:$ENV{LD_LIBRARY_PATH}")
|
|
|
|
set_tests_properties(
|
|
${shared_lib_TESTS} PROPERTIES TIMEOUT 360 LABELS "unittests" ENVIRONMENT
|
|
"${rocprofiler-lib-tests-env}")
|