diff options
author | Jongsoo Park <jongsoo@fb.com> | 2019-09-03 15:01:41 +0300 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-09-03 15:05:48 +0300 |
commit | e55a59653b70ef67e8f48373566756c477cda7b5 (patch) | |
tree | 41c48852375be4b1b1895a4abbb3c20f6908534b /src/FbgemmFP16.cc | |
parent | dc76fd4ce3094e929e2eda9c7860dcb8a559e098 (diff) |
disable clang formatting in a few array definitions (#121)
Summary:
Pull Request resolved: https://github.com/pytorch/FBGEMM/pull/121
By adding "// clang-format off" and "// clang-format on" we can still apply clang-format to these files.
Reviewed By: jianyuh
Differential Revision: D17159312
fbshipit-source-id: de523536df4c33f0efe332f9bc7b0290cdac1ba0
Diffstat (limited to 'src/FbgemmFP16.cc')
-rw-r--r-- | src/FbgemmFP16.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbgemmFP16.cc b/src/FbgemmFP16.cc index 2c0eea3..71d4441 100644 --- a/src/FbgemmFP16.cc +++ b/src/FbgemmFP16.cc @@ -52,6 +52,7 @@ struct KernelInfo { // autotuned kernel splits for various cases m = 1:mb_max // may need re-autotuning for new uarch + // clang-format off static constexpr array<array<array<int, 2>, 2>, 121> partition = { // NOTE: clang-format wants to use a different formatting but the current // formatting should be easier to read. @@ -179,6 +180,7 @@ struct KernelInfo { {{ { 6, 20 }, { 0, 0 } } }, // 120 } }; + // clang-format on }; constexpr array<KernelInfo::knl_ptr, 7> KernelInfo::kernel; constexpr array<array<array<int, 2>, 2>, 121> KernelInfo::partition; |