-
Notifications
You must be signed in to change notification settings - Fork 124
Expand urContextGetNativeHandle #433
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
Expand urContextGetNativeHandle #433
Conversation
393a2c2 to
6c7f0e3
Compare
|
@kbenzie : do you know why this is being flagged as an error in format? If I do the change, then python test fails: |
scripts/core/context.yml
Outdated
| - type: uint32_t | ||
| name: numDevices | ||
| desc: "[in] number of devices associated with the context" | ||
| - type: "const $x_device_handle_t *" |
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.
If I had to guess, the python problem is because of the space before the asterisk. This should be "const $x_device_handle_t*" instead.
It might also be a good idea to fix the python generation script, but that's probably a bit more work.
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.
This should be
"const $x_device_handle_t*"instead.
Agree this looks like it should resolve the issue. I'll have a look at fixing the script separately.
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.
This extra space also seems to change the scripts understanding of this type to handle rather than the intended pointer to handle...
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.
faacc56 to
8bbbf3d
Compare
|
@kbenzie , @pbalcer , @smaslov-intel : please review. |
kbenzie
left a comment
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, couple of naming convention things to chagne for consistency.
scripts/core/context.yml
Outdated
| type: struct | ||
| desc: "Descriptor for $xContextCreateWithNativeHandle." | ||
| class: $xContext | ||
| name: $x_context_native_desc_t |
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.
In UR these creation structs have been using the *_properties_t naming rather than *_desc_t. Its crossed my mind a few times if that was not the intention of the scripts but for consistency I think this should be *_properties_t.
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.
Good idea, Changing.
scripts/core/context.yml
Outdated
| name: phDevices | ||
| desc: "[in][range(0, numDevices)] list of devices associated with the context" | ||
| - type: "const $x_context_native_desc_t*" | ||
| name: pContextNativeDesc |
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.
In other creation entry-points, and in relation to using the *_properties_t suffix, this argument should be called pProperties.
76b0386 to
5350d2b
Compare
smaslov-intel
left a comment
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
Add needed members for PI: NumDevices Devices OwnNativeHandle Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
17d8520 to
a12d475
Compare
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
scripts/core/context.yml
Outdated
| name: phDevices | ||
| desc: "[in][range(0, numDevices)] list of devices associated with the context" | ||
| - type: "const $x_context_native_properties_t*" | ||
| name: pContextNativeProperties |
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.
| name: pContextNativeProperties | |
| name: pProperties |
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.
thanks @pbalcer . Changing it.
0aabd6c to
1cfe415
Compare
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
Add needed members for PI:
NumDevices
Devices
OwnNativeHandle