@@ -1079,12 +1079,11 @@ ur_result_t urCommandBufferAppendKernelLaunchExp(
1079
1079
uint32_t NumKernelAlternatives, ur_kernel_handle_t *KernelAlternatives,
1080
1080
uint32_t NumSyncPointsInWaitList,
1081
1081
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1082
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1083
- ur_exp_command_buffer_sync_point_t *RetSyncPoint, ur_event_handle_t *Event,
1082
+ uint32_t /* NumEventsInWaitList*/ ,
1083
+ const ur_event_handle_t * /* EventWaitList*/ ,
1084
+ ur_exp_command_buffer_sync_point_t *RetSyncPoint,
1085
+ ur_event_handle_t * /* Event*/ ,
1084
1086
ur_exp_command_buffer_command_handle_t *Command) {
1085
- std::ignore = NumEventsInWaitList;
1086
- std::ignore = EventWaitList;
1087
- std::ignore = Event;
1088
1087
1089
1088
UR_ASSERT (Kernel->Program , UR_RESULT_ERROR_INVALID_NULL_POINTER);
1090
1089
// Command handles can only be obtained from updatable command-buffers
@@ -1157,13 +1156,11 @@ ur_result_t urCommandBufferAppendUSMMemcpyExp(
1157
1156
ur_exp_command_buffer_handle_t CommandBuffer, void *Dst, const void *Src,
1158
1157
size_t Size, uint32_t NumSyncPointsInWaitList,
1159
1158
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1160
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1161
- ur_exp_command_buffer_sync_point_t *SyncPoint, ur_event_handle_t *Event,
1162
- ur_exp_command_buffer_command_handle_t *Command) {
1163
- std::ignore = NumEventsInWaitList;
1164
- std::ignore = EventWaitList;
1165
- std::ignore = Event;
1166
- std::ignore = Command;
1159
+ uint32_t /* NumEventsInWaitList*/ ,
1160
+ const ur_event_handle_t * /* EventWaitList*/ ,
1161
+ ur_exp_command_buffer_sync_point_t *SyncPoint,
1162
+ ur_event_handle_t * /* Event*/ ,
1163
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1167
1164
1168
1165
return enqueueCommandBufferMemCopyHelper (
1169
1166
UR_COMMAND_USM_MEMCPY, CommandBuffer, Dst, Src, Size,
@@ -1177,13 +1174,11 @@ ur_result_t urCommandBufferAppendMemBufferCopyExp(
1177
1174
ur_mem_handle_t DstMem, size_t SrcOffset, size_t DstOffset, size_t Size,
1178
1175
uint32_t NumSyncPointsInWaitList,
1179
1176
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1180
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1181
- ur_exp_command_buffer_sync_point_t *SyncPoint, ur_event_handle_t *Event,
1182
- ur_exp_command_buffer_command_handle_t *Command) {
1183
- std::ignore = NumEventsInWaitList;
1184
- std::ignore = EventWaitList;
1185
- std::ignore = Event;
1186
- std::ignore = Command;
1177
+ uint32_t /* NumEventsInWaitList*/ ,
1178
+ const ur_event_handle_t * /* EventWaitList*/ ,
1179
+ ur_exp_command_buffer_sync_point_t *SyncPoint,
1180
+ ur_event_handle_t * /* Event*/ ,
1181
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1187
1182
auto SrcBuffer = ur_cast<_ur_buffer *>(SrcMem);
1188
1183
auto DstBuffer = ur_cast<_ur_buffer *>(DstMem);
1189
1184
@@ -1215,13 +1210,11 @@ ur_result_t urCommandBufferAppendMemBufferCopyRectExp(
1215
1210
size_t SrcSlicePitch, size_t DstRowPitch, size_t DstSlicePitch,
1216
1211
uint32_t NumSyncPointsInWaitList,
1217
1212
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1218
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1219
- ur_exp_command_buffer_sync_point_t *SyncPoint, ur_event_handle_t *Event,
1220
- ur_exp_command_buffer_command_handle_t *Command) {
1221
- std::ignore = NumEventsInWaitList;
1222
- std::ignore = EventWaitList;
1223
- std::ignore = Event;
1224
- std::ignore = Command;
1213
+ uint32_t /* NumEventsInWaitList*/ ,
1214
+ const ur_event_handle_t * /* EventWaitList*/ ,
1215
+ ur_exp_command_buffer_sync_point_t *SyncPoint,
1216
+ ur_event_handle_t * /* Event*/ ,
1217
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1225
1218
auto SrcBuffer = ur_cast<_ur_buffer *>(SrcMem);
1226
1219
auto DstBuffer = ur_cast<_ur_buffer *>(DstMem);
1227
1220
@@ -1252,13 +1245,11 @@ ur_result_t urCommandBufferAppendMemBufferWriteExp(
1252
1245
size_t Offset, size_t Size, const void *Src,
1253
1246
uint32_t NumSyncPointsInWaitList,
1254
1247
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1255
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1256
- ur_exp_command_buffer_sync_point_t *SyncPoint, ur_event_handle_t *Event,
1257
- ur_exp_command_buffer_command_handle_t *Command) {
1258
- std::ignore = NumEventsInWaitList;
1259
- std::ignore = EventWaitList;
1260
- std::ignore = Event;
1261
- std::ignore = Command;
1248
+ uint32_t /* NumEventsInWaitList*/ ,
1249
+ const ur_event_handle_t * /* EventWaitList*/ ,
1250
+ ur_exp_command_buffer_sync_point_t *SyncPoint,
1251
+ ur_event_handle_t * /* Event*/ ,
1252
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1262
1253
std::scoped_lock<ur_shared_mutex> Lock (Buffer->Mutex );
1263
1254
1264
1255
char *ZeHandleDst = nullptr ;
@@ -1282,13 +1273,11 @@ ur_result_t urCommandBufferAppendMemBufferWriteRectExp(
1282
1273
size_t HostRowPitch, size_t HostSlicePitch, void *Src,
1283
1274
uint32_t NumSyncPointsInWaitList,
1284
1275
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1285
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1286
- ur_exp_command_buffer_sync_point_t *SyncPoint, ur_event_handle_t *Event,
1287
- ur_exp_command_buffer_command_handle_t *Command) {
1288
- std::ignore = NumEventsInWaitList;
1289
- std::ignore = EventWaitList;
1290
- std::ignore = Event;
1291
- std::ignore = Command;
1276
+ uint32_t /* NumEventsInWaitList*/ ,
1277
+ const ur_event_handle_t * /* EventWaitList*/ ,
1278
+ ur_exp_command_buffer_sync_point_t *SyncPoint,
1279
+ ur_event_handle_t * /* Event*/ ,
1280
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1292
1281
std::scoped_lock<ur_shared_mutex> Lock (Buffer->Mutex );
1293
1282
1294
1283
char *ZeHandleDst = nullptr ;
@@ -1310,13 +1299,11 @@ ur_result_t urCommandBufferAppendMemBufferReadExp(
1310
1299
ur_exp_command_buffer_handle_t CommandBuffer, ur_mem_handle_t Buffer,
1311
1300
size_t Offset, size_t Size, void *Dst, uint32_t NumSyncPointsInWaitList,
1312
1301
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1313
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1314
- ur_exp_command_buffer_sync_point_t *SyncPoint, ur_event_handle_t *Event,
1315
- ur_exp_command_buffer_command_handle_t *Command) {
1316
- std::ignore = NumEventsInWaitList;
1317
- std::ignore = EventWaitList;
1318
- std::ignore = Event;
1319
- std::ignore = Command;
1302
+ uint32_t /* NumEventsInWaitList*/ ,
1303
+ const ur_event_handle_t * /* EventWaitList*/ ,
1304
+ ur_exp_command_buffer_sync_point_t *SyncPoint,
1305
+ ur_event_handle_t * /* Event*/ ,
1306
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1320
1307
std::scoped_lock<ur_shared_mutex> SrcLock (Buffer->Mutex );
1321
1308
1322
1309
char *ZeHandleSrc = nullptr ;
@@ -1339,13 +1326,11 @@ ur_result_t urCommandBufferAppendMemBufferReadRectExp(
1339
1326
size_t HostRowPitch, size_t HostSlicePitch, void *Dst,
1340
1327
uint32_t NumSyncPointsInWaitList,
1341
1328
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1342
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1343
- ur_exp_command_buffer_sync_point_t *SyncPoint, ur_event_handle_t *Event,
1344
- ur_exp_command_buffer_command_handle_t *Command) {
1345
- std::ignore = NumEventsInWaitList;
1346
- std::ignore = EventWaitList;
1347
- std::ignore = Event;
1348
- std::ignore = Command;
1329
+ uint32_t /* NumEventsInWaitList*/ ,
1330
+ const ur_event_handle_t * /* EventWaitList*/ ,
1331
+ ur_exp_command_buffer_sync_point_t *SyncPoint,
1332
+ ur_event_handle_t * /* Event*/ ,
1333
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1349
1334
std::scoped_lock<ur_shared_mutex> SrcLock (Buffer->Mutex );
1350
1335
1351
1336
char *ZeHandleSrc;
@@ -1364,16 +1349,13 @@ ur_result_t urCommandBufferAppendMemBufferReadRectExp(
1364
1349
1365
1350
ur_result_t urCommandBufferAppendUSMPrefetchExp (
1366
1351
ur_exp_command_buffer_handle_t CommandBuffer, const void *Mem, size_t Size,
1367
- ur_usm_migration_flags_t Flags, uint32_t NumSyncPointsInWaitList,
1352
+ ur_usm_migration_flags_t /* Flags*/ , uint32_t NumSyncPointsInWaitList,
1368
1353
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1369
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1370
- ur_exp_command_buffer_sync_point_t *RetSyncPoint, ur_event_handle_t *Event,
1371
- ur_exp_command_buffer_command_handle_t *Command) {
1372
- std::ignore = NumEventsInWaitList;
1373
- std::ignore = EventWaitList;
1374
- std::ignore = Event;
1375
- std::ignore = Command;
1376
- std::ignore = Flags;
1354
+ uint32_t /* NumEventsInWaitList*/ ,
1355
+ const ur_event_handle_t * /* EventWaitList*/ ,
1356
+ ur_exp_command_buffer_sync_point_t *RetSyncPoint,
1357
+ ur_event_handle_t * /* Event*/ ,
1358
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1377
1359
1378
1360
std::vector<ze_event_handle_t > ZeEventList;
1379
1361
ze_event_handle_t ZeLaunchEvent = nullptr ;
@@ -1407,13 +1389,11 @@ ur_result_t urCommandBufferAppendUSMAdviseExp(
1407
1389
ur_exp_command_buffer_handle_t CommandBuffer, const void *Mem, size_t Size,
1408
1390
ur_usm_advice_flags_t Advice, uint32_t NumSyncPointsInWaitList,
1409
1391
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1410
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1411
- ur_exp_command_buffer_sync_point_t *RetSyncPoint, ur_event_handle_t *Event,
1412
- ur_exp_command_buffer_command_handle_t *Command) {
1413
- std::ignore = NumEventsInWaitList;
1414
- std::ignore = EventWaitList;
1415
- std::ignore = Event;
1416
- std::ignore = Command;
1392
+ uint32_t /* NumEventsInWaitList*/ ,
1393
+ const ur_event_handle_t * /* EventWaitList*/ ,
1394
+ ur_exp_command_buffer_sync_point_t *RetSyncPoint,
1395
+ ur_event_handle_t * /* Event*/ ,
1396
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1417
1397
// A memory chunk can be advised with muliple memory advices
1418
1398
// We therefore prefer if statements to switch cases to combine all potential
1419
1399
// flags
@@ -1473,13 +1453,11 @@ ur_result_t urCommandBufferAppendMemBufferFillExp(
1473
1453
const void *Pattern, size_t PatternSize, size_t Offset, size_t Size,
1474
1454
uint32_t NumSyncPointsInWaitList,
1475
1455
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1476
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1477
- ur_exp_command_buffer_sync_point_t *SyncPoint, ur_event_handle_t *Event,
1478
- ur_exp_command_buffer_command_handle_t *Command) {
1479
- std::ignore = NumEventsInWaitList;
1480
- std::ignore = EventWaitList;
1481
- std::ignore = Event;
1482
- std::ignore = Command;
1456
+ uint32_t /* NumEventsInWaitList*/ ,
1457
+ const ur_event_handle_t * /* EventWaitList*/ ,
1458
+ ur_exp_command_buffer_sync_point_t *SyncPoint,
1459
+ ur_event_handle_t * /* Event*/ ,
1460
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1483
1461
1484
1462
std::scoped_lock<ur_shared_mutex> Lock (Buffer->Mutex );
1485
1463
@@ -1500,13 +1478,11 @@ ur_result_t urCommandBufferAppendUSMFillExp(
1500
1478
const void *Pattern, size_t PatternSize, size_t Size,
1501
1479
uint32_t NumSyncPointsInWaitList,
1502
1480
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
1503
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
1504
- ur_exp_command_buffer_sync_point_t *SyncPoint, ur_event_handle_t *Event,
1505
- ur_exp_command_buffer_command_handle_t *Command) {
1506
- std::ignore = NumEventsInWaitList;
1507
- std::ignore = EventWaitList;
1508
- std::ignore = Event;
1509
- std::ignore = Command;
1481
+ uint32_t /* NumEventsInWaitList*/ ,
1482
+ const ur_event_handle_t * /* EventWaitList*/ ,
1483
+ ur_exp_command_buffer_sync_point_t *SyncPoint,
1484
+ ur_event_handle_t * /* Event*/ ,
1485
+ ur_exp_command_buffer_command_handle_t * /* Command*/ ) {
1510
1486
1511
1487
return enqueueCommandBufferFillHelper (
1512
1488
UR_COMMAND_MEM_BUFFER_FILL, CommandBuffer, Ptr,
@@ -2304,18 +2280,15 @@ ur_result_t urCommandBufferUpdateKernelLaunchExp(
2304
2280
}
2305
2281
2306
2282
ur_result_t urCommandBufferUpdateSignalEventExp (
2307
- ur_exp_command_buffer_command_handle_t Command, ur_event_handle_t *Event) {
2308
- std::ignore = Command;
2309
- std::ignore = Event;
2283
+ ur_exp_command_buffer_command_handle_t /* Command*/ ,
2284
+ ur_event_handle_t * /* Event*/ ) {
2310
2285
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
2311
2286
}
2312
2287
2313
2288
ur_result_t urCommandBufferUpdateWaitEventsExp (
2314
- ur_exp_command_buffer_command_handle_t Command,
2315
- uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList) {
2316
- std::ignore = Command;
2317
- std::ignore = NumEventsInWaitList;
2318
- std::ignore = EventWaitList;
2289
+ ur_exp_command_buffer_command_handle_t /* Command*/ ,
2290
+ uint32_t /* NumEventsInWaitList*/ ,
2291
+ const ur_event_handle_t * /* EventWaitList*/ ) {
2319
2292
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
2320
2293
}
2321
2294
0 commit comments