76333 Commits

Author SHA1 Message Date
Nives Vukovic 1ca4fdc6f7 EXSWHTEC-284 - Implement tests for square/cube root device math functions #228
Change-Id: Ic19a440337cf3724f476c464125977b9b30b023e


[ROCm/hip-tests commit: 46ada25730]
2024-02-26 12:28:43 +05:30
Nives Vukovic 46ada25730 EXSWHTEC-284 - Implement tests for square/cube root device math functions #228
Change-Id: Ic19a440337cf3724f476c464125977b9b30b023e
2024-02-26 12:28:43 +05:30
Mirza Halilcevic e4b44cc413 EXSWHTEC-291 - Implement tests for floating-point and integer math intrinsics #227
Change-Id: I55a3cbf5ce15cd93a280af295b88c28e51246148


[ROCm/hip-tests commit: 1729154341]
2024-02-26 12:28:11 +05:30
Mirza Halilcevic 1729154341 EXSWHTEC-291 - Implement tests for floating-point and integer math intrinsics #227
Change-Id: I55a3cbf5ce15cd93a280af295b88c28e51246148
2024-02-26 12:28:11 +05:30
Jonathan R. Madsen d75ccb9081 Search for rocprofiler_set_api_table(...) via RTLD_DEFAULT (#56)
* Search for rocprofiler_set_api_table(...) via RTLD_DEFAULT

- check if rocprofiler_set_api_table function has already been loaded via dlsym(RTLD_DEFAULT, ...)
- fix warning about conflicting ROCM_DEP_ROCMCORE and ROCPROFILER_REGISTER_DEP_ROCMCORE

* Bump version to 0.4.0

[ROCm/rocprofiler-register commit: e2db37ca8d]
2024-02-25 21:14:27 -06:00
Jonathan R. Madsen e2db37ca8d Search for rocprofiler_set_api_table(...) via RTLD_DEFAULT (#56)
* Search for rocprofiler_set_api_table(...) via RTLD_DEFAULT

- check if rocprofiler_set_api_table function has already been loaded via dlsym(RTLD_DEFAULT, ...)
- fix warning about conflicting ROCM_DEP_ROCMCORE and ROCPROFILER_REGISTER_DEP_ROCMCORE

* Bump version to 0.4.0
2024-02-25 21:14:27 -06:00
SrirakshaNag b96c983373 tools support for callback counter collection (#515)
* tools support for callback counter collection

* source formatting (clang-format v11) (#516)

Co-authored-by: SrirakshaNag <SrirakshaNag@users.noreply.github.com>

* Fixing conflicts with main

* source formatting (clang-format v11) (#517)

Co-authored-by: SrirakshaNag <SrirakshaNag@users.noreply.github.com>

* source formatting (clang-format v11) (#529)

Co-authored-by: SrirakshaNag <104580803+SrirakshaNag@users.noreply.github.com>

* Adding a column for counter name and counter value

* source formatting (clang-format v11) (#530)

Co-authored-by: SrirakshaNag <104580803+SrirakshaNag@users.noreply.github.com>

* fixing issues with atomic

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: SrirakshaNag <SrirakshaNag@users.noreply.github.com>

[ROCm/rocprofiler-sdk commit: bd81e6a5f8]
2024-02-25 20:30:38 -06:00
SrirakshaNag bd81e6a5f8 tools support for callback counter collection (#515)
* tools support for callback counter collection

* source formatting (clang-format v11) (#516)

Co-authored-by: SrirakshaNag <SrirakshaNag@users.noreply.github.com>

* Fixing conflicts with main

* source formatting (clang-format v11) (#517)

Co-authored-by: SrirakshaNag <SrirakshaNag@users.noreply.github.com>

* source formatting (clang-format v11) (#529)

Co-authored-by: SrirakshaNag <104580803+SrirakshaNag@users.noreply.github.com>

* Adding a column for counter name and counter value

* source formatting (clang-format v11) (#530)

Co-authored-by: SrirakshaNag <104580803+SrirakshaNag@users.noreply.github.com>

* fixing issues with atomic

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: SrirakshaNag <SrirakshaNag@users.noreply.github.com>
2024-02-25 20:30:38 -06:00
Harish Kasiviswanathan 858dfd364f libhsakmt: Use correct gpu_id for GPU system memory
For GTT memory allocation if GPU is provided honour it.

Change-Id: Iea9a26bc44cd3daa2337845f53dc430787b0643b
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
2024-02-25 10:45:36 -05:00
Harish Kasiviswanathan aeddcb8156 libhsakmt: Use correct gpu_id for GPU system memory
For GTT memory allocation if GPU is provided honour it.

Change-Id: Iea9a26bc44cd3daa2337845f53dc430787b0643b
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>


[ROCm/ROCR-Runtime commit: 858dfd364f]
2024-02-25 10:45:36 -05:00
Ammar ELWazir a7e1a05b34 Update run-ci.py (#534)
[ROCm/rocprofiler-sdk commit: 4bb95f885b]
2024-02-24 14:48:41 -06:00
Ammar ELWazir 4bb95f885b Update run-ci.py (#534) 2024-02-24 14:48:41 -06:00
jeffqjiangNew c2c567b6f2 * rocDecode: Take care of the case where DecodeFrame() does not return 1 (decoded frame number) so the accumulated decoded frame number does not match the user targeted frame number and the decoding will not stop. (#257)
[ROCm/rocdecode commit: 320c0954a3]
2024-02-23 22:54:29 -05:00
jeffqjiangNew 320c0954a3 * rocDecode: Take care of the case where DecodeFrame() does not return 1 (decoded frame number) so the accumulated decoded frame number does not match the user targeted frame number and the decoding will not stop. (#257) 2024-02-23 22:54:29 -05:00
Maisam Arif 66ae2e6a61 Merge amd-dev into amd-master 20240223
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I0b2f418f10bb3fbdecd3bb55d7560309de31d30c
2024-02-23 20:55:48 -06:00
Maisam Arif f92d4af552 Merge amd-dev into amd-master 20240223
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I0b2f418f10bb3fbdecd3bb55d7560309de31d30c


[ROCm/amdsmi commit: 66ae2e6a61]
2024-02-23 20:55:48 -06:00
Maisam Arif 69caba8727 Bump Version to 24.4.0.0 & Corrected argument checks for set subcommand
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I651f8ca652c764f30845503dd869f435f728d5ba
2024-02-23 20:47:19 -06:00
Maisam Arif b390bbec7a Bump Version to 24.4.0.0 & Corrected argument checks for set subcommand
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I651f8ca652c764f30845503dd869f435f728d5ba


[ROCm/amdsmi commit: 69caba8727]
2024-02-23 20:47:19 -06:00
Jose Santos 65de1593e5 update test_profile_general.py
Signed-off-by: Jose Santos <josantos@login1.hpcfund>


[ROCm/rocprofiler-compute commit: 5a26c0c87a]
2024-02-23 17:21:38 -06:00
Jose Santos 5a26c0c87a update test_profile_general.py
Signed-off-by: Jose Santos <josantos@login1.hpcfund>
2024-02-23 17:21:38 -06:00
Jose Santos fa2ac2631e Adding pytest_profile_general.py
Signed-off-by: Jose Santos <josantos@login1.hpcfund>


[ROCm/rocprofiler-compute commit: 61c110ccd7]
2024-02-23 17:21:38 -06:00
Jose Santos 61c110ccd7 Adding pytest_profile_general.py
Signed-off-by: Jose Santos <josantos@login1.hpcfund>
2024-02-23 17:21:38 -06:00
Nicholas Curtis 47316e0969 Add requirements.txt for docs
Signed-off-by: Nicholas Curtis <nicurtis@amd.com>


[ROCm/rocprofiler-compute commit: 99a6a244ac]
2024-02-23 15:18:34 -06:00
Nicholas Curtis 99a6a244ac Add requirements.txt for docs
Signed-off-by: Nicholas Curtis <nicurtis@amd.com>
2024-02-23 15:18:34 -06:00
kjayapra-amd d30e344ae0 SWDEV-446959 - Check fatbinaryinfo for nullptr and return hipErrorInvalidDevice.
Change-Id: Iabc0d8b66ddf73a92e67dd469f1a8bc0b54b9309


[ROCm/clr commit: 8a715ba58c]
2024-02-23 14:45:43 -06:00
kjayapra-amd 8a715ba58c SWDEV-446959 - Check fatbinaryinfo for nullptr and return hipErrorInvalidDevice.
Change-Id: Iabc0d8b66ddf73a92e67dd469f1a8bc0b54b9309
2024-02-23 14:45:43 -06:00
Wenkai Du 874998033f Add new GPU model (#1080)
[ROCm/rccl commit: 74f9e5db64]
2024-02-23 12:19:42 -08:00
Wenkai Du 74f9e5db64 Add new GPU model (#1080) 2024-02-23 12:19:42 -08:00
jujiang 91d73f01f9 SWDEV-447465 - Update HIP documents for the repos link change
Change-Id: Ib191c96b57458c7abc9c490329d582c28d4632a7


[ROCm/hip commit: 25f61a1f50]
2024-02-23 13:18:01 -05:00
jujiang 25f61a1f50 SWDEV-447465 - Update HIP documents for the repos link change
Change-Id: Ib191c96b57458c7abc9c490329d582c28d4632a7
2024-02-23 13:18:01 -05:00
Jonathan R. Madsen a360de4550 Correlation ID Retirement + misc (#527)
* Correlation ID Retirement

- include/rocprofiler-sdk/buffer_tracing.h
  - add rocprofiler_buffer_tracing_correlation_id_retirement_record_t
- include/rocprofiler-sdk/fwd.h
  - ROCPROFILER_BUFFER_TRACING_CORRELATION_ID_RETIREMENT
- lib/rocprofiler-sdk/buffer_tracing.cpp
  - kind string for correlation id retirement
- lib/rocprofiler-sdk/buffer.hpp
  - emplace returns bool
- lib/rocprofiler-sdk/registration.cpp
  - pass lib_instance to copy_table functions
- lib/rocprofiler-sdk/context/context.*
  - update correlation_id struct
    - make ref_count private
    - {get,add,sub}_ref_count() functions
      - sub_ref_count() performs correlation id retirement
    - use stack for "latest" thread-local correlation id
- lib/rocprofiler-sdk/hip/hip.*
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - return in iterate_args
  - handle table instance in copy_table
- lib/rocprofiler-sdk/hsa/hsa.*
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - return in iterate_args
  - handle table instance in copy_table
- lib/rocprofiler-sdk/marker/marker.*
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - return in iterate_args
  - handle table instance in copy_table
- lib/rocprofiler-sdk/hsa/async_copy.cpp
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - handle table instance in async_copy_init / async_copy_save
- lib/rocprofiler-sdk/hsa/queue.cpp
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - tweak to external correlation id mapping in WriteInterceptor
- tests/async-copy-tracing/validate.py
  - check retired_correlation_ids
- tests/common/serialization.hpp
  - support rocprofiler_buffer_tracing_correlation_id_retirement_record_t
- tests/kernel-tracing/validate.py
  - check retired_correlation_ids
- tests/common/CMakeLists.txt
  - perfetto external project
- tests/common/perfetto.hpp
  - perfetto categories + aliases
  - add_perfetto_annotation
  - metaprogramming helpers
- tests/tools/CMakeLists.txt
  - link to tests-perfetto
- tests/tools/json-tool.cpp
  - demangling functions
  - serialization of marker API callback args
  - reduce parallel bottleneck in tool_tracing_callback
  - support correlation id retirement
  - Multiple threads for buffers
  - Support ROCPROFILER_TOOL_CONTEXTS_EXCLUDE env variable
  - write_perfetto() function

* Update tests/rocprofv3/tracing/validate.py

- tweak test_hsa_api_trace

* Update PTL submodule

- fixes for data race during destruction of task

* Update lib/rocprofiler-sdk/buffer.*

- unique_buffer_vec_t uses std::unique_ptr instead of allocator::unique_static_ptr_t

* Reduce timeouts in counter collection samples [skip ci]

* Update tests/tools/json-tool.cpp

- tweak demangle(string_view, int*) -> demangle(string_view, int&)

* Update lib/rocprofiler-sdk/hsa/async_copy.cpp

- move sub_ref_count() to later in async_copy_handler to delay retirement slightly more

[ROCm/rocprofiler-sdk commit: 875f53b608]
2024-02-23 10:30:33 -06:00
Jonathan R. Madsen 875f53b608 Correlation ID Retirement + misc (#527)
* Correlation ID Retirement

- include/rocprofiler-sdk/buffer_tracing.h
  - add rocprofiler_buffer_tracing_correlation_id_retirement_record_t
- include/rocprofiler-sdk/fwd.h
  - ROCPROFILER_BUFFER_TRACING_CORRELATION_ID_RETIREMENT
- lib/rocprofiler-sdk/buffer_tracing.cpp
  - kind string for correlation id retirement
- lib/rocprofiler-sdk/buffer.hpp
  - emplace returns bool
- lib/rocprofiler-sdk/registration.cpp
  - pass lib_instance to copy_table functions
- lib/rocprofiler-sdk/context/context.*
  - update correlation_id struct
    - make ref_count private
    - {get,add,sub}_ref_count() functions
      - sub_ref_count() performs correlation id retirement
    - use stack for "latest" thread-local correlation id
- lib/rocprofiler-sdk/hip/hip.*
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - return in iterate_args
  - handle table instance in copy_table
- lib/rocprofiler-sdk/hsa/hsa.*
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - return in iterate_args
  - handle table instance in copy_table
- lib/rocprofiler-sdk/marker/marker.*
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - return in iterate_args
  - handle table instance in copy_table
- lib/rocprofiler-sdk/hsa/async_copy.cpp
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - handle table instance in async_copy_init / async_copy_save
- lib/rocprofiler-sdk/hsa/queue.cpp
  - migrate to new {get,add,sub}_ref_count() for correlation ids
  - tweak to external correlation id mapping in WriteInterceptor
- tests/async-copy-tracing/validate.py
  - check retired_correlation_ids
- tests/common/serialization.hpp
  - support rocprofiler_buffer_tracing_correlation_id_retirement_record_t
- tests/kernel-tracing/validate.py
  - check retired_correlation_ids
- tests/common/CMakeLists.txt
  - perfetto external project
- tests/common/perfetto.hpp
  - perfetto categories + aliases
  - add_perfetto_annotation
  - metaprogramming helpers
- tests/tools/CMakeLists.txt
  - link to tests-perfetto
- tests/tools/json-tool.cpp
  - demangling functions
  - serialization of marker API callback args
  - reduce parallel bottleneck in tool_tracing_callback
  - support correlation id retirement
  - Multiple threads for buffers
  - Support ROCPROFILER_TOOL_CONTEXTS_EXCLUDE env variable
  - write_perfetto() function

* Update tests/rocprofv3/tracing/validate.py

- tweak test_hsa_api_trace

* Update PTL submodule

- fixes for data race during destruction of task

* Update lib/rocprofiler-sdk/buffer.*

- unique_buffer_vec_t uses std::unique_ptr instead of allocator::unique_static_ptr_t

* Reduce timeouts in counter collection samples [skip ci]

* Update tests/tools/json-tool.cpp

- tweak demangle(string_view, int*) -> demangle(string_view, int&)

* Update lib/rocprofiler-sdk/hsa/async_copy.cpp

- move sub_ref_count() to later in async_copy_handler to delay retirement slightly more
2024-02-23 10:30:33 -06:00
Jonathan R. Madsen 561bbc92ea Correct the install locations of cmake config files (#55)
* Correct the install locations of cmake config files

The cmake config files should be installed in <Install_Prefix>/lib/cmake/<component_name>

* Apply suggestions from code review

* Correct the install locations of cmake config files

- ROCm standard for cmake config files is <install-prefix>/lib/cmake/<package-name>

---------

Co-authored-by: Ranjith Ramakrishnan <Ranjith.Ramakrishnan@amd.com>

[ROCm/rocprofiler-register commit: 1f0d06b6cb]
2024-02-23 10:17:58 -06:00
Jonathan R. Madsen 1f0d06b6cb Correct the install locations of cmake config files (#55)
* Correct the install locations of cmake config files

The cmake config files should be installed in <Install_Prefix>/lib/cmake/<component_name>

* Apply suggestions from code review

* Correct the install locations of cmake config files

- ROCm standard for cmake config files is <install-prefix>/lib/cmake/<package-name>

---------

Co-authored-by: Ranjith Ramakrishnan <Ranjith.Ramakrishnan@amd.com>
2024-02-23 10:17:58 -06:00
Karl W Schulz 75f2e00df3 updating testing files to meet formatting requirements
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>


[ROCm/rocprofiler-compute commit: aeb2161b2a]
2024-02-23 10:00:23 -06:00
Karl W Schulz aeb2161b2a updating testing files to meet formatting requirements
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
2024-02-23 10:00:23 -06:00
Jose Santos 450a0ec12c updating Pytest mark and tests/workloads
Signed-off-by: Jose Santos <josantos@login1.hpcfund>


[ROCm/rocprofiler-compute commit: b018d9207f]
2024-02-23 10:00:23 -06:00
Jose Santos b018d9207f updating Pytest mark and tests/workloads
Signed-off-by: Jose Santos <josantos@login1.hpcfund>
2024-02-23 10:00:23 -06:00
Jose Santos 4c8be26e27 updating analyze commands to new commands/workloads
Signed-off-by: Jose Santos <josantos@login1.hpcfund>


[ROCm/rocprofiler-compute commit: 4f96837157]
2024-02-23 10:00:23 -06:00
Jose Santos 4f96837157 updating analyze commands to new commands/workloads
Signed-off-by: Jose Santos <josantos@login1.hpcfund>
2024-02-23 10:00:23 -06:00
Jose Santos 52c5564ae4 Update test_analyze_workloads.py
Signed-off-by: Jose Santos <josantos@t007-004.hpcfund>


[ROCm/rocprofiler-compute commit: 6db524e5fe]
2024-02-23 10:00:23 -06:00
Jose Santos 6db524e5fe Update test_analyze_workloads.py
Signed-off-by: Jose Santos <josantos@t007-004.hpcfund>
2024-02-23 10:00:23 -06:00
Jose Santos 96d022151c update to new Omniperf workloads
Signed-off-by: Jose Santos <josantos@t007-004.hpcfund>


[ROCm/rocprofiler-compute commit: 40c8efc2ff]
2024-02-23 10:00:23 -06:00
Jose Santos 40c8efc2ff update to new Omniperf workloads
Signed-off-by: Jose Santos <josantos@t007-004.hpcfund>
2024-02-23 10:00:23 -06:00
Jose Santos 79c75edc48 Moving workloads to old
Signed-off-by: Jose Santos <josantos@login1.hpcfund>


[ROCm/rocprofiler-compute commit: 989e29cf81]
2024-02-23 10:00:23 -06:00
Jose Santos 989e29cf81 Moving workloads to old
Signed-off-by: Jose Santos <josantos@login1.hpcfund>
2024-02-23 10:00:23 -06:00
Mirza Halilcevic 5bf1d946ed EXSWHTEC-283 - Introduce base implementations for numerical accuracy tests #260
Change-Id: I9cf71b420b7fc73fcd9df162b963fda73878cacb


[ROCm/hip-tests commit: b0622f51e2]
2024-02-23 20:46:18 +05:30
Mirza Halilcevic b0622f51e2 EXSWHTEC-283 - Introduce base implementations for numerical accuracy tests #260
Change-Id: I9cf71b420b7fc73fcd9df162b963fda73878cacb
2024-02-23 20:46:18 +05:30
Dino Music 35e66b0327 EXSWHTEC-289 - Implement tests for remainder and rounding device math functions #234
Change-Id: I8413cfeb0cbf32e2e8369c5b1527c9794a595688


[ROCm/hip-tests commit: 111497351d]
2024-02-23 20:46:17 +05:30
Dino Music 111497351d EXSWHTEC-289 - Implement tests for remainder and rounding device math functions #234
Change-Id: I8413cfeb0cbf32e2e8369c5b1527c9794a595688
2024-02-23 20:46:17 +05:30