diff --git a/SYCL/InvokeSimd/invoke_simd_conv.cpp b/SYCL/InvokeSimd/invoke_simd_conv.cpp index 83b4d6ab53..6800b4f8d3 100644 --- a/SYCL/InvokeSimd/invoke_simd_conv.cpp +++ b/SYCL/InvokeSimd/invoke_simd_conv.cpp @@ -51,17 +51,14 @@ template } class ESIMDSelector : public device_selector { - // Require GPU device unless HOST is requested in SYCL_DEVICE_FILTER env + // Require GPU device virtual int operator()(const device &device) const { if (const char *dev_filter = getenv("SYCL_DEVICE_FILTER")) { std::string filter_string(dev_filter); if (filter_string.find("gpu") != std::string::npos) return device.is_gpu() ? 1000 : -1; - if (filter_string.find("host") != std::string::npos) - return device.is_host() ? 1000 : -1; std::cerr - << "Supported 'SYCL_DEVICE_FILTER' env var values are 'gpu' and " - "'host', '" + << "Supported 'SYCL_DEVICE_FILTER' env var values is 'gpu' and '" << filter_string << "' does not contain such substrings.\n"; return -1; } diff --git a/SYCL/InvokeSimd/invoke_simd_smoke.cpp b/SYCL/InvokeSimd/invoke_simd_smoke.cpp index 75225dc05f..1a566553bc 100644 --- a/SYCL/InvokeSimd/invoke_simd_smoke.cpp +++ b/SYCL/InvokeSimd/invoke_simd_smoke.cpp @@ -49,17 +49,14 @@ ESIMD_CALLEE(float *A, esimd::simd b, int i) SYCL_ESIMD_FUNCTION { float SPMD_CALLEE(float *A, float b, int i) { return A[i] + b; } class ESIMDSelector : public device_selector { - // Require GPU device unless HOST is requested in SYCL_DEVICE_FILTER env + // Require GPU device virtual int operator()(const device &device) const { if (const char *dev_filter = getenv("SYCL_DEVICE_FILTER")) { std::string filter_string(dev_filter); if (filter_string.find("gpu") != std::string::npos) return device.is_gpu() ? 1000 : -1; - if (filter_string.find("host") != std::string::npos) - return device.is_host() ? 1000 : -1; std::cerr - << "Supported 'SYCL_DEVICE_FILTER' env var values are 'gpu' and " - "'host', '" + << "Supported 'SYCL_DEVICE_FILTER' env var values is 'gpu' and '" << filter_string << "' does not contain such substrings.\n"; return -1; }