clangir icon indicating copy to clipboard operation
clangir copied to clipboard

How to use OpenACC in CIR?

Open CBalaa opened this issue 5 months ago • 3 comments

I notice that LLVM's main branch is supporting openacc pragma with cir dialect and generating acc dialect recently, maybe you can merge these commits or bump up?

CBalaa avatar Jul 30 '25 14:07 CBalaa

Our current rebase workflow requires reverting upstreaming CIR commits (because they live in the same directories, use same namespace and diverge to some extent), so this won't be possible atm.

We also discussed perhaps renaming everything in the incubator to be CIR2 or something like that so we wouldn't need to do the reverts, but we got no volunteers to do the work just yet.

(cc @lanza @erichkeane)

bcardosolopes avatar Aug 07 '25 16:08 bcardosolopes

I don't have a good idea on how to do the merge/pulldown, I can definitely see how problematic it is. Though, the OpenACC parts in the incubator should be reasonably easy, as all of the CodeGen changes sans a small handful are very well contained.

That said, I'd perhaps instead suggest spending some time helping with the upstreaming process until off-the-shelf-clang-main does what you need :) Andy-et-al have done a fantastic job on upstreaming a significant part of this incubator (nearly 40% last I heard!) to be in main-line clang! But of course, more help is always appreciated.

erichkeane avatar Aug 13 '25 13:08 erichkeane

I don't have a good idea on how to do the merge/pulldown, I can definitely see how problematic it is. Though, the OpenACC parts in the incubator should be reasonably easy, as all of the CodeGen changes sans a small handful are very well contained.

That said, I'd perhaps instead suggest spending some time helping with the upstreaming process until off-the-shelf-clang-main does what you need :) Andy-et-al have done a fantastic job on upstreaming a significant part of this incubator (nearly 40% last I heard!) to be in main-line clang! But of course, more help is always appreciated.

Thank you very much. That really help me.

CBalaa avatar Aug 13 '25 13:08 CBalaa