ci: update builds scripts

- build Neo for specific GEN to decrease build time on Travis
- don't run aub tests on Arch on Semaphore to decrease disk size usage
- cleanup in build scripts

Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

https://github.com/intel/compute-runtime/pull/227

Change-Id: I037ae1bc1e81fefe43e948453768bc83f0b18f63
This commit is contained in:
Jacek Danecki
2019-10-21 12:20:04 +02:00
committed by sys_ocldev
parent 2e74c161d6
commit 37136df1b4
46 changed files with 191 additions and 397 deletions

View File

@@ -1,32 +0,0 @@
#
# Copyright (C) 2017-2018 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
project(IntelGraphicsCompiler)
set(IGC_LIBRARY_NAME "igc")
set(IGC_LIBRARY_NAME "${IGC_LIBRARY_NAME}" PARENT_SCOPE)
set(FCL_LIBRARY_NAME "igdfcl")
set(FCL_LIBRARY_NAME "${FCL_LIBRARY_NAME}" PARENT_SCOPE)
add_library(igc SHARED IMPORTED GLOBAL)
set_property(TARGET igc PROPERTY "IMPORTED_LOCATION" "${CMAKE_CURRENT_SOURCE_DIR}/lib/lib${IGC_LIBRARY_NAME}.so")
set_property(TARGET igc PROPERTY "INTERFACE_INCLUDE_DIRECTORIES" "${CMAKE_CURRENT_SOURCE_DIR}/inc/")
add_library(opencl_clang SHARED IMPORTED GLOBAL)
set_property(TARGET opencl_clang PROPERTY "IMPORTED_LOCATION" "${CMAKE_CURRENT_SOURCE_DIR}/lib/libopencl_clang.so")
add_library(iga SHARED IMPORTED GLOBAL)
set_property(TARGET iga PROPERTY "IMPORTED_LOCATION" "${CMAKE_CURRENT_SOURCE_DIR}/lib/libiga64.so")
add_library(fcl SHARED IMPORTED GLOBAL)
set_property(TARGET fcl PROPERTY "IMPORTED_LOCATION" "${CMAKE_CURRENT_SOURCE_DIR}/lib/lib${FCL_LIBRARY_NAME}.so")
list(APPEND IGC__IGC_TARGETS "igc")
list(APPEND IGC__IGC_TARGETS "iga")
list(APPEND IGC__IGC_TARGETS "fcl")
list(APPEND IGC__IGC_TARGETS "opencl_clang")
set(IGC__IGC_TARGETS "${IGC__IGC_TARGETS}" PARENT_SCOPE)

View File

@@ -1,44 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2018 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
git tag -l
VER=`git describe --tags --abbrev=0`
IGC_INFO=($(git show ${VER}:../../manifests/manifest.yml | grep -U -A 1 intelgraphicscompiler ))
IGC_REV=${IGC_INFO[3]}
echo "NEO release: ${VER}"
echo "IGC_REV: ${IGC_REV}"
NEO_TOP_DIR=`git rev-parse --show-toplevel`
WRK_DIR=${NEO_TOP_DIR}/..
mkdir -p ${WRK_DIR}/igc/inc
cp CMakeLists.txt ${WRK_DIR}/igc
pushd ${WRK_DIR}/igc
wget https://github.com/intel/compute-runtime/releases/download/${VER}/intel-opencl_${VER}_amd64.deb
ar -x intel-opencl_${VER}_amd64.deb
tar -xJf data.tar.xz
find . -name libigdrcl.so -exec rm {} \;
LIB_PATH=`find . -name libigc.so`
echo "libraries found in ${LIB_PATH}"
ln -sv `dirname ${LIB_PATH}` lib
git clone https://github.com/intel/intel-graphics-compiler igc
pushd igc; git checkout ${IGC_REV}; popd
pushd inc
ln -s ../igc/IGC/AdaptorOCL/cif/cif cif
ln -s ../igc/IGC/AdaptorOCL/ocl_igc_interface ocl_igc_interface
ln -s ../igc/IGC/AdaptorOCL/ocl_igc_shared/device_enqueue/DeviceEnqueueInternalTypes.h DeviceEnqueueInternalTypes.h
ln -s ../igc/IGC/AdaptorOCL/ocl_igc_shared/executable_format/patch_g7.h patch_g7.h
ln -s ../igc/IGC/AdaptorOCL/ocl_igc_shared/executable_format/patch_list.h patch_list.h
ln -s ../igc/IGC/AdaptorOCL/ocl_igc_shared/executable_format/patch_shared.h patch_shared.h
ln -s ../igc/IGC/AdaptorOCL/ocl_igc_shared/executable_format/program_debug_data.h program_debug_data.h
popd
popd