r/ProgrammingLanguages • Futhark • 19d ago

Fixing failure handling in parallel code

https://futhark-lang.org/blog/2026-11-14-fixing-failure-handling.html
13 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/8d8n4mbo28026ulk 19d ago

Ah, I think understand now, thanks! Would writing first to something other than global_failure solve this? Such that you could distinguish between a failure of the previous and current kernel.

1

u/Athas Futhark 19d ago edited 18d ago

Yes, I think there needs to be some kind of little dance where one thread in a block reads global_failure and then disseminates its value to the other threads, so they all have a consistent view of it.