Ionic models may fail when allocating large LUT space
AMD GPUs fail when using numerous LUT variables. This happens because the temporary LUT allocation is done inside the BB of the executed threads. The compiler, therefore, is unable to hoist it outside of the BB. The FIX consists of moving such allocation to happen both in threads that execute and those that don't.