Protect kernel launch syntax from clang-format
diff --git a/test/gpu_common.h b/test/gpu_common.h index 3b4aefc..f34f1b0 100644 --- a/test/gpu_common.h +++ b/test/gpu_common.h
@@ -55,7 +55,10 @@ typename std::decay<decltype(*d_out)>::type>), dim3(Grids), dim3(Blocks), 0, 0, ker, n, d_in, d_out); #else + // Various versions of clang-format incorrectly add spaces to the kernel launch brackets. + // clang-format off run_on_gpu_meta_kernel<<<Grids, Blocks>>>(ker, n, d_in, d_out); + // clang-format on #endif // Pre-launch errors. gpuError_t err = gpuGetLastError();