summaryrefslogtreecommitdiff
path: root/samples/dgemv.c
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-10-22 16:14:56 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-10-22 16:14:56 +0200
commita670c4c4bfa9557d2ae059c31aa773cf0f02ec12 (patch)
treed1f3e45501afa1818d824aa24b87148448575108 /samples/dgemv.c
parent4a5516aa784d2f0352daf8579c377130a914b067 (diff)
All enums in the C API are now prefixed with CLBlast to avoid potential name clashes with other projects
Diffstat (limited to 'samples/dgemv.c')
-rw-r--r--samples/dgemv.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/samples/dgemv.c b/samples/dgemv.c
index a15d649a..dc2fe7db 100644
--- a/samples/dgemv.c
+++ b/samples/dgemv.c
@@ -74,17 +74,17 @@ int main(void) {
clEnqueueWriteBuffer(queue, device_y, CL_TRUE, 0, m*sizeof(double), host_y, 0, NULL, NULL);
// Call the DGEMV routine.
- StatusCode status = CLBlastDgemv(kRowMajor, kNo,
- m, n,
- alpha,
- device_a, 0, a_ld,
- device_x, 0, 1,
- beta,
- device_y, 0, 1,
- &queue, &event);
+ CLBlastStatusCode status = CLBlastDgemv(CLBlastLayoutRowMajor, CLBlastTransposeNo,
+ m, n,
+ alpha,
+ device_a, 0, a_ld,
+ device_x, 0, 1,
+ beta,
+ device_y, 0, 1,
+ &queue, &event);
// Wait for completion
- if (status == kSuccess) {
+ if (status == CLBlastSuccess) {
clWaitForEvents(1, &event);
clReleaseEvent(event);
}