ROCm / ROCclr

42 stars 40 forks source link

data race in memory update function #35

Open psychocoderHPC opened 2 years ago

psychocoderHPC commented 2 years ago

IMO the memory counting functions contain data races which lead to the possibility that the counter for free memory is underflowing.

https://github.com/ROCm-Developer-Tools/ROCclr/blob/90f1f61a9d6c28ffd2f844dc773e921444752e47/device/rocm/rocdevice.cpp#L2086-L2104

Possible solution: