Changing static float to global atomic for one variable