2018-01-16 01:16:50 +08:00
|
|
|
/*
|
2021-11-04 23:39:09 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2018-01-16 01:16:50 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-01-16 01:16:50 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-06-17 02:54:15 +08:00
|
|
|
#include "shared/source/utilities/stackvec.h"
|
|
|
|
|
2021-11-04 23:39:09 +08:00
|
|
|
#include "CL/cl.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2021-11-04 23:39:09 +08:00
|
|
|
using OpenClCFeaturesContainer = StackVec<cl_name_version, 15>;
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2021-11-04 23:39:09 +08:00
|
|
|
struct HardwareInfo;
|
|
|
|
|
2019-06-03 15:54:55 +08:00
|
|
|
namespace Extensions {
|
|
|
|
constexpr const char *const sharingFormatQuery = "cl_intel_sharing_format_query ";
|
|
|
|
}
|
2018-01-16 01:16:50 +08:00
|
|
|
extern const char *deviceExtensionsList;
|
|
|
|
|
|
|
|
std::string getExtensionsList(const HardwareInfo &hwInfo);
|
2020-09-26 21:34:32 +08:00
|
|
|
void getOpenclCFeaturesList(const HardwareInfo &hwInfo, OpenClCFeaturesContainer &openclCFeatures);
|
|
|
|
std::string convertEnabledExtensionsToCompilerInternalOptions(const char *deviceExtensions,
|
|
|
|
OpenClCFeaturesContainer &openclCFeatures);
|
2020-11-16 23:00:06 +08:00
|
|
|
std::string getOclVersionCompilerInternalOption(unsigned int oclVersion);
|
2018-01-16 01:16:50 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|