Skip to content

Commit

Permalink
fix unused parameter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosborn committed Feb 6, 2024
1 parent 40ddc38 commit 927c75f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/tunable_nd.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ namespace quda
errorQuda("Shared bytes mismatch kernel: %u tp: %u\n", sizeOps, sizeTp);
}
#endif
(void)tp;
Kernel1D_host<Functor, Arg>(arg);
}

Expand Down Expand Up @@ -233,6 +234,7 @@ namespace quda
errorQuda("Shared bytes mismatch kernel: %u tp: %u\n", sizeOps, sizeTp);
}
#endif
(void)tp;
const_cast<Arg &>(arg).threads.y = vector_length_y;
Kernel2D_host<Functor, Arg>(arg);
}
Expand Down Expand Up @@ -495,6 +497,7 @@ namespace quda
errorQuda("Shared bytes mismatch kernel: %u tp: %u\n", sizeOps, sizeTp);
}
#endif
(void)tp;
const_cast<Arg &>(arg).threads.y = vector_length_y;
const_cast<Arg &>(arg).threads.z = vector_length_z;
Kernel3D_host<Functor, Arg>(arg);
Expand Down
2 changes: 2 additions & 0 deletions include/tunable_reduction.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ namespace quda
errorQuda("Shared bytes mismatch kernel: %u tp: %u\n", sizeOps, sizeTp);
}
#endif
(void)tp;
if (arg.threads.y != block_size_y)
errorQuda("Unexected y threads: received %d, expected %d", arg.threads.y, block_size_y);
std::vector<T> result_(1);
Expand Down Expand Up @@ -283,6 +284,7 @@ namespace quda
errorQuda("Shared bytes mismatch kernel: %u tp: %u\n", sizeOps, sizeTp);
}
#endif
(void)tp;
if (n_batch_block_max > Arg::max_n_batch_block)
errorQuda("n_batch_block_max = %u greater than maximum supported %u", n_batch_block_max, Arg::max_n_batch_block);

Expand Down

0 comments on commit 927c75f

Please sign in to comment.