SCM Repository
[diderot] Diff of /branches/pure-cfg/src/lib/cl-target/main.c
Diff of /branches/pure-cfg/src/lib/cl-target/main.c
Parent Directory
|
Revision Log
|
Patch
117 |
size_t global_work_size[2], local_work_size[2]; |
size_t global_work_size[2], local_work_size[2]; |
118 |
global_work_size[0] = wrld->size[0]; |
global_work_size[0] = wrld->size[0]; |
119 |
global_work_size[1] = wrld->size[1]; |
global_work_size[1] = wrld->size[1]; |
120 |
local_work_size[0] = 16; |
local_work_size[0] = 1; |
121 |
local_work_size[1] = 16; |
local_work_size[1] = 1; |
122 |
|
|
123 |
cl_int width = global_work_size[1]; |
cl_int width = global_work_size[1]; |
124 |
|
|
137 |
|
|
138 |
|
|
139 |
if (sts != CL_SUCCESS) { |
if (sts != CL_SUCCESS) { |
140 |
fprintf (stderr, "error in executing kernel\n"); |
fprintf (stderr, "error in executing kernel code:%d\n",sts); |
141 |
exit(1); |
exit(1); |
142 |
} |
} |
143 |
|
|
147 |
NULL, NULL); |
NULL, NULL); |
148 |
|
|
149 |
if (sts != CL_SUCCESS) { |
if (sts != CL_SUCCESS) { |
150 |
fprintf (stderr, "error in reading back output\n"); |
fprintf (stderr, "error in reading back output code:%d\n",sts); |
151 |
exit(1); |
exit(1); |
152 |
} |
} |
153 |
} |
} |
|
Legend:
Removed from v.1322 |
|
changed lines |
|
Added in v.1323 |
|
|