Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sycl/include/sycl/ext/oneapi/experimental/cuda/barrier.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class barrier {
#ifdef __SYCL_DEVICE_ONLY__
__clc_BarrierInitialize(&state, expected_count);
#else
(void)state;
(void)expected_count;
throw runtime_error("Barrier is not supported on host device.",
PI_INVALID_DEVICE);
#endif
Expand Down Expand Up @@ -68,6 +70,7 @@ class barrier {
#ifdef __SYCL_DEVICE_ONLY__
return __clc_BarrierArriveNoComplete(&state, count);
#else
(void)count;
throw runtime_error("Barrier is not supported on host device.",
PI_INVALID_DEVICE);
#endif
Expand All @@ -77,6 +80,7 @@ class barrier {
#ifdef __SYCL_DEVICE_ONLY__
return __clc_BarrierArriveAndDropNoComplete(&state, count);
#else
(void)count;
throw runtime_error("Barrier is not supported on host device.",
PI_INVALID_DEVICE);
#endif
Expand Down Expand Up @@ -104,6 +108,7 @@ class barrier {
#ifdef __SYCL_DEVICE_ONLY__
__clc_BarrierWait(&state, arrival);
#else
(void)arrival;
throw runtime_error("Barrier is not supported on host device.",
PI_INVALID_DEVICE);
#endif
Expand All @@ -113,6 +118,7 @@ class barrier {
#ifdef __SYCL_DEVICE_ONLY__
return __clc_BarrierTestWait(&state, arrival);
#else
(void)arrival;
throw runtime_error("Barrier is not supported on host device.",
PI_INVALID_DEVICE);
#endif
Expand Down