-
Notifications
You must be signed in to change notification settings - Fork 124
Description
Backends could use memory access hint for low level optimizations (read access) although now we do not have any way to specify it.
I would like to propose addition of new parameter for memory object properties (in a way how urQueueCreate is done) to urKernelSetArgMemObj function.
I prepared PR to UR with proposal:
#571
Could you please review the proposal? Could the new API (the one you agree with) be included to the nearest release to enable this feature in SYCL RT too?
Short description of change:
typedef struct ur_mem_obj_properties_t {
ur_structure_type_t stype;
void *pNext;
ur_mem_flags_t memory_access;
} ur_mem_obj_properties_t;
urKernelSetArgMemObj(
ur_kernel_handle_t hKernel,
uint32_t argIndex,
ur_mem_handle_t hArgValue,
const ur_mem_obj_properties_t pProperties*
);