Skip to content

Commit acca3a2

Browse files
[SYCL] Remove host run and dependencies from SYCL/ESIMD tests (intel#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 02405a7 commit acca3a2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

SYCL/ESIMD/esimd_test_utils.hpp

+2-5
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)