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
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
streamexecutor/include/streamexecutor/Kernel.h | ||
---|---|---|
47 ↗ | (On Diff #69724) | 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. |
59 ↗ | (On Diff #69724) | Missing std::unique_ptr<> here? |
60 ↗ | (On Diff #69724) | cnn -> ccn |
Comment Actions
- Fix comment bugs found by jprice
streamexecutor/include/streamexecutor/Kernel.h | ||
---|---|---|
47 ↗ | (On Diff #69724) | You're right. Plus the A parameter is usually passed as a float not a float *. Now the signature should be fixed. |
Comment Actions
Well, that does look simpler.
Thanks a lot for all these reviews, jprice.
streamexecutor/include/streamexecutor/Device.h | ||
---|---|---|
33 ↗ | (On Diff #69752) | Can we be explicit that if this doesn't return an error, it is guaranteed not to return a null value? |
Comment Actions
I second those sentiments. You've been a great help, jprice.
streamexecutor/include/streamexecutor/Device.h | ||
---|---|---|
33 ↗ | (On Diff #69752) | Good idea. |