-
Notifications
You must be signed in to change notification settings - Fork 611
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
Fix jitter operator illegal memory access #1914
Conversation
CI MESSAGE: [1285453]: BUILD STARTED |
@@ -38,7 +39,8 @@ Randomizer<GPUBackend>::Randomizer(int seed, size_t len) { | |||
len_ = len; | |||
cudaGetDevice(&device_); | |||
states_ = GPUBackend::New(sizeof(curandState) * len, true); | |||
initializeStates<<<128, 256>>>(len_, seed, reinterpret_cast<curandState*>(states_)); | |||
initializeStates<<<std::ceil(len_/static_cast<float>(block_size_)), block_size_>>> |
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.
initializeStates<<<std::ceil(len_/static_cast<float>(block_size_)), block_size_>>> | |
initializeStates<<<div_ceil(len_, block_size_), block_size_>>> |
using floating point arithmetic may lead to incorrect results when len_ > 256*2^23
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.
done
CI MESSAGE: [1285453]: BUILD FAILED |
- JitterAugment accesses random generator on the GPU beyond allowed range - added a fix to make sure that access to random generator is inside allowed range Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
CI MESSAGE: [1285483]: BUILD STARTED |
CI MESSAGE: [1285483]: BUILD PASSED |
Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com
Why we need this PR?
Pick one, remove the rest
What happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
added a fix to make sure that access to random generator is inside allowed range
jitter
NA
CI
NA
In response to #966
JIRA TASK: [NA]