diff options
Diffstat (limited to 'src/core/program.cpp')
-rw-r--r-- | src/core/program.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/program.cpp b/src/core/program.cpp index 9e2703e..1b981da 100644 --- a/src/core/program.cpp +++ b/src/core/program.cpp @@ -603,7 +603,7 @@ cl_int Program::compile(const char *options, // Note this causes some Khronos tests to fail, like test_compiler options_build_macro, // options_build_macro_existence, and options_include_directory, and // test_api binary_create, as they all violate the spec in this regard. - if (getNumKernels() > 0) { + if (kernelList.size() > 0) { p_state = Failed; return(CL_INVALID_OPERATION); } |