spcl / open-earth-compiler

development repository for the open earth compiler
https://arxiv.org/abs/2005.13014
Other
75 stars 14 forks source link

status of project #48

Open rohany opened 1 year ago

rohany commented 1 year ago

Hi,

I was looking at using the MLIR stencil dialect defined in this project to interface with some other MLIR code. I was wondering if the pieces here are extractable in that way, or if this code is expected to build / work correctly against the current mainline MLIR.

Thanks!

PapyChacal commented 1 year ago

Hi @rohany,

I don't know about the extractability, but this dialect's implementation is out of sync and does not build against current mainline MLIR. However, we ported parts of it in xDSL! We successfully used it to run stencils on CUDA or OpenMP, through MLIR. A few disclaimers:

I invite you to come chat on xDSL's Zulip, it's our main communication platform.

gysit commented 1 year ago

Hi @rohany,

The project is indeed unmaintained. I assume it would require quite some effort to make it work with a recent version of MLIR and I do not really have the bandwidth to support such an effort.

I would thus recommend to have a look at the xDSL version mentioned by @PapyChacal. Excited to hear the stencil dialect has a second life!

rohany commented 1 year ago

Thanks for the pointer at @PapyChacal! I took a look at xDSL (looks cool!), but I'm looking for a C++ MLIR dialect rather than a Python library that interacts with MLIR through file IO (this could be a wrong take on xDSL, please let me know!). I might give compiling / porting this library to mainline MLIR a shot, maybe it won't be too bad.