mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-02 08:40:14 +08:00
Protect kernel launch syntax from clang-format
This commit is contained in:
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>),
|
typename std::decay<decltype(*d_out)>::type>),
|
||||||
dim3(Grids), dim3(Blocks), 0, 0, ker, n, d_in, d_out);
|
dim3(Grids), dim3(Blocks), 0, 0, ker, n, d_in, d_out);
|
||||||
#else
|
#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);
|
run_on_gpu_meta_kernel<<<Grids, Blocks>>>(ker, n, d_in, d_out);
|
||||||
|
// clang-format on
|
||||||
#endif
|
#endif
|
||||||
// Pre-launch errors.
|
// Pre-launch errors.
|
||||||
gpuError_t err = gpuGetLastError();
|
gpuError_t err = gpuGetLastError();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user