mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 01:48:50 +08:00
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>
27 lines
525 B
C
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;
|
|
}
|