Skip to content

Commit 71b4203

Browse files
authored
Merge pull request #873 from reyoung/feature/adapt_clang_format4
Fit pre-commit for clang-format 4.x
2 parents b0c6331 + f821b6b commit 71b4203

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

paddle/cuda/src/hl_cuda_device.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

15+
// clang-format off
16+
// Because clang-format 4.X and clang-format 3.8+ format
17+
// following lines in different. So disable clang-format.
1518
#include "hl_cuda.h"
1619
#include <cuda_profiler_api.h>
1720
#include <string.h>
@@ -23,6 +26,7 @@ limitations under the License. */
2326
#include "hl_dso_loader.h"
2427
#include "hl_thread.ph"
2528
#include "paddle/utils/Logging.h"
29+
// clang-format on
2630

2731
namespace dynload {
2832

0 commit comments

Comments
 (0)