Changes to OpenCL compiler to balance optimisation with being able to run smaller numbers of paths