trying to modify CUDA API call recording function.