Skip to content

Conversation

@1e-to
Copy link
Contributor

@1e-to 1e-to commented Apr 8, 2021

Closes #284

@1e-to 1e-to requested a review from diptorupd April 8, 2021 11:30
DPCTL_API
DPCTLSyclBackendType
DPCTLDevice_GetBackend(__dpctl_keep const DPCTLSyclDeviceRef DRef);
DPCTLDevice_GetBackendVersion(__dpctl_keep const DPCTLSyclDeviceRef DRef);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function does not need renaming. The SYCL function is called get_backend too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@1e-to can make this change? I will like to have this change in 0.7.0.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops missed your change. All set.

Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@1e-to Please revert the change to DPCTLDevice_GetBackend -> DPCTLDevice_GetBackendVersion per @diptorupd comment.

print(
"SYCL({}) result: {}".format(
dpctl.get_current_queue().get_sycl_device().get_device_name(),
dpctl.get_current_queue().get_sycl_device().name,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it should be dpctl.get_current_queue().sycl_device.name to simplify?

Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good. Thank you @1e-to

@diptorupd diptorupd merged commit 525ac9a into IntelPython:master Apr 13, 2021
@1e-to 1e-to deleted the fix_names branch November 3, 2021 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have consistent naming of functions for SYCL, C, and Python API functions

3 participants