diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12812.24.bb')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12812.24.bb | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12812.24.bb b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12812.24.bb new file mode 100644 index 00000000..2587905b --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12812.24.bb | |||
@@ -0,0 +1,81 @@ | |||
1 | SUMMARY = "The Intel(R) Graphics Compiler for OpenCL(TM)" | ||
2 | DESCRIPTION = "The Intel(R) Graphics Compiler for OpenCL(TM) is an \ | ||
3 | llvm based compiler for OpenCL(TM) targeting Intel Gen graphics \ | ||
4 | hardware architecture." | ||
5 | |||
6 | LICENSE = "MIT & Apache-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://IGC/BiFModule/Implementation/ExternalLibraries/libclc/LICENSE.TXT;md5=311cfc1a5b54bab8ed34a0b5fba4373e \ | ||
8 | file://LICENSE.md;md5=488d74376edf2765f6e78d271543dde3 \ | ||
9 | file://NOTICES.txt;md5=7f4fbc3eb2c34807465e63b1ec3c9d1a" | ||
10 | |||
11 | SRC_URI = "git://github.com/intel/intel-graphics-compiler.git;protocol=https;name=igc;branch=releases/igc-1.0.12812 \ | ||
12 | git://github.com/intel/vc-intrinsics.git;protocol=https;destsuffix=git/vc-intrinsics;name=vc;nobranch=1 \ | ||
13 | git://github.com/KhronosGroup/SPIRV-Tools.git;protocol=https;destsuffix=git/SPIRV-Tools;name=spirv-tools;branch=main \ | ||
14 | git://github.com/KhronosGroup/SPIRV-Headers.git;protocol=https;destsuffix=git/SPIRV-Headers;name=spirv-headers;branch=main \ | ||
15 | file://0003-Improve-Reproducibility-for-src-package.patch \ | ||
16 | file://0001-BiF-CMakeLists.txt-remove-opt-from-DEPENDS.patch \ | ||
17 | file://c707d1e2244aec988bdd5d2a7473ef3a32a5bac7.patch \ | ||
18 | file://d1761dfc3ca6b54bac0ee213389a65f84d2aa9b7.patch \ | ||
19 | file://e09e752949e7af0231884d1b11ea907e3e8b1611.patch \ | ||
20 | file://fix-build-with-llvm12.patch \ | ||
21 | file://0001-external-SPIRV-Tools-change-path-to-tools-and-header.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI:append:class-native = " file://0001-fix-tblgen.patch" | ||
25 | |||
26 | SRCREV_igc = "beb75447121c73c2570674de60ccb28938bb1ba4" | ||
27 | SRCREV_vc = "dd72efa3b4aafdbbf599e6f3c6f8c55450e348de" | ||
28 | SRCREV_spirv-tools = "eb0a36633d2acf4de82588504f951ad0f2cecacb" | ||
29 | SRCREV_spirv-headers = "85a1ed200d50660786c1a88d9166e871123cce39" | ||
30 | |||
31 | SRCREV_FORMAT = "igc_vc_spirv-tools_spirv-headers" | ||
32 | |||
33 | # Used to replace with relative path in reproducibility patch | ||
34 | export B | ||
35 | |||
36 | S = "${WORKDIR}/git" | ||
37 | |||
38 | inherit cmake pkgconfig | ||
39 | |||
40 | CXXFLAGS:append = " -Wno-error=nonnull" | ||
41 | |||
42 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
43 | COMPATIBLE_HOST:libc-musl = "null" | ||
44 | |||
45 | DEPENDS += " flex-native bison-native clang opencl-clang" | ||
46 | DEPENDS:append:class-target = " clang-cross-x86_64 intel-graphics-compiler-native" | ||
47 | |||
48 | RDEPENDS:${PN} += "opencl-clang" | ||
49 | |||
50 | PACKAGECONFIG ??= "vc" | ||
51 | PACKAGECONFIG[vc] = "-DIGC_BUILD__VC_ENABLED=ON -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR=ON -DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Prebuilds,-DIGC_BUILD__VC_ENABLED=OFF," | ||
52 | |||
53 | EXTRA_OECMAKE = " \ | ||
54 | -DIGC_OPTION__LLVM_PREFERRED_VERSION=${LLVMVERSION} \ | ||
55 | -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \ | ||
56 | -DVC_INTRINSICS_SRC="${S}/vc-intrinsics" \ | ||
57 | -DIGC_OPTION__LLVM_MODE=Prebuilds \ | ||
58 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | ||
59 | -DLLVM_LINK_EXE=${STAGING_BINDIR_NATIVE}/llvm-link \ | ||
60 | -DCLANG_EXE=${STAGING_BINDIR_NATIVE}/clang \ | ||
61 | " | ||
62 | |||
63 | do_install:append:class-native () { | ||
64 | install -d ${D}${bindir} | ||
65 | install ${B}/IGC/Release/elf_packager ${D}${bindir}/ | ||
66 | if ${@bb.utils.contains('PACKAGECONFIG', 'vc', 'true', 'false', d)}; then | ||
67 | install ${B}/IGC/Release/CMCLTranslatorTool ${D}${bindir}/ | ||
68 | install ${B}/IGC/Release/vcb ${D}${bindir}/ | ||
69 | fi | ||
70 | } | ||
71 | |||
72 | BBCLASSEXTEND = "native nativesdk" | ||
73 | |||
74 | UPSTREAM_CHECK_GITTAGREGEX = "^igc-(?P<pver>(?!19\..*)\d+(\.\d+)+)$" | ||
75 | |||
76 | FILES:${PN} += " \ | ||
77 | ${libdir}/igc/NOTICES.txt \ | ||
78 | " | ||
79 | |||
80 | # libigc.so contains buildpaths | ||
81 | INSANE_SKIP:${PN} += "buildpaths" | ||