File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
sycl/include/sycl/ext/oneapi/experimental Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -409,20 +409,24 @@ template <class Callable> constexpr void verify_callable() {
409
409
static_assert (
410
410
!callable_has_ref_arg,
411
411
" invoke_simd does not support callables with reference arguments" );
412
+ #ifdef __SYCL_DEVICE_ONLY__
412
413
constexpr bool callable_has_uniform_non_trivially_copyable_ret =
413
414
has_non_trivially_copyable_uniform_ret (obj);
414
415
static_assert (!callable_has_uniform_non_trivially_copyable_ret,
415
416
" invoke_simd does not support callables returning uniforms "
416
417
" that are not trivially copyable" );
418
+ #endif
417
419
}
418
420
}
419
421
420
422
template <class ... Ts>
421
423
constexpr void verify_no_uniform_non_trivially_copyable_args () {
424
+ #ifdef __SYCL_DEVICE_ONLY__
422
425
constexpr bool has_non_trivially_copyable_uniform_arg =
423
426
(... || is_non_trivially_copyable_uniform_v<Ts>);
424
427
static_assert (!has_non_trivially_copyable_uniform_arg,
425
428
" Uniform arguments must be trivially copyable" );
429
+ #endif
426
430
}
427
431
428
432
template <class Callable , class ... Ts>
You can’t perform that action at this time.
0 commit comments