QuantumClifford.jl icon indicating copy to clipboard operation
QuantumClifford.jl copied to clipboard

unnecessary copy when calling to_cpu on cpu data

Open Shayan-P opened this issue 11 months ago • 0 comments

The functions to_cpu, to_gpu copy the data regardless of where it resides.

It would be more intelligent to copy only if the data is not on the same device (calling to_cpu when data is on GPU and vice versa)

Shayan-P avatar Aug 27 '23 04:08 Shayan-P