Skip to content

Commit

Permalink
ci-mlir: drop binutiles folder effort
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Nov 15, 2023
1 parent 47e17a8 commit 8a6f7cf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci-mlir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
python-version: ['3.10']

env:
LLVM_SYMBOLIZER_PATH: /usr/lib/llvm-11/bin/llvm-symbolizer
MLIR-Version: 04fc02e583b06b846315904a55af9c273c8b20b9

steps:
Expand Down Expand Up @@ -89,7 +88,6 @@ jobs:
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=OFF \
-DLLVM_BINUTILS_INCDIR=/usr/include \
-DCMAKE_CXX_FLAGS="-stdlib=libc++"
- name: MLIR Build and add to PATH
Expand Down
23 changes: 19 additions & 4 deletions tests/test_xdsl_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

from devito import Grid, TimeFunction, Eq, XDSLOperator, Operator, solve

from xdsl.dialects.scf import For, Yield
from xdsl.dialects.arith import Addi
from xdsl.dialects.stencil import FieldType
from xdsl.dialects.func import Call, Return
from xdsl.dialects.stencil import FieldType, ApplyOp, LoadOp, StoreOp
from xdsl.dialects.llvm import LLVMPointerType


Expand Down Expand Up @@ -50,9 +52,22 @@ def test_xdsl_III():
assert type(op._module.regions[0].blocks[0].ops.first.body.blocks[0]._args[1].type) == FieldType
assert type(op._module.regions[0].blocks[0].ops.first.body.blocks[0]._args[2].type) == LLVMPointerType

myops = list(op._module.regions[0].blocks[0].ops.first.body.blocks[0].ops)
assert type(myops[5] == Addi)
# import pdb;pdb.set_trace()
ops = list(op._module.regions[0].blocks[0].ops.first.body.blocks[0].ops)
assert type(ops[5] == Addi)
assert type(ops[6] == For)

scffor_ops = list(ops[6].regions[0].blocks[0].ops)

assert type(scffor_ops[0]) == LoadOp
assert type(scffor_ops[1]) == ApplyOp
assert type(scffor_ops[2]) == StoreOp
assert type(scffor_ops[3]) == Yield

assert type(ops[7] == Call)
assert type(ops[8] == StoreOp)
assert type(ops[9] == Return)




def test_diffusion_2D():
Expand Down

0 comments on commit 8a6f7cf

Please sign in to comment.