intel / intel-graphics-compiler

Other
605 stars 158 forks source link

[1.0.11485] Issue with BiF caching #248

Closed ArchangeGabriel closed 2 years ago

ArchangeGabriel commented 2 years ago

When trying to configure this release, it fails right away:

-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ================================ IGC Project ================================
-- Build type:  Release (single-configuration generator)
-- Build tools: OFF
-- 
-- Output directory:
--    "/build/intel-graphics-compiler/src/build/IGC/Release"
-- Install root directory:
--    "/usr"
-- Architecture:
--  - target: Linux64    (detected: Linux64)
--  - host:   Linux64    (detected: Linux64)
-- 
-- Cross-compilation needed: NO
-- Cross-compilation set:    FALSE
-- 
-- Advanced:
--  - Link BiF resources:              ON
--  - Building Windows Universal:      
-- =============================================================================
-- [LLVM] Current value of CMAKE_CURRENT_SOURCE_DIR : /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC
-- [Clang] Will use Clang prebuilds
-- IGC_LLVM_SPIRV_PATHS: /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/external/llvm/../../../SPIRV-LLVM-Translator;/build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/external/llvm/../../../../SPIRV-LLVM-Translator;/build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/external/llvm/../../../llvm-spirv;/build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/external/llvm/../../../../llvm-spirv
-- [SPIRV] Will use SPIRV translator prebuilds
-- [LLVM] Current value of CMAKE_CURRENT_SOURCE_DIR : /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC
-- [lld] Will use lld prebuilds
-- [LLVM] Current value of CMAKE_CURRENT_SOURCE_DIR : /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC
-- [IGC] IGC will take prebuilt LLVM
-- [IGC] Searching for prebuilt LLVM in /llvm_prebuilt_windows;/prebuild-llvm;/opt/intel-llvm-static-14.0.6 and system directories
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /usr/lib/libffi.so  
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib/libtinfo.so  
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.12") 
-- Found LibXml2: /usr/lib/libxml2.so (found version "2.9.14") 
-- [IGC] Found LLVM: /usr/lib64/cmake/llvm
-- Linker detection: GNU ld
-- [IGC] Trying to find prebuilt SPIRV library
-- Found SPIRVLLVMTranslator: /usr/lib/libLLVMSPIRVLib.so (found suitable version "14.0.0.0", minimum required is "14")  
CMake Warning at IGC/cmake/igc_find_protobuf.cmake:25 (message):
  Cannot find Protoc program or library for Protobuf, please visit
  https://github.com/protocolbuffers/protobuf/releases and install - disable
  of IGC Metrics
Call Stack (most recent call first):
  IGC/CMakeLists.txt:1404 (include)

-- ============================ SPIRV-Tools project ============================
-- [SPIRV-Tools] : IGC_OPTION__SPIRV_TOOLS_MODE set to Prebuilds
-- [SPIRV-Tools] : IGC__OPTION_USE_PREINSTALLED_SPRIV_HEADERS set to ON, using preinstalled SPIRV-Headers
-- [SPIRV-Tools] : Using preinstalled SPIRV-Headers
-- [SPIRV-Tools] : Searching prebuilt SPIRV-Tools package
-- [SPIRV-Tools] : Found prebuilt SPIRV-Tools package in: /usr/lib64/cmake/SPIRV-Tools/SPIRV-ToolsConfig.cmake
-- =============================================================================
-- [IGC] : opencl-clang will be taken from system
-- [IGC] Found clang-14 executable: /usr/bin/clang-14
-- [CMFE] CM Frontend headers are taken from: /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC/CMFE/AdaptorCM
-- [CMFE] Using CMFE library name: libclangFEWrapper.so
-- +++ Source/IGC/VectorCompiler +++
-- [VC] Build proj: VectorCompiler
-- [VC] : Searching prebuilt vc-intrinsics package
-- [VC] : Found prebuilt vc-intrinsics package in: /usr/lib64/cmake/VCIntrinsics14/VCIntrinsics14Config.cmake
 >>/build/intel-graphics-compiler/src/build/IGC/VectorCompiler/lib/GenXCodeGen/Utils/../<<  ->  /build/intel-graphics-compiler/src/build/IGC/VectorCompiler/lib/GenXCodeGen/Utils
 COMMAND ->  /usr/bin/python3 /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/lib/GenXCodeGen/Utils/cisa_gen_intrinsics.py /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/lib/GenXCodeGen/Utils/cisa_gen_intrinsics.json /build/intel-graphics-compiler/src/build/IGC/VectorCompiler/lib/GenXCodeGen/Utils/../ <-
 /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/lib/GenXCodeGen/Utils
vc_build_bif - VCBiFPrintfOCL32 has extra dependencies: /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/lib/BiF/printf_not_cm_common.h
vc_build_bif - VCBiFPrintfOCL64 has extra dependencies: /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/lib/BiF/printf_not_cm_common.h
vc_build_bif - VCBiFPrintfZE32 has extra dependencies: /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/lib/BiF/printf_not_cm_common.h
vc_build_bif - VCBiFPrintfZE64 has extra dependencies: /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/lib/BiF/printf_not_cm_common.h
Use InstCombiner from LLVM
[IGC\BiFModuleCache] - IGC_BUILD__BIF_ROOT_DIR: /build/intel-graphics-compiler/src/build/IGC/Release/bif/
CMake Error at IGC/BiFModule/cmake/BiFModuleCache.cmake:17 (get_bif_src_list):
  get_bif_src_list Function invoked with incorrect arguments for function
  named: get_bif_src_list
Call Stack (most recent call first):
  IGC/BiFModule/CMakeLists.txt:15 (include)

[IGC\BiFModuleCache] - BiFModule_SRC: /build/intel-graphics-compiler/src/intel-graphics-compiler-igc-1.0.11485/IGC/BiFModule/cmake/../
-- IGC\Metrics - metrics are disabled
-- Configuring Intel Gen Assembler (IGA) Component
--  - GED_BRANCH:           GED_external
--  - CMAKE_CXX_COMPILER:   /usr/bin/c++
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
--  - IGA_VERSION_SUFFIX:    
-- Found BISON: /usr/bin/bison (found version "3.8.2") 
-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
[check-igc] LIT tests disabled. Missing igc_opt target.
-- Configuring incomplete, errors occurred!
See also "/build/intel-graphics-compiler/src/build/CMakeFiles/CMakeOutput.log".

Reverting https://github.com/intel/intel-graphics-compiler/commit/fe97e18b30238eedab0760f92edfbbae5b4413b5 works.

ArchangeGabriel commented 2 years ago

(And backporting https://github.com/intel/intel-graphics-compiler/commit/7c88c57fa0273334cf873023bf6d374a48862632 does not fixes the issue)

lwesiers commented 2 years ago

Please check with cherry-pick of this change: https://github.com/intel/intel-graphics-compiler/commit/12c99343388eba6e6275856b25e0fa8978585dfb

ArchangeGabriel commented 2 years ago

Thanks, it does fix the issue.