mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 12:59:03 +02:00
intel-compute-runtime: upgrade 21.04.18912 -> 21.33.20678
Source move up to the latest that contains ADL-P support. Also, this includes an extra patch to revert following commit to avoid unit-test failure during compute-runtime build: ab52c7023 Change builtin kernels compilation process License-Update: LICENSE file has been removed and replaced by LICENSE.md. License is still the same. Signed-off-by: Dongwon Kim <dongwon.kim@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
parent
6f8e742aab
commit
5b1776caeb
|
@ -0,0 +1,117 @@
|
|||
From f031f4d7ab4021c2b60391b3a957e75fac14c2e3 Mon Sep 17 00:00:00 2001
|
||||
From: Dongwon Kim <dongwon.kim@intel.com>
|
||||
Date: Sat, 21 Aug 2021 11:27:59 -0700
|
||||
Subject: [PATCH] Revert "Change builtin kernels compilation process"
|
||||
|
||||
This reverts commit ab52c702337358af57140e760d618549372e1cdd.
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
|
||||
---
|
||||
.../offline_compiler_tests.cpp | 23 ----------------
|
||||
.../source/offline_compiler.cpp | 2 +-
|
||||
.../source/built_ins/kernels/CMakeLists.txt | 26 +++++++------------
|
||||
3 files changed, 10 insertions(+), 41 deletions(-)
|
||||
|
||||
diff --git a/opencl/test/unit_test/offline_compiler/offline_compiler_tests.cpp b/opencl/test/unit_test/offline_compiler/offline_compiler_tests.cpp
|
||||
index 1427cd5cc..8b913d740 100644
|
||||
--- a/opencl/test/unit_test/offline_compiler/offline_compiler_tests.cpp
|
||||
+++ b/opencl/test/unit_test/offline_compiler/offline_compiler_tests.cpp
|
||||
@@ -1651,27 +1651,4 @@ TEST(OclocCompile, givenPackedDeviceBinaryFormatWhenGeneratingElfBinaryThenItIsR
|
||||
ASSERT_EQ(true, ocloc.generateElfBinary());
|
||||
EXPECT_EQ(0, memcmp(zebin.storage.data(), ocloc.elfBinary.data(), zebin.storage.size()));
|
||||
}
|
||||
-
|
||||
-TEST(OclocCompile, givenSpirvInputThenDontGenerateSpirvFile) {
|
||||
- MockOfflineCompiler ocloc;
|
||||
-
|
||||
- std::vector<std::string> argv = {
|
||||
- "ocloc",
|
||||
- "-q",
|
||||
- "-file",
|
||||
- "test_files/binary_with_zeroes",
|
||||
- "-out_dir",
|
||||
- "offline_compiler_test",
|
||||
- "-device",
|
||||
- gEnvironment->devicePrefix.c_str(),
|
||||
- "-spirv_input"};
|
||||
-
|
||||
- int retVal = ocloc.initialize(argv.size(), argv);
|
||||
- ASSERT_EQ(0, retVal);
|
||||
- retVal = ocloc.build();
|
||||
- EXPECT_EQ(0, retVal);
|
||||
- EXPECT_TRUE(compilerOutputExists("offline_compiler_test/binary_with_zeroes", "gen"));
|
||||
- EXPECT_TRUE(compilerOutputExists("offline_compiler_test/binary_with_zeroes", "bin"));
|
||||
- EXPECT_FALSE(compilerOutputExists("offline_compiler_test/binary_with_zeroes", "spv"));
|
||||
-}
|
||||
} // namespace NEO
|
||||
diff --git a/shared/offline_compiler/source/offline_compiler.cpp b/shared/offline_compiler/source/offline_compiler.cpp
|
||||
index 0ffc3bbca..aa02e0550 100644
|
||||
--- a/shared/offline_compiler/source/offline_compiler.cpp
|
||||
+++ b/shared/offline_compiler/source/offline_compiler.cpp
|
||||
@@ -1050,7 +1050,7 @@ void OfflineCompiler::writeOutAllFiles() {
|
||||
}
|
||||
}
|
||||
|
||||
- if (irBinary && !inputFileSpirV) {
|
||||
+ if (irBinary) {
|
||||
std::string irOutputFileName = generateFilePathForIr(fileBase) + generateOptsSuffix();
|
||||
|
||||
argHelper->saveOutput(irOutputFileName, irBinary, irBinarySize);
|
||||
diff --git a/shared/source/built_ins/kernels/CMakeLists.txt b/shared/source/built_ins/kernels/CMakeLists.txt
|
||||
index 59723fdb2..12dc4aa7a 100644
|
||||
--- a/shared/source/built_ins/kernels/CMakeLists.txt
|
||||
+++ b/shared/source/built_ins/kernels/CMakeLists.txt
|
||||
@@ -58,8 +58,11 @@ function(compile_builtin gen_type platform_type builtin bits builtin_options mod
|
||||
# get name of the file w/o extension
|
||||
get_filename_component(BASENAME ${builtin} NAME_WE)
|
||||
|
||||
- set(OUTPUT_FILE_SPV
|
||||
- ${OUTPUTDIR}/${mode}_${BASENAME}_${family_name_with_type}.spv
|
||||
+ set(OUTPUTPATH_BASE "${OUTPUTDIR}/${mode}_${BASENAME}_${family_name_with_type}")
|
||||
+ set(OUTPUT_FILES
|
||||
+ ${OUTPUTPATH_BASE}.spv
|
||||
+ ${OUTPUTPATH_BASE}.bin
|
||||
+ ${OUTPUTPATH_BASE}.gen
|
||||
)
|
||||
|
||||
if(NOT DEFINED cloc_cmd_prefix)
|
||||
@@ -76,8 +79,8 @@ function(compile_builtin gen_type platform_type builtin bits builtin_options mod
|
||||
list(APPEND __cloc__options__ "-cl-kernel-arg-info")
|
||||
set(INTERNAL_OPTIONS "${${mode}_OPTIONS}")
|
||||
add_custom_command(
|
||||
- OUTPUT ${OUTPUT_FILE_SPV}
|
||||
- COMMAND ${cloc_cmd_prefix} -q -file ${FILENAME} -spv_only -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${builtin_options} -${bits} -output ${mode}_${BASENAME} -out_dir ${OUTPUTDIR} ${INTERNAL_OPTIONS} -options "$<JOIN:${__cloc__options__}, >"
|
||||
+ OUTPUT ${OUTPUT_FILES}
|
||||
+ COMMAND ${cloc_cmd_prefix} -q -file ${FILENAME} -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${builtin_options} -${bits} -output ${mode}_${BASENAME} -out_dir ${OUTPUTDIR} ${INTERNAL_OPTIONS} -options "$<JOIN:${__cloc__options__}, >"
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS ${builtin} ocloc copy_compiler_files
|
||||
)
|
||||
@@ -85,23 +88,12 @@ function(compile_builtin gen_type platform_type builtin bits builtin_options mod
|
||||
set(OUTPUT_FILE_CPP
|
||||
${OUTPUTDIR}/${mode}_${BASENAME}_${family_name_with_type}_${REVISION_ID}.cpp
|
||||
)
|
||||
- set(BINARY_OUTPUT "${OUTPUTDIR}/${mode}_${BASENAME}_${REVISION_ID}_${family_name_with_type}")
|
||||
- set(OUTPUT_FILES_BINARIES
|
||||
- ${BINARY_OUTPUT}.gen
|
||||
- ${BINARY_OUTPUT}.bin
|
||||
- )
|
||||
list(APPEND BUILTINS_COMMANDS "${OUTPUT_FILE_CPP}")
|
||||
- add_custom_command(
|
||||
- OUTPUT ${OUTPUT_FILES_BINARIES}
|
||||
- COMMAND ${cloc_cmd_prefix} -q -file ${OUTPUT_FILE_SPV} -spirv_input -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${builtin_options} -${bits} -output ${mode}_${BASENAME}_${REVISION_ID} -out_dir ${OUTPUTDIR} -revision_id ${REVISION_ID} ${INTERNAL_OPTIONS} -options "$<JOIN:${__cloc__options__}, >"
|
||||
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
- DEPENDS ${OUTPUT_FILE_SPV} ocloc copy_compiler_files
|
||||
- )
|
||||
add_custom_command(
|
||||
OUTPUT ${OUTPUT_FILE_CPP}
|
||||
- COMMAND $<TARGET_FILE:cpp_generate_tool> --file ${BINARY_OUTPUT}.gen --output ${OUTPUT_FILE_CPP} --array ${mode}_${BASENAME} --platform ${family_name_with_type} --revision_id ${REVISION_ID}
|
||||
+ COMMAND $<TARGET_FILE:cpp_generate_tool> --file ${OUTPUTPATH_BASE}.gen --output ${OUTPUT_FILE_CPP} --array ${mode}_${BASENAME} --platform ${family_name_with_type} --revision_id ${REVISION_ID}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
- DEPENDS ${OUTPUT_FILES_BINARIES} $<TARGET_FILE:cpp_generate_tool>
|
||||
+ DEPENDS ${OUTPUTPATH_BASE}.gen $<TARGET_FILE:cpp_generate_tool>
|
||||
)
|
||||
endforeach()
|
||||
set(BUILTINS_COMMANDS ${BUILTINS_COMMANDS} PARENT_SCOPE)
|
||||
--
|
||||
2.20.1
|
||||
|
|
@ -1,33 +1,33 @@
|
|||
From 32851d269ac0c027730168c04d9ce32d0eb50905 Mon Sep 17 00:00:00 2001
|
||||
From: Naveen Saini <naveen.kumar.saini@intel.com>
|
||||
Date: Wed, 27 May 2020 11:12:09 +0000
|
||||
Subject: [PATCH] intel-compute-runtime: allow to find cpp_generation_tool
|
||||
|
||||
Build not able to locate cpp_generation_tool.
|
||||
From b5d0b22011dd0360ad92dcd34f69a2b6a9e0772f Mon Sep 17 00:00:00 2001
|
||||
From: Dongwon Kim <dongwon.kim@intel.com>
|
||||
Date: Sat, 21 Aug 2021 16:09:39 -0700
|
||||
Subject: [PATCH] Build not able to locate cpp_generation_tool.
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
|
||||
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
|
||||
---
|
||||
shared/source/built_ins/kernels/CMakeLists.txt | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/shared/source/built_ins/kernels/CMakeLists.txt b/shared/source/built_ins/kernels/CMakeLists.txt
|
||||
index 1b1225077..2e8148c25 100644
|
||||
index 12dc4aa7a..9e42d7a34 100644
|
||||
--- a/shared/source/built_ins/kernels/CMakeLists.txt
|
||||
+++ b/shared/source/built_ins/kernels/CMakeLists.txt
|
||||
@@ -93,9 +93,9 @@ function(compile_builtin gen_type platform_type builtin bits builtin_options mod
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT ${OUTPUT_FILE_CPP}
|
||||
- COMMAND $<TARGET_FILE:cpp_generate_tool> --file ${OUTPUTPATH_BASE}.gen --output ${OUTPUT_FILE_CPP} --array ${mode}_${BASENAME} --platform ${family_name_with_type}
|
||||
+ COMMAND cpp_generate_tool --file ${OUTPUTPATH_BASE}.gen --output ${OUTPUT_FILE_CPP} --array ${mode}_${BASENAME} --platform ${family_name_with_type}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
- DEPENDS ${OUTPUTPATH_BASE}.gen $<TARGET_FILE:cpp_generate_tool>
|
||||
+ DEPENDS ${OUTPUTPATH_BASE}.gen cpp_generate_tool
|
||||
)
|
||||
endfunction()
|
||||
|
||||
@@ -136,9 +136,9 @@ function(generate_cpp_spirv builtin)
|
||||
@@ -91,9 +91,9 @@ function(compile_builtin gen_type platform_type builtin bits builtin_options mod
|
||||
list(APPEND BUILTINS_COMMANDS "${OUTPUT_FILE_CPP}")
|
||||
add_custom_command(
|
||||
OUTPUT ${OUTPUT_FILE_CPP}
|
||||
- COMMAND $<TARGET_FILE:cpp_generate_tool> --file ${OUTPUTPATH_BASE}.gen --output ${OUTPUT_FILE_CPP} --array ${mode}_${BASENAME} --platform ${family_name_with_type} --revision_id ${REVISION_ID}
|
||||
+ COMMAND cpp_generate_tool --file ${OUTPUTPATH_BASE}.gen --output ${OUTPUT_FILE_CPP} --array ${mode}_${BASENAME} --platform ${family_name_with_type} --revision_id ${REVISION_ID}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
- DEPENDS ${OUTPUTPATH_BASE}.gen $<TARGET_FILE:cpp_generate_tool>
|
||||
+ DEPENDS ${OUTPUTPATH_BASE}.gen cpp_generate_tool
|
||||
)
|
||||
endforeach()
|
||||
set(BUILTINS_COMMANDS ${BUILTINS_COMMANDS} PARENT_SCOPE)
|
||||
@@ -135,9 +135,9 @@ function(generate_cpp_spirv builtin)
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT ${OUTPUT_FILE_CPP}
|
||||
|
@ -40,5 +40,5 @@ index 1b1225077..2e8148c25 100644
|
|||
endfunction()
|
||||
|
||||
--
|
||||
2.28.0
|
||||
2.20.1
|
||||
|
||||
|
|
|
@ -5,14 +5,16 @@ on OpenCL(TM) compute stacks supporting the GEN graphics hardware \
|
|||
architecture."
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=ae27f47fd6755510247c19e547e4c804 \
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=983b0c493ea3dc3c21a90ff743bf90e4 \
|
||||
file://third_party/opencl_headers/LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b"
|
||||
|
||||
SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https \
|
||||
"
|
||||
SRC_URI:append:class-target = " file://allow-to-find-cpp-generation-tool.patch"
|
||||
file://0001-Revert-Change-builtin-kernels-compilation-process.patch \
|
||||
"
|
||||
|
||||
SRCREV = "5a05d7643c4d8cc14e281b686c78101a7a01e8e1"
|
||||
SRC_URI:append:class-target = "file://allow-to-find-cpp-generation-tool.patch"
|
||||
|
||||
SRCREV = "0a106c150e3cde872b4728d766134d99c02e8b1c"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
Loading…
Reference in New Issue
Block a user