| 543 | |
| 544 | |
| 545 | static int verify_fill_struct( void *ptr1, void *ptr2, int n ) |
| 546 | { |
| 547 | int i; |
| 548 | TestStruct *inptr = (TestStruct *)ptr1; |
| 549 | TestStruct *outptr = (TestStruct *)ptr2; |
| 550 | |
| 551 | for (i=0; i<n; i++){ |
| 552 | if ( ( outptr[i].a != inptr[i].a ) || ( outptr[i].b != outptr[i].b ) ) |
| 553 | return -1; |
| 554 | } |
| 555 | |
| 556 | return 0; |
| 557 | } |
| 558 | |
| 559 | |
| 560 | static int test_buffer_fill(cl_device_id deviceID, cl_context context, |