瀏覽代碼

SOCL: minor change in basic example

Sylvain Henry 12 年之前
父節點
當前提交
42bfecf7f9
共有 1 個文件被更改,包括 2 次插入2 次删除
  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
    cq = clCreateCommandQueue(context, NULL, CL_QUEUE_PROFILING_ENABLE, &err);
 #else
-   cq = clCreateCommandQueue(context, NULL, 0, &err);
+   cq = clCreateCommandQueue(context, NULL, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, &err);
 #endif
    check(err, "clCreateCommandQueue");
 
@@ -208,7 +208,7 @@ int main(int UNUSED(argc), char** UNUSED(argv)) {
    err |= clReleaseEvent(eventW2);
    err |= clReleaseEvent(eventK);
    err |= clReleaseEvent(eventR);
-   check(err, "clReleaseCommandQueue");
+   check(err, "clReleaseEvents");
 
    printf("Releasing command queue...\n");
    err = clReleaseCommandQueue(cq);