oneapi-src / level-zero-spec

MIT License
18 stars 27 forks source link

Are arguments to zeKernelSetArgumentValue copied? #289

Open uphoffc opened 8 months ago

uphoffc commented 8 months ago

Hi,

the spec of clSetKernelArg says that the value arg_value points to is copied https://registry.khronos.org/OpenCL/sdk/3.0/docs/man/html/clSetKernelArg.html#_parameters but the Level Zero spec does not state whether pArgValue is copied or not. https://spec.oneapi.io/level-zero/latest/core/api.html#_CPPv424zeKernelSetArgumentValue18ze_kernel_handle_t8uint32_t6size_tPKv

Is the value pArgValue points to copied, and if yes, should that be added in the spec?