-
Notifications
You must be signed in to change notification settings - Fork 30
Feature/get ref address #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
-- default device is alayws available.
@PokhodenkoSA can be merged once CI completes. @reazulhoque Please note the name change for the functions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Will merge it.
The address of the DPPLSyclProgramRef object used to create this | ||
SyclProgram cast to a long. | ||
""" | ||
return int(<long>self._program_ref) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long is not good here. It is a 32-bit integer on Windows. We should be using <size_t>
instead.
The PR reworks #87 to use the same name
addressof_ref
for all classes that wrap DPPLSyclxxxx objects. Added docstring.The change is needed because inside Numba we are directly calling dpctl's C API during LLVM lowering for kernel submit call. Having these convenience functions lets us get the address of the DPPLSyclKernelRef from a SyclKernel Python object.
To standardize the API the same
addressof_ref
call was added for all classes.