Step 3 of getting GlobalDeviceMemory to own its handle.
Since GlobalDeviceMemory will no longer by copy-constructible, we must
pass instances by reference rather than by value.
Paths
| Differential D24172
[StreamExecutor] Pass device memory by ref ClosedPublic Authored by jhen on Sep 1 2016, 4:43 PM.
Details Summary Step 3 of getting GlobalDeviceMemory to own its handle. Since GlobalDeviceMemory will no longer by copy-constructible, we must
Diff Detail Event Timelinejhen updated this object.
This revision is now accepted and ready to land.Sep 1 2016, 5:29 PM
Closed by commit rL280439: [StreamExecutor] Pass device memory by ref (authored by jhen). · Explain WhySep 1 2016, 5:34 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 70112 streamexecutor/include/streamexecutor/Device.h
streamexecutor/include/streamexecutor/DeviceMemory.h
streamexecutor/include/streamexecutor/Stream.h
|
I wonder if we should take by non-const reference. This "pass mutable things by pointer" idiom is kind of a Google-ism; I am not sure it will make a lot of sense to other people reading the code.