Correct API functions to unload compiler

Correct return value of clUnloadCompiler and clUnloadPlatformCompiler
API calls.

Change-Id: I352b271e9f97be88cf29c4a097aa2e664ba3206a
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2020-08-10 17:17:59 +02:00
parent adde38a376
commit fe5bda3ed1
3 changed files with 19 additions and 13 deletions

View File

@@ -1555,9 +1555,12 @@ cl_program CL_API_CALL clLinkProgram(cl_context context,
cl_int CL_API_CALL clUnloadPlatformCompiler(cl_platform_id platform) {
TRACING_ENTER(clUnloadPlatformCompiler, &platform);
cl_int retVal = CL_OUT_OF_HOST_MEMORY;
cl_int retVal = CL_SUCCESS;
API_ENTER(&retVal);
DBG_LOG_INPUTS("platform", platform);
retVal = validateObject(platform);
TRACING_EXIT(clUnloadPlatformCompiler, &retVal);
return retVal;
}
@@ -4942,7 +4945,7 @@ cl_sampler CL_API_CALL clCreateSamplerWithProperties(cl_context context,
cl_int CL_API_CALL clUnloadCompiler() {
TRACING_ENTER(clUnloadCompiler);
cl_int retVal = CL_OUT_OF_HOST_MEMORY;
cl_int retVal = CL_SUCCESS;
API_ENTER(&retVal);
TRACING_EXIT(clUnloadCompiler, &retVal);
return retVal;