# A small attempt at running CLArrays.jl with julia 1.0

**URL:** <https://discourse.julialang.org/t/a-small-attempt-at-running-clarrays-jl-with-julia-1-0/15208>\
**Category:** GPU\
**Created:** [September 20, 2018, 12:57am UTC](https://discourse.julialang.org/t/a-small-attempt-at-running-clarrays-jl-with-julia-1-0/15208 "2018-09-20T00:57:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [September 20, 2018, 8:30am UTC](https://discourse.julialang.org/t/a-small-attempt-at-running-clarrays-jl-with-julia-1-0/15208/2 "2018-09-20T08:30:43Z")

</div>

The main road block is porting the Sugar.jl relooper to 1.0.  
I had a nice IR pattern matching going for 0.7 (in [Sugar/sd/07](https://github.com/SimonDanisch/Sugar.jl/blob/sd/07/src/sugarcoating.jl#L3)), but sadly I did it just before the huge Julia IR changes hit 0.7, so it became all obsolete -.-

I’d say the best strategy would be to use IRTools, solve [IRTools.jl#3](https://github.com/MikeInnes/IRTools.jl/issues/3#issuecomment-421975478), best by reusing [Charlotte.jl relooper](https://github.com/MikeInnes/Charlotte.jl/blob/master/src/script/looper.jl), and then port some of the sugar passes to IRTools - which we should be able to drastically simplify.  
Alternatively, we could also try to update the pattern matching approach in sd/07 to work with Julia’s new IR - shouldn’t be too hard, just needs some new ways to match the new IR blocks.

Transpiler.jl will need quite a bit of a rewrite as well, but I hope to drastically simplify a few things - and it should mainly just be about Sugar.jl preparing the IR for Transpiler to consume.

Let me know if you seriously consider working on this, I want to sit down at some point and get this working 😉

---

_[View the full topic](https://discourse.julialang.org/t/a-small-attempt-at-running-clarrays-jl-with-julia-1-0/15208)._
