2018-01-16 01:16:50 +08:00
|
|
|
/*
|
2024-03-28 21:47:16 +08:00
|
|
|
* Copyright (C) 2018-2024 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>
|
|
|
|
|
2024-03-28 21:47:16 +08:00
|
|
|
using OpenClCFeaturesContainer = StackVec<cl_name_version, 35>;
|
2021-11-04 23:39:09 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2021-11-04 23:39:09 +08:00
|
|
|
struct HardwareInfo;
|
2022-07-04 20:03:50 +08:00
|
|
|
class CompilerProductHelper;
|
2024-03-28 21:47:16 +08:00
|
|
|
class ReleaseHelper;
|
2021-11-04 23:39:09 +08:00
|
|
|
|
2019-06-03 15:54:55 +08:00
|
|
|
namespace Extensions {
|
2022-12-08 22:23:49 +08:00
|
|
|
inline constexpr const char *const sharingFormatQuery = "cl_intel_sharing_format_query ";
|
2019-06-03 15:54:55 +08:00
|
|
|
}
|
2018-01-16 01:16:50 +08:00
|
|
|
|
2024-03-28 21:47:16 +08:00
|
|
|
void getOpenclCFeaturesList(const HardwareInfo &hwInfo, OpenClCFeaturesContainer &openclCFeatures, const CompilerProductHelper &compilerProductHelper, const ReleaseHelper *releaseHelper);
|
2020-09-26 21:34:32 +08:00
|
|
|
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
|
|
|
|
2023-11-17 00:48:56 +08:00
|
|
|
cl_version getOclCExtensionVersion(std::string name, cl_version defaultVer);
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|