Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] OneAPI version 2024 incompatible for MKL #3539

Open
willyborn opened this issue Feb 28, 2024 · 0 comments
Open

[Build] OneAPI version 2024 incompatible for MKL #3539

willyborn opened this issue Feb 28, 2024 · 0 comments
Labels

Comments

@willyborn
Copy link
Contributor

Description

Intel only provides a download of the latest version of oneAPI (now 2024.0.1)
The arrayfire installer reports following error: compatible MKL package not found. 2024 is apparently not compatible.
During linking of afoneapi library DPCPP could not be found (as notified during the installation)

Apparently Intel changed this library to DPCPP-CT, which is an intel implementation.
oneAPI (2023+) requires MSVC 2019 (https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html?wapkw=oneapi%20msvc%20table)

versions:

  • system: windows 10
  • arrayfire: master (3.9.0)
  • oneAPI: 2024.0.0
    oneAPI installed modules

Error Log

D:\github\willyborn\arrayfire>CD build

D:\github\willyborn\arrayfire\build>cmake -G="Visual Studio 16 2019" -A=x64 ^
-DAF_BUILD_OPENCL:BOOL=ON ^
-DAF_BUILD_CPU:BOOL=ON ^
-DAF_BUILD_CUDA:BOOL=ON ^
-DAF_BUILD_UNIFIED:BOOL=ON ^
-DAF_BUILD_FORGE:BOOL=ON ^
-DAF_BUILD_ONEAPI:BOOL=ON ^
-DBUILD_TESTING:BOOL=ON ^
-DAF_WITH_FAST_MATH:BOOL=OFF ^
-DCUDA_NVCC_FLAGS:STRING="-Wno-deprecated-gpu-targets" ^
-DAF_COMPUTE_LIBRARY:STRING="FFTW/LAPACK/BLAS" ^
-DCMAKE_TOOLCHAIN_FILE:STRING="D:\github\vcpkg/scripts/buildsystems/vcpkg.cmake" ..
-- Running vcpkg install
Detecting compiler hash for triplet x64-windows...
All requested packages are currently installed.

...

-- Running vcpkg install - done
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.29.30154.0
-- The CXX compiler identification is MSVC 19.29.30154.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - 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: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test cplusplus_define
-- Performing Test cplusplus_define - Success
-- Performing Test cxx_compliance
-- Performing Test cxx_compliance - Success
-- Performing Test has_cxx_fast_math
-- Performing Test has_cxx_fast_math - Failed
-- Performing Test has_cxx_fp_model
-- Performing Test has_cxx_fp_model - Failed
-- Performing Test has_cxx_no_errno_math
-- Performing Test has_cxx_no_errno_math - Failed
-- Performing Test has_cxx_no_trapping_math
-- Performing Test has_cxx_no_trapping_math - Failed
-- Performing Test has_cxx_no_signed_zeros
-- Performing Test has_cxx_no_signed_zeros - Failed
-- Performing Test has_cxx_no_ieee_fp
-- Performing Test has_cxx_no_ieee_fp - Failed
-- Performing Test has_cxx_unqualified_std_cast_call
-- Performing Test has_cxx_unqualified_std_cast_call - Failed
-- Performing Test has_cxx_error_reorder_ctor
-- Performing Test has_cxx_error_reorder_ctor - Failed
-- Performing Test has_cxx_debug-disables-optimization
-- Performing Test has_cxx_debug-disables-optimization - Failed
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8 (found suitable version "11.8", minimum required is "10.2")
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/lib/x64/cudnn.lib (found suitable version "8.7", minimum required is "4.0")
-- Looking for CL_VERSION_3_0
-- Looking for CL_VERSION_3_0 - found
-- Found OpenCL: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/debug/lib/OpenCL.lib (found suitable version "3.0", minimum required is "1.2")
-- Found OpenGL: opengl32
-- Found FreeImage: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/include
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found FFTW: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/include
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Checking for [Accelerate]
-- Checking for [vecLib]
-- Checking for [cblas - atlas]
-- Includes found
-- Checking for [openblas]
-- Includes found
-- Looking for cblas_dgemm
-- Looking for cblas_dgemm - found
-- CBLAS Symbols FOUND
-- CBLAS library found
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found LAPACKE: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/debug/lib/lapacke.lib
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Check size of int
-- Check size of int - done
-- MKL: Thread Layer(Intel OpenMP) Interface(4-byte Integer)
-- Found MKL_Shared: D:/Intel/oneAPI/2024.0/include (found version "2024.0.0")
-- Found MKL_Static: D:/Intel/oneAPI/2024.0/include (found version "2024.0.0")
-- Found GTest: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/share/gtest/GTestConfig.cmake (found version "1.13.0")
-- Found Boost: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/include (found suitable version "1.82.0", minimum required is "1.70")
CMake Warning at D:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
  Could not find a configuration file for package "MKL" that is compatible
  with requested version "2023.1".

  The following configuration files were considered but not accepted:

    D:/Intel/oneAPI/2024.0/lib/cmake/mkl/MKLConfig.cmake, version: 2024.0.0
    D:/Intel/oneAPI/mkl/2024.0/lib/cmake/mkl/MKLConfig.cmake, version: 2024.0.0

