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

Commit 390f24c

Browse files
[SYCL] Remove host run and dependencies from SYCL/ESIMD tests (#1206)
This commit removes the host run and any assumptions and operations related to the host device from the tests in SYCL/ESIMD. Co-authored-by: Sachkov, Alexey <[email protected]> Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 1f44112 commit 390f24c

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

SYCL/ESIMD/api/functional/ctors/ctor_vector_core.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ int main(int, char **) {
3333
sycl::device device = queue.get_device();
3434
// verify aspect::fp16 due to using sycl::half data type
3535
// verify aspect::fp64 due to using double data type
36-
if (!device.is_host() && !device.has(sycl::aspect::fp16) &&
37-
!device.has(sycl::aspect::fp64)) {
36+
if (!device.has(sycl::aspect::fp16) && !device.has(sycl::aspect::fp64)) {
3837
std::cout << "Test skipped\n";
3938
return 0;
4039
}

SYCL/ESIMD/esimd_test_utils.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,14 @@ namespace esimd_test {
3535
// was returned for all devices, then the selection process will cause an
3636
// exception.
3737
class ESIMDSelector : public device_selector {
38-
// Require GPU device unless HOST is requested in SYCL_DEVICE_FILTER env
38+
// Require GPU device
3939
virtual int operator()(const device &device) const {
4040
if (const char *dev_filter = getenv("SYCL_DEVICE_FILTER")) {
4141
std::string filter_string(dev_filter);
4242
if (filter_string.find("gpu") != std::string::npos)
4343
return device.is_gpu() ? 1000 : -1;
44-
if (filter_string.find("host") != std::string::npos)
45-
return device.is_host() ? 1000 : -1;
4644
std::cerr
47-
<< "Supported 'SYCL_DEVICE_FILTER' env var values are 'gpu' and "
48-
"'host', '"
45+
<< "Supported 'SYCL_DEVICE_FILTER' env var values is 'gpu' and '"
4946
<< filter_string << "' does not contain such substrings.\n";
5047
return -1;
5148
}

0 commit comments

Comments
 (0)