@@ -32,6 +32,8 @@ class barrier {
32
32
#ifdef __SYCL_DEVICE_ONLY__
33
33
__clc_BarrierInitialize (&state, expected_count);
34
34
#else
35
+ (void )state;
36
+ (void )expected_count;
35
37
throw runtime_error (" Barrier is not supported on host device." ,
36
38
PI_INVALID_DEVICE);
37
39
#endif
@@ -68,6 +70,7 @@ class barrier {
68
70
#ifdef __SYCL_DEVICE_ONLY__
69
71
return __clc_BarrierArriveNoComplete (&state, count);
70
72
#else
73
+ (void )count;
71
74
throw runtime_error (" Barrier is not supported on host device." ,
72
75
PI_INVALID_DEVICE);
73
76
#endif
@@ -77,6 +80,7 @@ class barrier {
77
80
#ifdef __SYCL_DEVICE_ONLY__
78
81
return __clc_BarrierArriveAndDropNoComplete (&state, count);
79
82
#else
83
+ (void )count;
80
84
throw runtime_error (" Barrier is not supported on host device." ,
81
85
PI_INVALID_DEVICE);
82
86
#endif
@@ -104,6 +108,7 @@ class barrier {
104
108
#ifdef __SYCL_DEVICE_ONLY__
105
109
__clc_BarrierWait (&state, arrival);
106
110
#else
111
+ (void )arrival;
107
112
throw runtime_error (" Barrier is not supported on host device." ,
108
113
PI_INVALID_DEVICE);
109
114
#endif
@@ -113,6 +118,7 @@ class barrier {
113
118
#ifdef __SYCL_DEVICE_ONLY__
114
119
return __clc_BarrierTestWait (&state, arrival);
115
120
#else
121
+ (void )arrival;
116
122
throw runtime_error (" Barrier is not supported on host device." ,
117
123
PI_INVALID_DEVICE);
118
124
#endif
0 commit comments