Open main menu

CDOT Wiki β

Changes

A-Team

36 bytes added, 05:14, 1 April 2019
Initial implementation
}
float* h_m2 = new float[m1_rows * m2_columns]; for (int i = 0; i != m2.size; i++) {
h_m2[i] = m2[i];
}
   //declare device variables float* d_m1; float* d_m2; float* d_p; Error = cudaMalloc((void**)&d_m1, m1_rows * m1_columns * sizeof(float));
if (Error != cudaSuccess) {
cerr << "Failed @ d_m1 " << cudaGetErrorName(Error) << "!";
113
edits