adding opencl convolution benchmark

This commit is contained in:
Blaise Tine
2023-11-14 22:31:30 -08:00
parent 4e7a536918
commit 61e3442ef8
16 changed files with 490 additions and 170 deletions

View File

@@ -155,9 +155,8 @@ int main (int argc, char **argv) {
h_a = (int*)malloc(nbytes);
h_c = (int*)malloc(nbytes);
// Initialize values for array members.
// Generate input values
for (int i = 0; i < size; ++i) {
h_c[i] = 0xdeadbeef;
if (float_enable) {
float value = sinf(i)*sinf(i);
h_a[i] = *(int*)&value;