summaryrefslogtreecommitdiff
path: root/samples/haxpy.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/haxpy.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/haxpy.c')
-rw-r--r--samples/haxpy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/samples/haxpy.c b/samples/haxpy.c
index 5bab3d42..8e0833f8 100644
--- a/samples/haxpy.c
+++ b/samples/haxpy.c
@@ -71,13 +71,13 @@ int main(void) {
clEnqueueWriteBuffer(queue, device_b, CL_TRUE, 0, n*sizeof(cl_half), host_b, 0, NULL, NULL);
// Call the HAXPY routine.
- StatusCode status = CLBlastHaxpy(n, alpha,
- device_a, 0, 1,
- device_b, 0, 1,
- &queue, &event);
+ CLBlastStatusCode status = CLBlastHaxpy(n, alpha,
+ device_a, 0, 1,
+ device_b, 0, 1,
+ &queue, &event);
// Wait for completion
- if (status == kSuccess) {
+ if (status == CLBlastSuccess) {
clWaitForEvents(1, &event);
clReleaseEvent(event);
}