Call Stack (most recent call first):
  CMakeLists.txt:144 (find_package)**


-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/bin/nvcc.exe
-- The CUDA compiler identification is NVIDIA 11.8.89
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/bin/nvcc.exe - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: D:/Intel/oneAPI/2024.0/lib/mkl_intel_lp64_dll.lib;D:/Intel/oneAPI/2024.0/lib/libiomp5md.lib;C:/Program Files/ArrayFire/lib/mkl_intel_thread_dll.lib;C:/Program Files/ArrayFire/lib/mkl_core_dll.lib
-- Using VCPKG FindLAPACK from package 'lapack-reference'
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- Found Boost: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/include (found version "1.82.0")
-- Found Freetype: optimized;D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/lib/freetype.lib;debug;D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/debug/lib/freetyped.lib (found version "2.12.1")
-- Autodetected CUDA architecture(s):  5.0
-- The SYCL compiler identification is MSVC 19.29.30154.0
D:/github/willyborn/arrayfire/CMakeModulesC:/Program Files/CMake/share/cmake-3.25/Modules
-- Detecting SYCL compiler ABI info
-- Detecting SYCL compiler ABI info - done
-- Check for working SYCL compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Found OpenCL: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/debug/lib/OpenCL.lib (found version "3.0")
-- UNICODE build
-- 64bit build - FIND_LIBRARY_USE_LIB64_PATHS TRUE
CMake Warning at C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1384 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1508 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2119 (_Boost_MISSING_DEPENDENCIES)
  build/vcpkg_installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  D:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:813 (include)
  build/extern/ocl_clfft-src/src/CMakeLists.txt:129 (find_package)


-- Could NOT find Boost (missing: program_options) (found suitable version "1.82.0", minimum required is "1.33.0")
CMake Warning at build/extern/ocl_clfft-src/src/CMakeLists.txt:133 (message):
  Try setting Boost_DEBUG and Boost_DETAILED_FAILURE_MSG for more information


-- Found OpenCL: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/debug/lib/OpenCL.lib
-- Found FFTW: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/debug/lib/fftw3f.lib;D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/debug/lib/fftw3.lib
-- Detected MSVS Ver: 1929
-- CMAKE_CXX_COMPILER flags: /DWIN32 /D_WINDOWS /EHsc
-- CMAKE_CXX_COMPILER debug flags: /Zi /Ob0 /Od /RTC1
-- CMAKE_CXX_COMPILER release flags: /O2 /Ob2 /DNDEBUG
-- CMAKE_CXX_COMPILER relwithdebinfo flags: /Zi /O2 /Ob1 /DNDEBUG
-- CMAKE_EXE_LINKER link flags: /machine:x64
FFT clients will NOT be built
GoogleTest unit tests will NOT be built
FFT callback client will NOT be built
-- Performing Test has_ignored_attributes_flag
-- Performing Test has_ignored_attributes_flag - Failed
-- Found OpenCL: D:/github/willyborn/arrayfire/build/vcpkg_installed/x64-windows/debug/lib/OpenCL.lib (found version "3.0")
-- Performing Test group_flags
-- Performing Test group_flags - Failed
-- Performing Test has_all_warnings_flag
-- Performing Test has_all_warnings_flag - Success
-- Autodetected CUDA architecture(s):  5.0
-- Performing Test pthread_flag
-- Performing Test pthread_flag - Failed
-- Configuring done
CMake Error at src/backend/oneapi/CMakeLists.txt:349 (target_link_libraries):
  Target "afoneapi" links to:

    MKL::MKL_DPCPP

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.**



-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CUDA_NVCC_FLAGS


CMake Generate step failed.  Build files cannot be regenerated correctly.

D:\github\willyborn\arrayfire>

Build Environment

Compiler version: MSVC v142
Operating system: Windows 10
Build environment:
CMake variables:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant