-
Notifications
You must be signed in to change notification settings - Fork 56
Improve Device-Side Random Uniform Filling by Reusing Host Implementation in SYCL #515
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
Conversation
Signed-off-by: Chen, Xi2 <xi2.chen@intel.com>
assert(false && "Not supported dtype"); | ||
} | ||
typename RealType<Element>::Type min, ///< lower bound for distribution | ||
int bits = -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.
please add some comments for bits.
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.
please add some comments for bits.
Done!
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.
Please add copyright changes.
Signed-off-by: Chen, Xi2 <xi2.chen@intel.com>
Signed-off-by: Chen, Xi2 <xi2.chen@intel.com>
Signed-off-by: Chen, Xi2 <xi2.chen@intel.com>
int bits = -1 ///< If non-negative, specifies number of fractional bits that | ||
/// are not truncated to zero. Permits reducing precision of | ||
/// data. | ||
) { |
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.
nit: indent
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.
nit: indent
Done!
Signed-off-by: Chen, Xi2 <xi2.chen@intel.com>
…ation in SYCL (intel#515) 1. Generates random data on the host and copies it to the device via syclcompat::memcpy, improving code reuse and supporting a broader range of element types. 2. An optional bits parameter to control fractional precision, which was not present in the original. --------- Signed-off-by: Chen, Xi2 <xi2.chen@intel.com>
…ation in SYCL (intel#515) 1. Generates random data on the host and copies it to the device via syclcompat::memcpy, improving code reuse and supporting a broader range of element types. 2. An optional bits parameter to control fractional precision, which was not present in the original. --------- Signed-off-by: Chen, Xi2 <xi2.chen@intel.com>
…ation in SYCL (intel#515) 1. Generates random data on the host and copies it to the device via syclcompat::memcpy, improving code reuse and supporting a broader range of element types. 2. An optional bits parameter to control fractional precision, which was not present in the original. --------- Signed-off-by: Chen, Xi2 <xi2.chen@intel.com>
Uh oh!
There was an error while loading. Please reload this page.