Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > Vthread > Vthread__Best_Effort_Msg__Bench
comparison c-ray-mt.c @ 2:75c818c6cad1
DataSet print out
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 28 Sep 2011 15:13:46 +0200 |
| parents | 3840d91821c4 |
| children | 80a90f221047 |
comparison
equal
deleted
inserted
replaced
| 1:c09da66b67c8 | 2:68071de2692f |
|---|---|
| 241 fprintf(stderr, "unrecognized argument: %s\n", argv[i]); | 241 fprintf(stderr, "unrecognized argument: %s\n", argv[i]); |
| 242 fputs(usage, stderr); | 242 fputs(usage, stderr); |
| 243 return EXIT_FAILURE; | 243 return EXIT_FAILURE; |
| 244 } | 244 } |
| 245 } | 245 } |
| 246 | |
| 247 snprintf(DataSet,255,"file: %s\nsize: %dx%d\nrays per pixel: %d\nthreads: %d\n", | |
| 248 infile, xres, yres, rays_per_pixel, thread_num); | |
| 246 | 249 |
| 247 | 250 |
| 248 if(!(pixels = malloc(xres * yres * sizeof *pixels))) { | 251 if(!(pixels = malloc(xres * yres * sizeof *pixels))) { |
| 249 perror("pixel buffer allocation failed"); | 252 perror("pixel buffer allocation failed"); |
| 250 return EXIT_FAILURE; | 253 return EXIT_FAILURE; |
