r/ProgrammingLanguages • Futhark • 12d ago

Fixing failure handling in parallel code

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

4 comments sorted by

View all comments

Show parent comment

1

u/8d8n4mbo28026ulk 12d 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 12d ago edited 11d 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.