Uh oh!
There was an error while loading. Please reload this page.
ENH: kernels for random.vonmisses; part 1 - #779
Conversation
samir-nasibli
commented
Jul 12, 2021
| result1[i] = (resi < 0) ? -mod : mod; | ||
| } | ||
| cl::sycl::range<1> gws(size); | ||
| auto paral_kernel_acceptance = [&](cl::sycl::handler& cgh) { |
There was a problem hiding this comment.
it looks like this lambda is mostly the same as in other part of code. I suspect, this will be used for many other part of code.
If it is not - please drop off this message.
So, perhaps it is better to make it as a macro or, that is better, as inline function in this C++ source. Just to avoid code duplication.
This is not quite important. It might be leaved as is, at least for now.
There was a problem hiding this comment.
@shssf There is no code duplication here. Please read messages carefully)
There was a problem hiding this comment.
@shssf Actually you are right. But it is valuable, when we reusing the same code more than 2 times. I vote leave it as is.
Description
Enable computations on devices [CPU/GPU].
Tests