Make the Kernel class follow the pattern of the other classes. It now
has a type-safe user wrapper and a typeless, platform-specific handle.
Details
Diff Detail
Event Timeline
| streamexecutor/include/streamexecutor/Kernel.h | ||
|---|---|---|
| 48–51 | Maybe I'm missing something, but should these parameter types actually be GlobalDeviceMemory<float>? Otherwise I'm not sure how such a kernel object could be passed to a thenLaunch() function with the correct arguments. | |
| 63–64 | Missing std::unique_ptr<> here? | |
| 64–65 | cnn -> ccn | |
- Fix comment bugs found by jprice
| streamexecutor/include/streamexecutor/Kernel.h | ||
|---|---|---|
| 48–51 | You're right. Plus the A parameter is usually passed as a float not a float *. Now the signature should be fixed. | |
Well, that does look simpler.
Thanks a lot for all these reviews, jprice.
| streamexecutor/include/streamexecutor/Device.h | ||
|---|---|---|
| 33–50 | Can we be explicit that if this doesn't return an error, it is guaranteed not to return a null value? | |
I second those sentiments. You've been a great help, jprice.
| streamexecutor/include/streamexecutor/Device.h | ||
|---|---|---|
| 33–50 | Good idea. | |
Can we be explicit that if this doesn't return an error, it is guaranteed not to return a null value?