Skip to content

Extra device info - #147

Merged
PokhodenkoSA merged 15 commits into
IntelPython:masterfrom
1e-to:extra_device_info
Oct 23, 2020
Merged

PokhodenkoSA merged 15 commits into
IntelPython:masterfrom
1e-to:extra_device_info

Conversation

@1e-to

@1e-to 1e-to commented Oct 19, 2020 •

Copy link
Copy Markdown
Contributor

The PR closes #113 and closes #81.

@1e-to
1e-to requested a review from PokhodenkoSA October 19, 2020 15:12
@PokhodenkoSA

Copy link
Copy Markdown
Contributor

Linux CI fails.

@diptorupd diptorupd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looking good. Needs some minor clean ups and should be ready.

Comment thread backends/tests/CMakeLists.txt Resolved
Comment thread dpctl/_sycl_core.pxd Resolved
Comment thread dpctl/backend.pxd Resolved
Comment thread dpctl/backend.pxd Resolved
Comment thread dpctl/tests/test_sycl_device.py Resolved

@diptorupd diptorupd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks very good. Please fix the one small naming change in C++ test case and it is good to go. Thanks!

{
DPPLSyclDeviceRef OpenCL_cpu = nullptr;
DPPLSyclDeviceRef OpenCL_gpu = nullptr;
DPPLSyclDeviceRef OpenCL_level_zero = nullptr;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Call it Level0_gpu. OpenCl and Level0 are different driver stacks for the same GPU device.

@diptorupd

Copy link
Copy Markdown
Contributor

@1e-to please rebase with master and I can merge it tomorrow.

return D->is_cpu();
}
return false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change

return D->get_info<info::device::max_compute_units>();
}
return 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change

@PokhodenkoSA
PokhodenkoSA merged commit 26bf594 into IntelPython:master Oct 23, 2020
@1e-to
1e-to deleted the extra_device_info branch March 2, 2021 12:13
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.

Dpctl needs to expose whether device supports 64 bit atomic operations We need function to check maximum size allowed as global and local range

3 participants