Keeping Futhark off the GPU
Summary
The post explains the challenge of running graph coloring and Jacobian computations on GPUs within the Futhark compiler, and describes a pragmatic hack using a cpu_function attribute to run certain parts on CPU while keeping GPU work for the rest. It covers memory placement, cross-backend constraints, and the tradeoffs of data movement versus computation.