Update compute.cpp