-
Notifications
You must be signed in to change notification settings - Fork 796
[SYCL][L0] Fix absence of zeInit in Level Zero LIT e2e tests #18956
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
Changes from 4 commits
e38f767
4fd6aaa
5bbe40d
79d0b6a
b4eb835
ac8bb9c
5a46c1d
ce2e3c0
47ea7b4
bfb13cf
ec9c4e3
382b673
79de0d5
1c8bcf9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -25,6 +25,15 @@ int main() { | |||||
| auto zedev = sycl::get_native<sycl::backend::ext_oneapi_level_zero>(dev); | ||||||
| ze_device_properties_t device_properties{}; | ||||||
| device_properties.stype = ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES; | ||||||
|
|
||||||
| // Initialize Level Zero driver is required if this test is linked | ||||||
| // statically with Level Zero loader, the driver will not be init otherwise. | ||||||
| ze_result_t result = zeInit(ZE_INIT_FLAG_GPU_ONLY); | ||||||
| if (result != ZE_RESULT_SUCCESS) { | ||||||
| std::cout << "zeInit failed\n"; | ||||||
idubinov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| return 1; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. + some small enhancement here and below:
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ZE_RESULT_SUCCESS is not equal to test's success return code. May be in current implementation both of them are equal 0, but not in general.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe print this
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 79de0d5 |
||||||
| } | ||||||
|
|
||||||
| zeDeviceGetProperties(zedev, &device_properties); | ||||||
| std::stringstream uuid_l0; | ||||||
| for (int i = 0; i < ZE_MAX_DEVICE_UUID_SIZE; ++i) | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.