Browse Source

SOCL: minor change in basic example

Sylvain Henry 12 years ago
parent
commit
42bfecf7f9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      socl/examples/basic/basic.c

+ 2 - 2
socl/examples/basic/basic.c

@@ -145,7 +145,7 @@ int main(int UNUSED(argc), char** UNUSED(argv)) {
 #ifdef PROFILING
 #ifdef PROFILING
    cq = clCreateCommandQueue(context, NULL, CL_QUEUE_PROFILING_ENABLE, &err);
    cq = clCreateCommandQueue(context, NULL, CL_QUEUE_PROFILING_ENABLE, &err);
 #else
 #else
-   cq = clCreateCommandQueue(context, NULL, 0, &err);
+   cq = clCreateCommandQueue(context, NULL, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, &err);
 #endif
 #endif
    check(err, "clCreateCommandQueue");
    check(err, "clCreateCommandQueue");
 
 
@@ -208,7 +208,7 @@ int main(int UNUSED(argc), char** UNUSED(argv)) {
    err |= clReleaseEvent(eventW2);
    err |= clReleaseEvent(eventW2);
    err |= clReleaseEvent(eventK);
    err |= clReleaseEvent(eventK);
    err |= clReleaseEvent(eventR);
    err |= clReleaseEvent(eventR);
-   check(err, "clReleaseCommandQueue");
+   check(err, "clReleaseEvents");
 
 
    printf("Releasing command queue...\n");
    printf("Releasing command queue...\n");
    err = clReleaseCommandQueue(cq);
    err = clReleaseCommandQueue(cq);