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
{{ message }}
Repository navigation
dpm.as_usm_memory(X[i]) returns unexpected value #583
The sycl USM array interface produced by the slice gives the actual memory address, and also sets offset which specifies the location of this memory address from the start of the underlying allocation.
The dpm.as_memory interprets offset as saying start at this additional displacement relative to the provided pointer. The fix should not be complicated, but I need to trace through the code to understand what is the correct way to handle offset.
Activity
oleksandr-pavlyk commentedon Sep 10, 2021
Thanks for the report @densmirn
The sycl USM array interface produced by the slice gives the actual memory address, and also sets
offsetwhich specifies the location of this memory address from the start of the underlying allocation.The
dpm.as_memoryinterpretsoffsetas saying start at this additional displacement relative to the provided pointer. The fix should not be complicated, but I need to trace through the code to understand what is the correct way to handleoffset.Fixes #583
added test based on example from #583