Open main menu
CDOT Wiki
β
Search
Changes
← Older edit
Newer edit →
A-Team
87 bytes added
,
05:16, 1 April 2019
→
Initial implementation
exit(EXIT_FAILURE);
}
//freeCuda & delete
//display("C = A B :", h_p, m1_rows, m1_columns);
Error = cudaFree(d_m1);
cudaCheck(Error);
Error = cudaFree(d_m2);
cudaCheck(Error);
Error = cudaFree(d_p);
cudaCheck(Error);
delete[] h_m1;
delete[] h_m2;
cudaDeviceReset();
for (int i = 0; i < (m1_rows * m1_columns); i++) {
product.push_back(h_p[i]);
}
delete[] h_p;
return product;
}
=== Assignment 3 ===
Spdjurovic
113
edits