@@ -765,15 +765,14 @@ class __SYCL_EXPORT handler {
765
765
constexpr size_t GoodLocalSizeX = 32 ;
766
766
767
767
// Disable the rounding-up optimizations under these conditions:
768
- // 1. The device is not a GPU. Only GPUs benefit from rounding.
769
- // 2. The env var SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING is set.
770
- // 3. The string SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING is in
768
+ // 1. The env var SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING is set.
769
+ // 2. The string SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING is in
771
770
// the kernel name.
772
- // 4 . The kernel is provided via an interoperability method.
773
- // 5 . The API "this_item" is used inside the kernel.
774
- // 6 . The range is already a multiple of the rounding factor.
771
+ // 3 . The kernel is provided via an interoperability method.
772
+ // 4 . The API "this_item" is used inside the kernel.
773
+ // 5 . The range is already a multiple of the rounding factor.
775
774
//
776
- // Cases 4 and 5 could be supported with extra effort.
775
+ // Cases 3 and 4 could be supported with extra effort.
777
776
// As an optimization for the common case it is an
778
777
// implementation choice to not support those scenarios.
779
778
// Note that "this_item" is a free function, i.e. not tied to any
@@ -787,7 +786,6 @@ class __SYCL_EXPORT handler {
787
786
std::string KName = typeid (NameT *).name ();
788
787
using KI = detail::KernelInfo<KernelName>;
789
788
bool DisableRounding =
790
- !is_gpu (MQueue) ||
791
789
(getenv (" SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING" ) != nullptr ) ||
792
790
(KName.find (" SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING" ) !=
793
791
std::string::npos) ||
@@ -899,12 +897,6 @@ class __SYCL_EXPORT handler {
899
897
900
898
#endif
901
899
902
- // / Check if the queue being used is for a GPU device
903
- // /
904
- // / \param Queue is the queue for this handler.
905
- // / \return Whether the device is a GPU.
906
- bool is_gpu (const shared_ptr_class<sycl::detail::queue_impl> Queue);
907
-
908
900
public:
909
901
handler (const handler &) = delete ;
910
902
handler (handler &&) = delete ;
0 commit comments