diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12149.1.bb')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12149.1.bb | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12149.1.bb b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12149.1.bb new file mode 100644 index 00000000..ed9b47cb --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.12149.1.bb | |||
@@ -0,0 +1,72 @@ | |||
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.12149 \ | ||
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=SPIRV-Tools;name=spirv-tools;branch=sdk-1.3.204 \ | ||
14 | git://github.com/KhronosGroup/SPIRV-Headers.git;protocol=https;destsuffix=SPIRV-Headers;name=spirv-headers;branch=master \ | ||
15 | file://0003-Improve-Reproducibility-for-src-package.patch \ | ||
16 | file://0001-BiF-CMakeLists.txt-remove-opt-from-DEPENDS.patch \ | ||
17 | " | ||
18 | |||
19 | SRC_URI:append:class-native = " file://0001-fix-tblgen.patch" | ||
20 | |||
21 | SRCREV_igc = "a3d06ca6798d1c70bb0bf274695ac74ce0532ae4" | ||
22 | SRCREV_vc = "984bb27baacce6ee5c716c2e64845f2a1928025b" | ||
23 | SRCREV_spirv-tools = "45dd184c790d6bfc78a5a74a10c37e888b1823fa" | ||
24 | SRCREV_spirv-headers = "b42ba6d92faf6b4938e6f22ddd186dbdacc98d78" | ||
25 | |||
26 | SRCREV_FORMAT = "igc_vc_spirv-tools_spirv-headers" | ||
27 | |||
28 | # Used to replace with relative path in reproducibility patch | ||
29 | export B | ||
30 | |||
31 | S = "${WORKDIR}/git" | ||
32 | |||
33 | inherit cmake pkgconfig | ||
34 | |||
35 | CXXFLAGS:append = " -Wno-error=nonnull" | ||
36 | |||
37 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
38 | COMPATIBLE_HOST:libc-musl = "null" | ||
39 | |||
40 | DEPENDS += " flex-native bison-native clang opencl-clang" | ||
41 | DEPENDS:append:class-target = " clang-cross-x86_64 intel-graphics-compiler-native" | ||
42 | |||
43 | RDEPENDS:${PN} += "opencl-clang" | ||
44 | |||
45 | PACKAGECONFIG ??= "vc" | ||
46 | PACKAGECONFIG[vc] = "-DIGC_BUILD__VC_ENABLED=ON -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR=ON -DIGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_VC=ON -DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Prebuilds,-DIGC_BUILD__VC_ENABLED=OFF," | ||
47 | |||
48 | EXTRA_OECMAKE = " \ | ||
49 | -DIGC_OPTION__LLVM_PREFERRED_VERSION=${LLVMVERSION} \ | ||
50 | -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \ | ||
51 | -DVC_INTRINSICS_SRC="${S}/vc-intrinsics" \ | ||
52 | -DIGC_OPTION__LLVM_MODE=Prebuilds \ | ||
53 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | ||
54 | -DLLVM_LINK_EXE=${STAGING_BINDIR_NATIVE}/llvm-link \ | ||
55 | " | ||
56 | |||
57 | do_install:append:class-native () { | ||
58 | install -d ${D}${bindir} | ||
59 | install ${B}/IGC/Release/elf_packager ${D}${bindir}/ | ||
60 | if ${@bb.utils.contains('PACKAGECONFIG', 'vc', 'true', 'false', d)}; then | ||
61 | install ${B}/IGC/Release/CMCLTranslatorTool ${D}${bindir}/ | ||
62 | install ${B}/IGC/Release/vcb ${D}${bindir}/ | ||
63 | fi | ||
64 | } | ||
65 | |||
66 | BBCLASSEXTEND = "native nativesdk" | ||
67 | |||
68 | UPSTREAM_CHECK_GITTAGREGEX = "^igc-(?P<pver>(?!19\..*)\d+(\.\d+)+)$" | ||
69 | |||
70 | FILES:${PN} += " \ | ||
71 | ${libdir}/igc/NOTICES.txt \ | ||
72 | " | ||