Files
compute-runtime/opencl/source/helpers/get_info_status_mapper.h
Warchulski, Jaroslaw c275008e51 Cleanup includes 32
Cleaned up files:
level_zero/core/source/cmdlist/cmdlist_hw.h
level_zero/core/source/cmdqueue/cmdqueue.h
level_zero/core/source/event/event.h
opencl/source/helpers/get_info_status_mapper.h
opencl/source/helpers/hardware_commands_helper.h
shared/source/helpers/per_thread_data.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-16 20:41:37 +01:00

27 lines
525 B
C

/*
* Copyright (C) 2020-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/get_info_status.h"
#include <CL/cl.h>
static inline cl_int changeGetInfoStatusToCLResultType(GetInfoStatus status) {
switch (status) {
case GetInfoStatus::SUCCESS:
return CL_SUCCESS;
case GetInfoStatus::INVALID_CONTEXT:
return CL_INVALID_CONTEXT;
case GetInfoStatus::INVALID_VALUE:
return CL_INVALID_VALUE;
}
return CL_INVALID_VALUE;
}