Open main menu
CDOT Wiki
β
Search
Changes
← Older edit
Newer edit →
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) << "!";
Spdjurovic
113
edits