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>), | ||||
|                      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(); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Antonio Sanchez
						Antonio Sanchez