2020-02-13 14:03:54 +01:00
|
|
|
/*
|
2023-01-16 15:30:27 +00:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-02-13 14:03:54 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/helpers/get_info_status.h"
|
2020-02-13 14:03:54 +01:00
|
|
|
|
|
|
|
|
#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;
|
|
|
|
|
}
|