Cabana icon indicating copy to clipboard operation
Cabana copied to clipboard

Run examples on host or device

Open streeve opened this issue 2 years ago • 4 comments

Follow on to #617. Convert DefaultHostExecutionSpace to DefaultExecutionSpace and add mirrors as needed to ensure legal memory access. Consider keeping some/all of the data structure examples fully on the host (examples prior to mirror/deep_copy)

streeve avatar May 10 '23 21:05 streeve

@lebuller can you start on this and let me know if you questions?

streeve avatar May 10 '23 21:05 streeve

I am happy to take this and give a PR on examples related to Cabana (core examples). Is that okay? @streeve

dineshadepu avatar Aug 24 '23 09:08 dineshadepu

That would be great - to be clear changing from host-only will require copying data back and forth from the CPU and GPU with mirror copies in quite a few places (after data is created, when it's time to print back on the host, etc.)

streeve avatar Aug 24 '23 13:08 streeve

Thank you. I will convert one of the examples first and will ask for feedback so that I do it correctly.

dineshadepu avatar Aug 25 '23 10:08 dineshadepu