Skip to content

Conversation

@vinser52
Copy link
Contributor

@vinser52 vinser52 commented Sep 3, 2025

The data race was detected by a unit test while working on #19843.

@vinser52 vinser52 requested a review from a team as a code owner September 3, 2025 18:31
@vinser52 vinser52 requested a review from slawekptak September 3, 2025 18:31
std::unordered_map<KernelNameStrT, DeviceKernelInfo> m_DeviceKernelInfoMap;

// Protects m_DeviceKernelInfoMap.
std::mutex m_DeviceKernelInfoMapMutex;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the guard here:

m_DeviceKernelInfoMap.erase(Name);
as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2025

@intel/llvm-gatekeepers please consider merging

@aelovikov-intel aelovikov-intel merged commit f804e69 into intel:sycl Sep 4, 2025
27 checks passed
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.

4 participants