add docker cmd, and test opencl with ftest

This commit is contained in:
2023-12-25 22:54:37 +01:00
parent be18a4a2f8
commit f1d8a39e2f
4 changed files with 277 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
__kernel void vector_add(float alpha, __global const int *A, __global const int *B, __global int *C) {
// Get the index of the current element to be processed
int i = get_global_id(0);
// Do the operation
C[i] = alpha * A[i] + B[i];
}