diff options
Diffstat (limited to 'src/core/program.cpp')
-rw-r--r-- | src/core/program.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/program.cpp b/src/core/program.cpp index b44d948..60d7a26 100644 --- a/src/core/program.cpp +++ b/src/core/program.cpp @@ -904,6 +904,9 @@ cl_int Program::build(const char *options, result = link(options, pfn_notify, user_data, num_devices, device_list, num_input_programs, input_programs); } + else if (result == CL_COMPILE_PROGRAM_FAILURE) { + result = CL_BUILD_PROGRAM_FAILURE; // clBuildProgram expects this error code. + } return result; } |