Skip to content

Conversation

@rocm-devops
Copy link
Contributor

Associated JIRA ticket number/Github issue number

Fixes SWDEV-505930

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Continuous Integration

What were the changes?

Avoid static initialization of ModuleGuard. This change also disables hipGetProcAddress tests that are not supported on static build.

Why are these changes needed?

This is to prevent calling catch2 macros from outside catch2 TEST_CASE that can lead to undefined behavior.

Updated CHANGELOG?

  • Yes
  • No, Does not apply to this PR.

Added/Updated documentation?

  • Yes
  • No, Does not apply to this PR.

Additional Checks

  • I have added tests relevant to the introduced functionality, and the unit tests are passing locally.
  • Any dependent changes have been merged.

This is to prevent calling catch2 macros from outside catch2 TEST_CASE
that can lead to undefined bahavior. This change also disables
hipGetProcAddress tests that are not supported on static build.
@rocm-devops
Copy link
Contributor Author

Imported to ROCm/rocm-systems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants