You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have some inconsistency across the naming of functions in C API and Python. E.g.,
SYCL Function
dpCtl C-API function
Python API function
get_info<info::device::driver_version>
DPCTLDevice_GetDriverInfo
get_driver_version
Each function in C API should be named as DPCTLXXXX_YYYY(), where XXXX is the SYCL class name in camel case and YYYY is a meaningful approximation of the SYCL function name. The function name should be close to the SYCL function name with changes as needed to handle templates. For example, the device class get_info functions should be converted into DPCTLDevice_GetZZZZ, where ZZZZ is the descriptor information type. For the above example of get_info<info::device::driver_version the correct C API name should be DPCTLDevice_GetDriverVersion.
The text was updated successfully, but these errors were encountered:
We have some inconsistency across the naming of functions in C API and Python. E.g.,
get_info<info::device::driver_version>
DPCTLDevice_GetDriverInfo
get_driver_version
Each function in C API should be named as
DPCTLXXXX_YYYY()
, whereXXXX
is the SYCL class name in camel case andYYYY
is a meaningful approximation of the SYCL function name. The function name should be close to the SYCL function name with changes as needed to handle templates. For example, thedevice
classget_info
functions should be converted intoDPCTLDevice_GetZZZZ
, whereZZZZ
is the descriptor information type. For the above example ofget_info<info::device::driver_version
the correct C API name should beDPCTLDevice_GetDriverVersion
.The text was updated successfully, but these errors were encountered: