Moved dgesv_gpu to a C format from C++