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