diff options
Diffstat (limited to 'src/cl_program.c')
-rw-r--r-- | src/cl_program.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cl_program.c b/src/cl_program.c index 3ecc49f..022e893 100644 --- a/src/cl_program.c +++ b/src/cl_program.c @@ -247,6 +247,9 @@ cl_program_create_from_binary(cl_context ctx, } program->source_type = FROM_LLVM; } + else if (*program->binary == 0) { + program->binary_type = CL_PROGRAM_BINARY_TYPE_EXECUTABLE; + } if (binary_status) binary_status[0] = CL_SUCCESS; |