mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00

Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
29 lines
540 B
C
29 lines
540 B
C
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/get_info_status.h"
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#include <cassert>
|
|
|
|
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;
|
|
}
|