Skip to content

Fix static deinitialization fiasco in destructor#126

Open
systems-assistant[bot] wants to merge 2 commits into
developfrom
import/develop/AngryLoki_aqlprofile/fix-logger
Open

Fix static deinitialization fiasco in destructor#126
systems-assistant[bot] wants to merge 2 commits into
developfrom
import/develop/AngryLoki_aqlprofile/fix-logger

Conversation

@systems-assistant

Copy link
Copy Markdown
Contributor

defines:

logger.h

There is no guarantees for destruction order, but in my case runs after C++ destructors for static objects, trying to lock destroyed mutex.

To fix the deinitialization order, this PR removes custom destructor and replaces it with modern Construct on First Use idiom (a.k.a. Meyers' singletons).

Closes #4


🔁 Imported from ROCm/aqlprofile#5
🧑‍💻 Originally authored by @AngryLoki

ammallya pushed a commit that referenced this pull request Aug 7, 2025
* Re-enable OpenMP target and testing

* Enable openmp target tests on mi200 jobs

* Fix direct self-inclusion of header file

* Enable openmp-target testing on vega20

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Co-authored-by: Welton, Benjamin <Benjamin.Welton@amd.com>

[ROCm/rocprofiler-sdk commit: 2fe63d8]
ammallya pushed a commit that referenced this pull request Aug 7, 2025
* Adding Integeration tests for later building option

* Update CMakeLists.txt

---------

Co-authored-by: Ammar ELWazir <aelwazir@amd.com>

[ROCm/aqlprofile commit: e4bb0df]
ywang103-amd pushed a commit to ywang103-amd/rocm-systems that referenced this pull request Aug 7, 2025
- Add support for RCCL API tracing through rocprofiler-sdk.
- Refactored the comm_data code to use the SDK RCCL_API callbacks.
- Add a runtime version check for SDK to gate callback enablement, rather than just the compile-time check.
- Fixed: SAMPLING_TIMEOUT was not being handled correctly in add_test.

[ROCm/rocprofiler-systems commit: af77d93]
jayhawk-commits pushed a commit that referenced this pull request Aug 18, 2025
ammallya pushed a commit that referenced this pull request Nov 17, 2025
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
ammallya pushed a commit that referenced this pull request Nov 18, 2025
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>

[ROCm/amdsmi commit: 9d2bbcf]
ammallya pushed a commit that referenced this pull request Nov 21, 2025
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>

[ROCm/amdsmi commit: 9d2bbcf]
jamessiddeley-amd pushed a commit that referenced this pull request Dec 11, 2025
* Ensure backward compatibility for fp8 datatypes

Signed-off-by: ravaidya <ravaidya@amd.com>

* Update code comments

Signed-off-by: ravaidya <ravaidya@amd.com>

---------

Signed-off-by: ravaidya <ravaidya@amd.com>
ammallya pushed a commit that referenced this pull request Jan 21, 2026
* final edits

* more edits per review

* more edits

* attempt to fix dead link
ammallya pushed a commit that referenced this pull request Jan 21, 2026
* final edits

* more edits per review

* more edits

* attempt to fix dead link

[ROCm/rocshmem commit: 8a266e6]
ammallya pushed a commit that referenced this pull request Jan 21, 2026
* Ensure backward compatibility for fp8 datatypes

Signed-off-by: ravaidya <ravaidya@amd.com>

* Update code comments

Signed-off-by: ravaidya <ravaidya@amd.com>

---------

Signed-off-by: ravaidya <ravaidya@amd.com>

[ROCm/rccl-tests commit: 0abe3c8]
ammallya pushed a commit that referenced this pull request Jan 30, 2026
dayatsin-amd pushed a commit that referenced this pull request Apr 7, 2026
…-npi-from-develop-092925

rocr / rocrtst cherry-pick from ROCR-Runtime repo amd-temp-mi450 branch (partial)
ammallya pushed a commit that referenced this pull request Apr 9, 2026
Make CMake options uniform
* Prefix options with AIS to avoid name clash in TheRock
* BUILD implies a thing will be created
* USE is for compiler options, etc.

Public
BUILD_AISCP         --> AIS_BUILD_EXAMPLES
BUILD_AIS_DOCS      --> AIS_BUILD_DOCS
BUILD_CODE_COVERAGE --> AIS_USE_CODE_COVERAGE
AIS_BUILD_SANITIZERS --> AIS_USE_SANITIZERS
AIS_BUILD_INTEGER_SANITIZERS --> AIS_USE_INTEGER_SANITIZER
AIS_BUILD_THREAD_SANITIZERS --> AIS_USE_THREAD_SANITIZER

Internal
BUILD_AMD_DETIAL    --> AIS_BUILD_AMD_DETAIL
BUILD_NVIDIA_DETAIL --> AIS_BUILD_NVIDIA_DETAIL
ammallya pushed a commit that referenced this pull request Apr 9, 2026
Make CMake options uniform
* Prefix options with AIS to avoid name clash in TheRock
* BUILD implies a thing will be created
* USE is for compiler options, etc.

Public
BUILD_AISCP         --> AIS_BUILD_EXAMPLES
BUILD_AIS_DOCS      --> AIS_BUILD_DOCS
BUILD_CODE_COVERAGE --> AIS_USE_CODE_COVERAGE
AIS_BUILD_SANITIZERS --> AIS_USE_SANITIZERS
AIS_BUILD_INTEGER_SANITIZERS --> AIS_USE_INTEGER_SANITIZER
AIS_BUILD_THREAD_SANITIZERS --> AIS_USE_THREAD_SANITIZER

Internal
BUILD_AMD_DETIAL    --> AIS_BUILD_AMD_DETAIL
BUILD_NVIDIA_DETAIL --> AIS_BUILD_NVIDIA_DETAIL

[ROCm/hipFile commit: b16522e]
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been inactive for 25 days and will be marked as stale.

If you would like to keep this PR open, please:

  • Add new commits
  • Add a comment explaining why it should remain open

This PR will be automatically closed in 5 days if no further activity occurs.

@github-actions github-actions Bot added the Stale PR has no activity for 25+ days label May 14, 2026
@AngryLoki

Copy link
Copy Markdown
Contributor

Unstale, I'd like to see it merged.

@github-actions github-actions Bot removed the Stale PR has no activity for 25+ days label May 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been inactive for 25 days and will be marked as stale.

If you would like to keep this PR open, please:

  • Add new commits
  • Add a comment explaining why it should remain open

This PR will be automatically closed in 5 days if no further activity occurs.

@github-actions github-actions Bot added the Stale PR has no activity for 25+ days label Jun 12, 2026
@AngryLoki

Copy link
Copy Markdown
Contributor

Unstale, I'd like to see it merged.

@github-actions github-actions Bot removed the Stale PR has no activity for 25+ days label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants