Skip to content

Can we terminate a kernel during a Pipeline? #1492

Answered by thakkarV
hyhieu asked this question in Q&A
Discussion options

You must be logged in to vote

Yes this is fine in general. Ideally we would model this as some kind of while loop around an updating k tile counter etc. You just have to be really careful to make sure the pipeline states for producers and consumers agree if you terminate early in case this is a persistent kernel or you are fusing with another collective later in the lifetime of kernel.

  1. I don't see any threads updating the value of still_going for each other. Is that happening inside compute()?
  2. Have you tried this and running into issues?
  3. I have not fully read through your code, but are you making sure the MMA threads do not terminate early? The TMA stage will be running ahead of the MMA state, so the MMA still has wo…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@thakkarV
Comment options

@hyhieu
Comment options

@thakkarV
Comment options

@hyhieu
Comment options

@thakkarV
Comment options

Answer selected by hyhieu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants