@@ -616,11 +616,6 @@ inline pi_result piextPluginGetOpaqueData(void *opaque_data_param,
616
616
return PI_ERROR_UNKNOWN;
617
617
}
618
618
619
- // Returns plugin specific backend option.
620
- // Current support is only for optimization options.
621
- // Return '-ze-opt-disable' for frontend_option = -O0.
622
- // Return '-ze-opt-level=1' for frontend_option = -O1 or -O2.
623
- // Return '-ze-opt-level=2' for frontend_option = -O3.
624
619
inline pi_result piPluginGetBackendOption (pi_platform Platform,
625
620
const char *FrontendOption,
626
621
const char **PlatformOption) {
@@ -1940,11 +1935,11 @@ inline pi_result piKernelSetArg(pi_kernel Kernel, pi_uint32 ArgIndex,
1940
1935
return PI_SUCCESS;
1941
1936
}
1942
1937
1943
- inline pi_result piKernelSetArgPointer (pi_kernel kernel , pi_uint32 arg_index ,
1944
- size_t arg_size , const void *arg_value ) {
1945
- ( void )arg_size ;
1946
- auto hKernel = reinterpret_cast <ur_kernel_handle_t >(kernel );
1947
- HANDLE_ERRORS (urKernelSetArgPointer (hKernel, arg_index, arg_value ));
1938
+ inline pi_result piKernelSetArgPointer (pi_kernel Kernel , pi_uint32 ArgIndex ,
1939
+ size_t ArgSize , const void *ArgValue ) {
1940
+ std::ignore = ArgSize ;
1941
+ ur_kernel_handle_t UrKernel = reinterpret_cast <ur_kernel_handle_t >(Kernel );
1942
+ HANDLE_ERRORS (urKernelSetArgPointer (UrKernel, ArgIndex, ArgValue ));
1948
1943
1949
1944
return PI_SUCCESS;
1950
1945
}
@@ -2809,8 +2804,6 @@ inline pi_result piextMemCreateWithNativeHandle(pi_native_handle NativeHandle,
2809
2804
ur_context_handle_t UrContext =
2810
2805
reinterpret_cast <ur_context_handle_t >(Context);
2811
2806
ur_mem_handle_t *UrMem = reinterpret_cast <ur_mem_handle_t *>(Mem);
2812
- // TODO: Pass OwnNativeHandle to the output parameter
2813
- // while we get it in interface
2814
2807
ur_mem_native_properties_t Properties{};
2815
2808
Properties.isNativeHandleOwned = OwnNativeHandle;
2816
2809
HANDLE_ERRORS (urMemBufferCreateWithNativeHandle (UrNativeMem, UrContext,
0 commit comments