未验证 提交 4a3ca4e2 编写于 作者: M Michael Wyatt 提交者: GitHub

Fix formatting (#3343)

* formatting

* fixing clang-format version

* update pre-commit URL
上级 78afab04
......@@ -27,7 +27,7 @@ repos:
hooks:
- id: yapf
- repo: https://gitlab.com/daverona/pre-commit-cpp
- repo: https://gitlab.com/daverona/pre-commit/cpp
rev: 0.8.0
hooks:
- id: clang-format # formatter of C/C++ code based on a style guide: LLVM, Google, Chromium, Mozilla, and WebKit available
......
......@@ -162,7 +162,7 @@ void launch_fused_add2<float>(float* out,
int total_count = batch_size * seq_length * hidden_dim / 4;
dim3 grid_dim = DS_GET_BLOCKS(total_count); //(batch_size * seq_length);
dim3 block_dim = DS_CUDA_NUM_THREADS; //(hidden_dim / 4);
dim3 block_dim = DS_CUDA_NUM_THREADS; //(hidden_dim / 4);
fused_add2_kernel<<<grid_dim, block_dim, 0, stream>>>(total_count, out, inp1, inp2);
}
......@@ -179,7 +179,7 @@ void launch_fused_add2<__half>(__half* out,
int total_count = batch_size * seq_length * hidden_dim / 4;
dim3 grid_dim = DS_GET_BLOCKS(total_count); //(batch_size * seq_length);
dim3 block_dim = DS_CUDA_NUM_THREADS; //(hidden_dim / 4);
dim3 block_dim = DS_CUDA_NUM_THREADS; //(hidden_dim / 4);
fused_add2_kernel<<<grid_dim, block_dim, 0, stream>>>(total_count, out, inp1, inp2);
}
......
clang-format>=14.0.6
clang-format==16.0.2
docutils<0.18
future
importlib-metadata>=4
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册