Skip to content

Commit

Permalink
Format checker
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 3, 2023
1 parent 585af39 commit 36fa523
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Clang-Format

on:
push:
pull_request:
merge_group:

jobs:
build:
name: Format
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.16.2
with:
source: 'enzyme_jax'
style: 'llvm'
clangFormatVersion: 16
6 changes: 3 additions & 3 deletions enzyme_jax/enzyme_call.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h"

#include "xla/service/cpu/cpu_executable.h"
#include "xla/hlo/ir/hlo_instructions.h"
#include "xla/hlo/ir/hlo_casting_utils.h"
#include "compile_with_xla.h"
#include "xla/hlo/ir/hlo_casting_utils.h"
#include "xla/hlo/ir/hlo_instructions.h"
#include "xla/service/cpu/cpu_executable.h"

enum class ABI { Primal, Forward, Augmented, Reverse, Tape };

Expand Down

0 comments on commit 36fa523

Please sign in to comment.