[SYCL][CUDA][ROCm] USMEnqueuePrefetch flags #4467
Labels
cuda
CUDA back-end
enhancement
New feature or request
hip
Issues related to execution on HIP backend.
runtime
Runtime library related issue
This issue is to ask for clarification on flags passed to piextUSMEnqueuePrefetch.
So CUDA and ROCm USMEnqueuePrefetch can be fully implemented.
It appears this parameter will only recieve one flag
PI_USM_MIGRATION_TBD0
.In each plugin the flags value does not appear to effect the functions behaviour.
Plugins:
Both cuda and rocm have asserts to fail if a flag is specified.
Level zero fails if the Flag is not set to
PI_USM_MIGRATION_TBD0
or 0OpenCL currently does not use the flag but has a commented out implementation which does use it.
Flag Usage:
Currently only one prefetch flag exists:
Usage of
piextUSMEnqueuePrefetch
insource/detail/memory_manager.cpp
shows thatPI_USM_MIGRATION_TBD0
is the only flag used.Questions:
What is the purpose of the flag, is this a placeholder for future opencl features?
How should plugins adjust their behaviour based on its value?
Is it still neccessary to have asserts if a flag is set for CUDA and ROCm backends?
Proposal:
If the flag is currently not effecting the functions behaviour, remove asserts in CUDA and ROCm backends. or replacing with level_zero assertion.
The text was updated successfully, but these errors were encountered: