-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fix for ROCm 6.0.0 gfx942 #295
Build fix for ROCm 6.0.0 gfx942 #295
Conversation
Turn Advance build by default
atomicInc(&tmp_histogram[pixelR], 1); | ||
atomicInc(&tmp_histogram[pixelG], 1); | ||
atomicInc(&tmp_histogram[pixelB], 1); | ||
atomicAdd(&tmp_histogram[pixelR], 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is atomicAdd good option. I thought we can't use any atomics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rrawther Ubuntu build seems to pass with atomicAdd. Ideally, both should work as they did on openCL/cuda/hip, but for some reason only atomicInc() fails on Rocm6.0.0 HIP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment
Note update for -D option
* modified histogram hip kernel to use atomicAdd instead of atomicInc * Update CMakeLists.txt Turn Advance build by default * Update CMakeLists.txt Note update for -D option --------- Co-authored-by: sampath1117 <[email protected]> Co-authored-by: Kiriti Gowda <[email protected]>
@kiritigowda Fix for #291