intel / compute-runtime

Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver
MIT License
1.1k stars 229 forks source link

Build issues `error: ‘zes_ras_state_exp_t’ has not been declared` #680

Closed pvelesko closed 6 months ago

pvelesko commented 9 months ago
Consolidate compiler generated dependencies of target ze_intel_gpu_mockable
[ 65%] Building CXX object level_zero/CMakeFiles/ze_intel_gpu_mockable.dir/api/sysman/ze_sysman_loader.cpp.o
In file included from /home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/zes_sysman_all_api_entrypoints.h:9,
                 from /home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/ze_sysman_loader.cpp:17:
/home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/zes_sysman_api_entrypoints.h:1121:5: error: ‘zes_ras_state_exp_t’ has not been declared
 1121 |     zes_ras_state_exp_t *pState) {
      |     ^~~~~~~~~~~~~~~~~~~
/home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/zes_sysman_api_entrypoints.h:1127:5: error: ‘zes_ras_error_category_exp_t’ has not been declared
 1127 |     zes_ras_error_category_exp_t category) {
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/zes_sysman_api_entrypoints.h:2267:5: error: ‘zes_ras_state_exp_t’ has not been declared
 2267 |     zes_ras_state_exp_t *pState) {
      |     ^~~~~~~~~~~~~~~~~~~
/home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/zes_sysman_api_entrypoints.h:2276:5: error: ‘zes_ras_error_category_exp_t’ has not been declared
 2276 |     zes_ras_error_category_exp_t category) {
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/ze_sysman_loader.cpp:355:5: error: ‘zes_ras_exp_dditable_t’ has not been declared
  355 |     zes_ras_exp_dditable_t *pDdiTable) {
      |     ^~~~~~~~~~~~~~~~~~~~~~
/home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/ze_sysman_loader.cpp: In function ‘ze_result_t zesGetRasExpProcAddrTable(ze_api_version_t, int*)’:
/home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/ze_sysman_loader.cpp:363:16: error: request for member ‘pfnGetStateExp’ in ‘* pDdiTable’, which is of non-class type ‘int’
  363 |     pDdiTable->pfnGetStateExp = L0::zesRasGetStateExp;
      |                ^~~~~~~~~~~~~~
/home/pvelesko/intel_compute_runtime_build/neo/level_zero/api/sysman/ze_sysman_loader.cpp:364:16: error: request for member ‘pfnClearStateExp’ in ‘* pDdiTable’, which is of non-class type ‘int’
  364 |     pDdiTable->pfnClearStateExp = L0::zesRasClearStateExp;
      |                ^~~~~~~~~~~~~~~~
make[2]: *** [level_zero/CMakeFiles/ze_intel_gpu_mockable.dir/build.make:188: level_zero/CMakeFiles/ze_intel_gpu_mockable.dir/api/sysman/ze_sysman_loader.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:23530: level_zero/CMakeFiles/ze_intel_gpu_mockable.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
pvelesko commented 9 months ago
-- 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-11 - 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++-11 - 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
-- WDK include paths: /home/pvelesko/intel_compute_runtime_build/neo/third_party/DirectX-Headers/include/wsl;/home/pvelesko/intel_compute_runtime_build/neo/third_party/DirectX-Headers/include/wsl/stubs;/home/pvelesko/intel_compute_runtime_build/neo/third_party/DirectX-Headers/include/directx;/home/pvelesko/intel_compute_runtime_build/neo/third_party/DirectX-Headers/include/dxguids;/home/pvelesko/intel_compute_runtime_build/neo/third_party/libdxg/include/
-- Driver model : drm_or_wddm
-- 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
-- Computed OpenCL version major is: 23
-- Computed OpenCL version minor is: 39
-- GTest repeat count set to 1
-- GTest shuffle set to --gtest_shuffle;--gtest_random_seed=0
-- Aub Stream Headers dir: /home/pvelesko/intel_compute_runtime_build/neo/third_party/aub_stream
-- Khronos OpenCL headers dir: /home/pvelesko/intel_compute_runtime_build/neo/third_party/opencl_headers
-- Khronos OpenGL headers dir: /home/pvelesko/intel_compute_runtime_build/neo/third_party/opengl_headers
-- AOT config headers dir: /home/pvelesko/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: /usr/local/include/igc;/usr/local/include/igc/cif;/usr/local/include/igc/ocl_igc_shared/executable_format;/usr/local/include/igc/ocl_igc_shared/device_enqueue
-- VISA Dir: /home/pvelesko/intel_compute_runtime_build/igc/visa
-- IGA Includes dir: /home/pvelesko/intel_compute_runtime_build/igc/visa/iga/IGALibrary/api
-- Checking for module 'igdgmm'
--   Found igdgmm, version 12.3.0
-- GmmLib include dirs: /opt/install/intel/gmmlib/include/igdgmm;/opt/install/intel/gmmlib/include/igdgmm/GmmLib;/opt/install/intel/gmmlib/include/igdgmm/GmmLib/inc;/opt/install/intel/gmmlib/include/igdgmm/inc;/opt/install/intel/gmmlib/include/igdgmm/inc/common;/opt/install/intel/gmmlib/include/igdgmm/util
-- Checking for module 'libigdml'
--   No package 'libigdml' found
-- Metrics Library dir: /home/pvelesko/intel_compute_runtime_build/neo/third_party/metrics_library
-- Checking for module 'libigdmd'
--   No package 'libigdmd' found
-- Metrics Discovery dir: /home/pvelesko/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/intel_compute_runtime_build/neo/third_party/aub_stream
-- All supported platforms:  PVC MTL DG2 TGLLP DG1 RKL ADLS ADLP ADLN ICLLP LKF EHL SKL KBL GLK CFL BXT BDW
-- All tested platforms:  PVC MTL DG2 TGLLP DG1 RKL ADLS ADLP ADLN ICLLP LKF EHL SKL KBL GLK CFL BXT BDW
-- Default supported platform: PVC
-- Default tested platform: PVC
-- All supported core families: GEN8;GEN9;GEN11;GEN12LP;XE_HPG_CORE;XE_HPC_CORE
-- All tested core families: GEN8;GEN9;GEN11;GEN12LP;XE_HPG_CORE;XE_HPC_CORE
-- Default tested family name: XeHpcCoreFamily
-- i915 prelim headers detection: FALSE
-- Xe drm detection: FALSE
-- i915 includes dir: /home/pvelesko/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:665 (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:671 (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
-- GTest exception options set to --gtest_catch_exceptions=1
-- Level Zero driver version: 1.3.0
-- Found LevelZero: /usr/local/include
-- LevelZero_INCLUDE_DIRS: /usr/local/include
-- LibGenl headers directory: /usr/include/libnl3
-- libudev headers directory: /usr/include
-- igsc Library headers directory:
-- igsc version: 0.8.13
-- L0::Igc Dir: /home/pvelesko/intel_compute_runtime_build/igc
-- L0::Gmm Dir: /opt/install/intel/gmmlib
-- Prebuilt kernels are linked to Level Zero.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pvelesko/intel_compute_runtime_build/neo/build
JablonskiMateusz commented 9 months ago

Hi @pvelesko please install level zero headers based on level zero loader version pointed in manifest.yml file