Skip to content

Commit

Permalink
Update cl_img_matrix_multiply.asciidoc
Browse files Browse the repository at this point in the history
Adding execution results to the coding samples
  • Loading branch information
tomasz-platek authored Jul 10, 2024
1 parent 4b29fd1 commit 0b673c5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions extensions/cl_img_matrix_multiply.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ float2 res = img_dot_interleaved_acc(a, &b, acc);
printf("res = [ %f %f ]\n", res.s0, res.s1);
----

Executing a work-item containing this code gives the following result:
[source]
----
res = [ 1.000000 5.000000 ]
----

This coding sample shows how to initialize the input vectors, use the *img_matmul_acc_2x4_4x4f* function, and access the output vector:
[source]
----
Expand All @@ -278,6 +284,13 @@ printf("res = [ %f %f %f %f ]\n", res.s0, res.s1, res.s2, res.s3);
printf(" [ %f %f %f %f ]\n", res.s4, res.s5, res.s6, res.s7);
----

Executing a work-item containing this code gives the following result:
[source]
----
res = [ 1.000000 2.000000 3.000000 4.000000 ]
[ 5.000000 6.000000 7.000000 8.000000 ]
----

== Version History

[cols="5,15,15,70"]
Expand Down

0 comments on commit 0b673c5

Please sign in to comment.