Fix CUDA+Clang build warnings.

libeigen/eigen!2241
This commit is contained in:
Antonio Sánchez
2026-03-04 09:41:01 +00:00
committed by Rasmus Munk Larsen
parent 0269c017aa
commit abc3d6014d
11 changed files with 356 additions and 334 deletions

View File

@@ -176,7 +176,7 @@ void test_3d_convolution(Context* context) {
// Helper method to synchronize device.
template <typename Device>
void synchronize(Device& device) { /*nothing*/
void synchronize(Device& /*device*/) { /*nothing*/
}
template <>
void synchronize(Eigen::GpuDevice& device) {
@@ -197,7 +197,7 @@ void test_device_memory(const TensorDevice& device) {
device.memcpyDeviceToHost(host.data(), device_data, count * sizeof(DataType));
synchronize(device);
memset(expected.data(), byte_value, count * sizeof(DataType));
for (size_t i = 0; i < count; i++) {
for (Index i = 0; i < count; i++) {
VERIFY_IS_EQUAL(host(i), expected(i));
}