commit | bec013b2c965880a6dc50a0d3a12b52d07b30352 | [log] [tgz] |
---|---|---|
author | Gael Guennebaud <g.gael@free.fr> | Thu Jul 12 17:02:18 2018 +0200 |
committer | Gael Guennebaud <g.gael@free.fr> | Thu Jul 12 17:02:18 2018 +0200 |
tree | 06e7258916d07502b9731c9d5db92e17e2ecdf66 | |
parent | 5c73c9223ac5911c2cf31cfd55d7987bd2b08281 [diff] |
fix unused warning
diff --git a/test/gpu_common.h b/test/gpu_common.h index 3030af6..60a78cc 100644 --- a/test/gpu_common.h +++ b/test/gpu_common.h
@@ -88,6 +88,9 @@ #if !defined(__CUDA_ARCH__) && !defined(__HIP_DEVICE_COMPILE__) in_ref = in_gpu = in; out_ref = out_gpu = out; + #else + EIGEN_UNUSED_VARIABLE(in); + EIGEN_UNUSED_VARIABLE(out); #endif run_on_cpu (ker, n, in_ref, out_ref); run_on_gpu(ker, n, in_gpu, out_gpu);