before using cudamat