Cleanup: oneAPI: Fix warnings about unused variables

No performance or functional changes are expected
This commit is contained in:
Nikita Sirgienko
2025-09-03 10:47:34 +02:00
parent 72cbe7adad
commit a984114d5e
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ void oneapi_kernel_##name(KernelGlobalsGPU *ccl_restrict kg, \
size_t kernel_local_size, \
sycl::handler &cgh, \
__VA_ARGS__) { \
(kg); \
(void)(kg); \
cgh.parallel_for( \
sycl::nd_range<1>(kernel_global_size, kernel_local_size), \
[=](sycl::nd_item<1> item) {
@@ -90,7 +90,7 @@ void oneapi_kernel_##name(KernelGlobalsGPU *ccl_restrict kg, \
size_t kernel_local_size, \
sycl::handler &cgh, \
__VA_ARGS__) { \
(kg); \
(void)(kg); \
(kernel_local_size); \
cgh.host_task( \
[=]() {\

View File

@@ -11,7 +11,7 @@
sycl::handler &cgh, \
__VA_ARGS__) \
{ \
(kg); \
(void)(kg); \
cgh.parallel_for( \
sycl::nd_range<1>(kernel_global_size, kernel_local_size), \
[=](sycl::nd_item<1> item, sycl::kernel_handler oneapi_kernel_handler) { \