Re: [meta-intel] [PATCH 3/4] intel-graphics-compiler: add

2019-04-05 Thread Burton, Ross
On Fri, 5 Apr 2019 at 14:00, Anuj Mittal  wrote:
> +inherit cmake pythonnative

Assuming it's using the standard Python checkers in cmake then this
will probably work:

EXTRA_OECMAKE = "-DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3"

(or maybe python2 if it needs Py2 and can't handle py3)

Ross
-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 3/4] intel-graphics-compiler: add

2019-04-05 Thread Anuj Mittal
The Intel(R) Graphics Compiler for OpenCL(TM) is an llvm based compiler
for OpenCL(TM) targeting Intel Gen graphics hardware architecture.

More details at: https://01.org/compute-runtime

Signed-off-by: Anuj Mittal 
---
 .../0001-skip-execution-of-ElfPackager.patch  | 38 +++
 .../igc/intel-graphics-compiler_19.12.1681.bb | 24 
 2 files changed, 62 insertions(+)
 create mode 100644 
recipes-opencl/igc/files/0001-skip-execution-of-ElfPackager.patch
 create mode 100644 recipes-opencl/igc/intel-graphics-compiler_19.12.1681.bb

diff --git a/recipes-opencl/igc/files/0001-skip-execution-of-ElfPackager.patch 
b/recipes-opencl/igc/files/0001-skip-execution-of-ElfPackager.patch
new file mode 100644
index ..5892209d
--- /dev/null
+++ b/recipes-opencl/igc/files/0001-skip-execution-of-ElfPackager.patch
@@ -0,0 +1,38 @@
+From d79c2e5da9c7008b3a345f1060c2fa783dbf001d Mon Sep 17 00:00:00 2001
+From: Anuj Mittal 
+Date: Mon, 1 Apr 2019 18:57:25 +0800
+Subject: [PATCH] skip execution of ElfPackager
+
+ElfPackager adds the ability to convert llvm bitcode into elf files for
+easier partitioning. Skip for now until we start building a native
+version for this.
+
+Upstream-Status: Inappropriate [configuration specific]
+
+Signed-off-by: Anuj Mittal 
+---
+ IGC/ElfPackager/CMakeLists.txt | 8 
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/IGC/ElfPackager/CMakeLists.txt b/IGC/ElfPackager/CMakeLists.txt
+index 2471622..e9398f2 100644
+--- a/IGC/ElfPackager/CMakeLists.txt
 b/IGC/ElfPackager/CMakeLists.txt
+@@ -69,10 +69,10 @@ include_directories (
+   ${IGC_SOURCE_DIR}/AdaptorOCL/CLElfLib/
+ )
+ 
+-add_custom_command(TARGET ${IGC_BUILD__PROJ__ElfPackager}
+- POST_BUILD
+- COMMAND 
$ -includeSizet -funcList 
${CMAKE_CURRENT_SOURCE_DIR}/function_bin.txt 
${IGC_BUILD__BIF_DIR}/OCLBiFImpl.bc ${IGC_BUILD__BIF_DIR}/igdclbif.bin
+-)
++#add_custom_command(TARGET ${IGC_BUILD__PROJ__ElfPackager}
++#POST_BUILD
++#COMMAND 
$ -includeSizet -funcList 
${CMAKE_CURRENT_SOURCE_DIR}/function_bin.txt 
${IGC_BUILD__BIF_DIR}/OCLBiFImpl.bc ${IGC_BUILD__BIF_DIR}/igdclbif.bin
++#   )
+ 
+ 
+ add_dependencies("${IGC_BUILD__PROJ__ElfPackager}" 
"${IGC_BUILD__PROJ__BiFModule_OCL}")
+-- 
+2.19.1
+
diff --git a/recipes-opencl/igc/intel-graphics-compiler_19.12.1681.bb 
b/recipes-opencl/igc/intel-graphics-compiler_19.12.1681.bb
new file mode 100644
index ..a79f01ca
--- /dev/null
+++ b/recipes-opencl/igc/intel-graphics-compiler_19.12.1681.bb
@@ -0,0 +1,24 @@
+SUMMARY = "The Intel(R) Graphics Compiler for OpenCL(TM)"
+DESCRIPTION = "The Intel(R) Graphics Compiler for OpenCL(TM) is an \
+llvm based compiler for OpenCL(TM) targeting Intel Gen graphics \
+hardware architecture."
+
+LICENSE = "MIT & BSD-3-Clause"
+LIC_FILES_CHKSUM = 
"file://third_party/opencl_headers/LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b 
\
+
file://IGC/BiFModule/Implementation/ExternalLibraries/libclc/LICENSE.TXT;md5=311cfc1a5b54bab8ed34a0b5fba4373e
 \
+
file://IGC/Compiler/LegalizationPass.cpp;md5=554b051aebc99c20a0d2b6d695dfe4af"
+
+SRC_URI = "git://github.com/intel/intel-graphics-compiler.git;protocol=https \
+   file://0001-skip-execution-of-ElfPackager.patch \
+   "
+
+SRCREV = "81d467882a26d57da18e7f6d8aa3a28cda842642"
+
+S = "${WORKDIR}/git"
+
+inherit cmake pythonnative
+
+COMPATIBLE_HOST = '(x86_64).*-linux'
+DEPENDS_class-target = " flex-native bison-native clang clang-cross-x86_64"
+
+EXTRA_OECMAKE = "-DIGC_PREFERRED_LLVM_VERSION=8.0.0"
-- 
2.19.1

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel