You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeviceArray's to_host() method would reuse a cached result. In the mean time the contents of the array may have changed and subsequent calls to to_host will return the cached value, which at this point is wrong.
Is this the intended behavior? My expectation is that it should not cache anything and copy it every time if the array is not mappable to the host.
The text was updated successfully, but these errors were encountered:
Yes, that design is problematic. This was originally written to make some porting easier and includes too much implicit behavior. I would be fine removing those lines you reference. We could also add an option to force or something, but it is better to not add more weird behavior.
DeviceArray
'sto_host()
method would reuse a cached result. In the mean time the contents of the array may have changed and subsequent calls toto_host
will return the cached value, which at this point is wrong.Is this the intended behavior? My expectation is that it should not cache anything and copy it every time if the array is not mappable to the host.
The text was updated successfully, but these errors were encountered: