Will do the optimization on the CPU