2
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-04-24 19:40:45 +08:00

Protect kernel launch syntax from clang-format

This commit is contained in:
Antonio Sanchez 2023-12-05 14:26:25 -08:00
parent 383506fcb2
commit 454f89af9d

@ -55,7 +55,10 @@ void run_on_gpu(const Kernel& ker, int n, const Input& in, Output& out) {
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();