Skip to content

Commit

Permalink
Update comment and add missing preprocessor guard
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
  • Loading branch information
mmichel11 committed Jan 10, 2025
1 parent d8649f0 commit a4240a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,7 @@ __parallel_set_op(oneapi::dpl::__internal::__device_backend_tag __backend_tag, _
_Range1&& __rng1, _Range2&& __rng2, _Range3&& __result, _Compare __comp,
_IsOpDifference __is_op_difference)
{
#if _ONEDPL_COMPILER_KERNEL
if (oneapi::dpl::__par_backend_hetero::__is_gpu_with_sg_32(__exec))
{
auto __opt_return = __handle_sync_sycl_exception(
Expand All @@ -1559,6 +1560,7 @@ __parallel_set_op(oneapi::dpl::__internal::__device_backend_tag __backend_tag, _
if (__opt_return)
return __opt_return.value();
}
#endif
return __parallel_set_scan(__backend_tag, std::forward<_ExecutionPolicy>(__exec), std::forward<_Range1>(__rng1),
std::forward<_Range2>(__rng2), std::forward<_Range3>(__result), __comp,
__is_op_difference);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ __handle_sync_sycl_exception(_Callable __caller, _Handler __handler) -> std::opt
}
catch (const sycl::exception& __e)
{
// Handle the error and return an empty optional with the encountered error code.
// Handle the error and return an empty std::optional
__handler(__e);
return {};
}
Expand Down

0 comments on commit a4240a2

Please sign in to comment.