| 5364 | |
| 5365 | #if defined(CL_VERSION_1_2) |
| 5366 | inline Program linkProgram( |
| 5367 | Program input1, |
| 5368 | Program input2, |
| 5369 | const char* options = NULL, |
| 5370 | void (CL_CALLBACK * notifyFptr)(cl_program, void *) = NULL, |
| 5371 | void* data = NULL, |
| 5372 | cl_int* err = NULL) |
| 5373 | { |
| 5374 | cl_int error_local = CL_SUCCESS; |
| 5375 | |
| 5376 | cl_program programs[2] = { input1(), input2() }; |
| 5377 | |
| 5378 | Context ctx = input1.getInfo<CL_PROGRAM_CONTEXT>(&error_local); |
| 5379 | if(error_local!=CL_SUCCESS) { |
| 5380 | detail::errHandler(error_local, __LINK_PROGRAM_ERR); |
| 5381 | } |
| 5382 | |
| 5383 | cl_program prog = ::clLinkProgram( |
| 5384 | ctx(), |
| 5385 | 0, |
| 5386 | NULL, |
| 5387 | options, |
| 5388 | 2, |
| 5389 | programs, |
| 5390 | notifyFptr, |
| 5391 | data, |
| 5392 | &error_local); |
| 5393 | |
| 5394 | detail::errHandler(error_local,__COMPILE_PROGRAM_ERR); |
| 5395 | if (err != NULL) { |
| 5396 | *err = error_local; |
| 5397 | } |
| 5398 | |
| 5399 | return Program(prog); |
| 5400 | } |
| 5401 | |
| 5402 | inline Program linkProgram( |
| 5403 | VECTOR_CLASS<Program> inputPrograms, |
nothing calls this directly
no test coverage detected