summaryrefslogtreecommitdiff
path: root/samples/sgemm.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/sgemm.c')
-rw-r--r--samples/sgemm.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/samples/sgemm.c b/samples/sgemm.c
index 583fc261..132dad81 100644
--- a/samples/sgemm.c
+++ b/samples/sgemm.c
@@ -77,17 +77,18 @@ int main(void) {
clEnqueueWriteBuffer(queue, device_c, CL_TRUE, 0, m*n*sizeof(float), host_c, 0, NULL, NULL);
// Call the SGEMM routine.
- StatusCode status = CLBlastSgemm(kRowMajor, kNo, kNo,
- m, n, k,
- alpha,
- device_a, 0, a_ld,
- device_b, 0, b_ld,
- beta,
- device_c, 0, c_ld,
- &queue, &event);
+ CLBlastStatusCode status = CLBlastSgemm(CLBlastLayoutRowMajor,
+ CLBlastTransposeNo, CLBlastTransposeNo,
+ m, n, k,
+ alpha,
+ device_a, 0, a_ld,
+ device_b, 0, b_ld,
+ beta,
+ device_c, 0, c_ld,
+ &queue, &event);
// Wait for completion
- if (status == kSuccess) {
+ if (status == CLBlastSuccess) {
clWaitForEvents(1, &event);
clReleaseEvent(event);
}