Add new feature macros

New feature macros are:
__opencl_c_images
__opencl_c_fp64
__opencl_c_int64

Change-Id: Ibe4b01ea9799db1f201dc379a37cb661754795db
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2020-09-07 22:07:13 +02:00
committed by sys_ocldev
parent 933bb45dcc
commit f3e9e943a3
7 changed files with 58 additions and 47 deletions

View File

@ -249,7 +249,7 @@ TEST_F(OfflineCompilerTests, TestExtensions) {
std::string internalOptions = mockOfflineCompiler->internalOptions;
EXPECT_THAT(internalOptions, ::testing::HasSubstr(std::string("cl_khr_3d_image_writes")));
StackVec<cl_name_version, 12> openclCFeatures;
StackVec<cl_name_version, 15> openclCFeatures;
getOpenclCFeaturesList(DEFAULT_PLATFORM::hwInfo, openclCFeatures);
auto expectedFeaturesOption = convertEnabledOclCFeaturesToCompilerInternalOptions(openclCFeatures);
EXPECT_THAT(internalOptions, ::testing::HasSubstr(expectedFeaturesOption));