소스 검색

socl/examples/basic/basic.c: add information messages

Nathalie Furmento 13 년 전
부모
커밋
bebd722e8c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      socl/examples/basic/basic.c

+ 3 - 1
socl/examples/basic/basic.c

@@ -149,8 +149,10 @@ int main(int UNUSED(argc), char** UNUSED(argv)) {
    err = clEnqueueReadBuffer(cq, dm, CL_FALSE, 0, REALSIZE, d, 0, NULL, &eventR);
    check(err, "clEnqueueReadBuffer");
 
+   printf("Finishing queue...\n");
    clFinish(cq);
 
+   printf("Data...\n");
    {
       int i;
       for (i=0; i<SIZE; i++) {
@@ -175,7 +177,7 @@ int main(int UNUSED(argc), char** UNUSED(argv)) {
    DURATION(eventR, "result buffer reading");
 #endif
 
-   
+
    printf("Releasing events...\n");
    err = clReleaseEvent(eventW1);
    err |= clReleaseEvent(eventW2);