Skip to content

SYCL RT request: need an API to provide memory access hint to urKernelSetArgMemObj #572

@KseniyaTikhomirova

Description

@KseniyaTikhomirova

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*
);

Metadata

Metadata

Assignees

Labels

memoryMemory allocations/transfers/operationsspecificationChanges or additions to the specification

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions