Closed dholladay00 closed 1 year ago
Are the 2-sided
const
necessary?
The benefit of east const is that it more clearly specifies what is in fact const. The double-sided means that both the pointer is const and the underlying data are const. I'm not sure that it is a strict restriction but this operation should not be modifying either the allocation (underlying pointer) or the data of the from pointer.
I quite like this actually and I'd be supportive of putting it in to ports-of-call as a solution to the generic code in spiner. I think the emphasis on pointers fits nicely with our understanding of what ports-of-call should be.
Curious to hear @chadmeyer 's thoughts too.
I still need to add documentation.
👍 pending added docs
done @Yurlungur
PR Summary
This creates portable functions to copy host memory to device and device memory to host, or a simple copy if no portability strategy specified.
This should provide the functionality necessary to address https://github.com/lanl/spiner/issues/54 and #20
PR Checklist