Open
Description
Tried with building LLVM standalone and also with LLVM getting built alongside neo.
+ cmake -G Ninja -S neo -B neo/build -DCMAKE_INSTALL_PREFIX=/space/pvelesko/install/intel-compute-runtime/neo/23.52.28202.15 -DIGC_DIR=/space/pvelesko/install/intel-compute-runtime/igc/igc-1.0.15985.6 -DGMM_DIR=/space/pvelesko/install/intel-compute-runtime/gmmlib/ -DCMAKE_PREFIX_PATH=/space/pvelesko/install/intel-compute-runtime/igsc/ -DSKIP_UNIT_TESTS=ON -DOCL_ICD_VENDORDIR=/space/pvelesko/install/intel-compute-runtime/neo/23.52.28202.15/etc/OpenCL/vendors -DLevelZero_INCLUDE_DIR=/space/pvelesko/install/intel-compute-runtime/level-zero/23.52.28202.15/include -DNEO_ENABLE_i915_PRELIM_DETECTION=ON
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - 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/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- branch dir list: /
-- Host processor: x86_64
-- Target processor: x86_64
-- Neo target processor: x86_64
-- CMAKE_BUILD_TYPE not specified, using Release
-- Performing Test COMPILER_SUPPORTS_LLD
-- Performing Test COMPILER_SUPPORTS_LLD - Success
-- Performing Test COMPILER_SUPPORTS_GOLD
-- Performing Test COMPILER_SUPPORTS_GOLD - Success
-- Using linker: ld.gold
-- Release build configuration
-- Aub Stream Headers dir: /home/pvelesko/space/intel-compute-runtime-build/neo/third_party/aub_stream
-- Khronos OpenCL headers dir: /home/pvelesko/space/intel-compute-runtime-build/neo/third_party/opencl_headers
-- Khronos OpenGL headers dir: /home/pvelesko/space/intel-compute-runtime-build/neo/third_party/opengl_headers
-- AOT config headers dir: /home/pvelesko/space/intel-compute-runtime-build/neo/third_party/aot_config_headers
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'igc-opencl'
-- Found igc-opencl, version 1.0.1
-- IGC include dirs: /home/pvelesko/space/install/intel-compute-runtime/igc/igc-1.0.15985.6/include/igc;/home/pvelesko/space/install/intel-compute-runtime/igc/igc-1.0.15985.6/include/igc/cif;/home/pvelesko/space/install/intel-compute-runtime/igc/igc-1.0.15985.6/include/igc/ocl_igc_shared/executable_format;/home/pvelesko/space/install/intel-compute-runtime/igc/igc-1.0.15985.6/include/igc/ocl_igc_shared/device_enqueue
-- VISA Dir: /home/pvelesko/space/install/intel-compute-runtime/igc/igc-1.0.15985.6/include/visa
-- IGA Includes dir: /home/pvelesko/space/install/intel-compute-runtime/igc/igc-1.0.15985.6/include/iga
-- Checking for module 'igdgmm'
-- Found igdgmm, version 12.3.0
-- GmmLib include dirs: /home/pvelesko/space/install/intel-compute-runtime/gmmlib/include/igdgmm;/home/pvelesko/space/install/intel-compute-runtime/gmmlib/include/igdgmm/GmmLib;/home/pvelesko/space/install/intel-compute-runtime/gmmlib/include/igdgmm/GmmLib/inc;/home/pvelesko/space/install/intel-compute-runtime/gmmlib/include/igdgmm/inc;/home/pvelesko/space/install/intel-compute-runtime/gmmlib/include/igdgmm/inc/common;/home/pvelesko/space/install/intel-compute-runtime/gmmlib/include/igdgmm/util
-- Checking for module 'libigdml'
-- No package 'libigdml' found
-- Metrics Library dir: /home/pvelesko/space/intel-compute-runtime-build/neo/third_party/metrics_library
-- Checking for module 'libigdmd'
-- No package 'libigdmd' found
-- Metrics Discovery dir: /home/pvelesko/space/intel-compute-runtime-build/neo/third_party/metrics_discovery
-- Checking for module 'libva>=1.0.0'
-- No package 'libva' found
-- AUB_STREAM_DIR =
-- Engine node dir: /home/pvelesko/space/intel-compute-runtime-build/neo/third_party/aub_stream
-- All supported platforms: PVC MTL DG2 ARL TGLLP DG1 RKL ADLS ADLP ADLN ICLLP LKF EHL SKL KBL GLK CFL BXT BDW
-- All tested platforms:
-- Default supported platform: PVC
-- Default tested platform:
-- All supported core families: GEN8;GEN9;GEN11;GEN12LP;XE_HPG_CORE;XE_HPC_CORE
-- All tested core families:
-- Default tested family name:
-- Platforms to have WDDM_LINUX disabled: PVC
-- WDK include paths: /home/pvelesko/space/intel-compute-runtime-build/neo/third_party/DirectX-Headers/include/wsl;/home/pvelesko/space/intel-compute-runtime-build/neo/third_party/DirectX-Headers/include/wsl/stubs;/home/pvelesko/space/intel-compute-runtime-build/neo/third_party/DirectX-Headers/include/directx;/home/pvelesko/space/intel-compute-runtime-build/neo/third_party/DirectX-Headers/include/dxguids;/home/pvelesko/space/intel-compute-runtime-build/neo/third_party/libdxg/include/
-- Driver model : drm_or_wddm
-- i915 prelim headers detection: ON
-- Xe drm detection: FALSE
-- i915 includes dir: /home/pvelesko/space/intel-compute-runtime-build/neo/third_party/uapi
-- Neo kernels build type dir: release
-- Performing Test COMPILER_SUPPORTS_INDIRECT_BRANCH_THUNK
-- Performing Test COMPILER_SUPPORTS_INDIRECT_BRANCH_THUNK - Failed
CMake Warning at CMakeLists.txt:693 (message):
Spectre mitigation -mindirect-branch=thunk flag is not supported by the
compiler
-- Performing Test COMPILER_SUPPORTS_FUNCTION_RETURN_THUNK
-- Performing Test COMPILER_SUPPORTS_FUNCTION_RETURN_THUNK - Failed
CMake Warning at CMakeLists.txt:699 (message):
Spectre mitigation -mfunction-return=thunk flag is not supported by the
compiler
-- Performing Test COMPILER_SUPPORTS_INDIRECT_BRANCH_REGISTER
-- Performing Test COMPILER_SUPPORTS_INDIRECT_BRANCH_REGISTER - Success
-- Performing Test COMPILER_SUPPORTS_SSE42
-- Performing Test COMPILER_SUPPORTS_SSE42 - Success
-- Performing Test COMPILER_SUPPORTS_AVX2
-- Performing Test COMPILER_SUPPORTS_AVX2 - Success
-- Performing Test COMPILER_SUPPORTS_NEON
-- Performing Test COMPILER_SUPPORTS_NEON - Failed
-- Performing Test SUPPORTS_CLFLUSHOPT
-- Performing Test SUPPORTS_CLFLUSHOPT - Success
-- Performing Test SUPPORTS_WAITPKG
-- Performing Test SUPPORTS_WAITPKG - Success
-- L0: Selected platforms for testing are not supported. Skipping tests.
-- Level Zero driver version: 1.3.28202
-- Found LevelZero: /home/pvelesko/space/install/intel-compute-runtime/level-zero/23.52.28202.15/include
-- LevelZero_INCLUDE_DIRS: /home/pvelesko/space/install/intel-compute-runtime/level-zero/23.52.28202.15/include
-- LibGenl headers not available. Building without
-- libudev headers directory: /usr/include
-- igsc Library headers directory: /home/pvelesko/space/intel-compute-runtime-build/igsc/include
-- igsc version: 0.8.16
-- L0::Igc Dir: /home/pvelesko/space/install/intel-compute-runtime/igc/igc-1.0.15985.6
-- L0::Gmm Dir: /home/pvelesko/space/install/intel-compute-runtime/gmmlib
-- Prebuilt kernels are linked to Level Zero.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pvelesko/space/intel-compute-runtime-build/neo/build
++ nproc
+ cmake --build neo/build --config Release -j 32
[676/4738] Generating ../../../../bin/built_ins/x64/gen8/stateless_copy_buffer_to_image3d_stateless_8_0_0.bin
FAILED: bin/built_ins/x64/gen8/stateless_copy_buffer_to_image3d_stateless_8_0_0.bin /home/pvelesko/space/intel-compute-runtime-build/neo/build/bin/built_ins/x64/gen8/stateless_copy_buffer_to_image3d_stateless_8_0_0.bin
cd /home/pvelesko/space/intel-compute-runtime-build/neo/shared/source/built_ins/kernels && /usr/bin/cmake -E env LD_LIBRARY_PATH=:/home/pvelesko/space/install/intel-compute-runtime/igc/igc-1.0.15985.6/lib/:/home/pvelesko/space/intel-compute-runtime-build/neo/build/bin /home/pvelesko/space/intel-compute-runtime-build/neo/build/bin/ocloc -q -file /home/pvelesko/space/intel-compute-runtime-build/neo/build/bin/built_ins/x64/gen8/stateless_copy_buffer_to_image3d_stateless_bdw.spv -spirv_input -device 8.0.0 -cl-intel-greater-than-4GB-buffer-required -64 -output stateless_copy_buffer_to_image3d_stateless_8_0_0 -output_no_suffix -out_dir /home/pvelesko/space/intel-compute-runtime-build/neo/build/bin/built_ins/x64/gen8 -options -cl-kernel-arg-info
error: undefined reference to `_Z18__spirv_ImageWritePU3AS133__spirv_Image__void_2_0_0_0_0_0_1Dv4_iDv4_ji'
in function: '__spirv_ImageWrite(__spirv_Image__void_2_0_0_0_0_0_1 AS1*, int vector[4], unsigned int vector[4], int)' called by kernels:
- 'CopyBufferToImage3d16Bytes'
- 'CopyBufferToImage3d8Bytes'
- 'CopyBufferToImage3d4Bytes'
- 'CopyBufferToImage3d2Bytes'
- 'CopyBufferToImage3dBytes'
error: backend compiler failed build.
Build failed with error code: -11
Command was: /home/pvelesko/space/intel-compute-runtime-build/neo/build/bin/ocloc -q -file /home/pvelesko/space/intel-compute-runtime-build/neo/build/bin/built_ins/x64/gen8/stateless_copy_buffer_to_image3d_stateless_bdw.spv -spirv_input -device 8.0.0 -cl-intel-greater-than-4GB-buffer-required -64 -output stateless_copy_buffer_to_image3d_stateless_8_0_0 -output_no_suffix -out_dir /home/pvelesko/space/intel-compute-runtime-build/neo/build/bin/built_ins/x64/gen8 -options "-cl-kernel-arg-info"