Matrix multiplication based on CUDA and C++