Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] update tests with changes in device selector exception message #1295

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

mkrainiuk
Copy link

@mkrainiuk mkrainiuk commented Sep 28, 2022

Update tests with changes in device selector exception message intel/llvm#6896

@mkrainiuk mkrainiuk requested a review from a team as a code owner September 28, 2022 17:15
@mkrainiuk
Copy link
Author

/verify with intel/llvm#6896

@mkrainiuk
Copy link
Author

/verify with intel/llvm#6896

1 similar comment
@mkrainiuk
Copy link
Author

/verify with intel/llvm#6896

Copy link

@v-klochkov v-klochkov left a comment

Choose a reason for hiding this comment

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

.

@@ -0,0 +1,48 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %t.out

Choose a reason for hiding this comment

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

The simpler way to set env var:

Suggested change
// RUN: %t.out
// RUN: env SYCL_DEVICE_FILTER="" %t.out

It doesn't require calling 'setenv()' and defining setenv() for _Win32.
E.g.: https://github.com/intel/llvm-test-suite/blob/intel/SYCL/FilterSelector/select_device.cpp#L3

Copy link

@v-klochkov v-klochkov Sep 28, 2022

Choose a reason for hiding this comment

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

It interesting, that this test does not need any devices at all. And it is enough to run it once instead of running it with CPU, then with GPU, then with ACC, CUDA, etc.
If so, it is makes sense adding it right to the compiler: https://github.com/intel/llvm/tree/sycl/sycl/test

Copy link
Author

Choose a reason for hiding this comment

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

Thank you! Updated. Do you think sycl/test/basic_tests is a good place for the new test?

Choose a reason for hiding this comment

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

Yes, "sycl/test/basic_tests" seems good enough to me.

Comment on lines 11 to 13
// Disable all available devices
setenv("SYCL_DEVICE_FILTER", "", 0);

Choose a reason for hiding this comment

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

Suggested change
// Disable all available devices
setenv("SYCL_DEVICE_FILTER", "", 0);

@mkrainiuk mkrainiuk changed the title [SYCL] add test for device selector exception message [SYCL] update tests with changes in device selector exception message Sep 29, 2022
@mkrainiuk
Copy link
Author

/verify with intel/llvm#6896

@v-klochkov
Copy link

/verify with intel/llvm#6896

@v-klochkov v-klochkov merged commit 6c708d0 into intel:intel Sep 29, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
[SYCL] Replace SYCL_EXT_ONEAPI_MATRIX with SYCL_EXT_ONEAPI_MATRIX_VERSION
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants