- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I installed LLVM following Getting Started with oneAPI DPC++ — oneAPI DPC++ Compiler documentation (intel.github.io)
I used it to compile an application called cloudsc_sycl, downloaded from GitHub - ecmwf-ifs/dwarf-p-cloudsc at nams_pvc_sycl
Following are some settings in env.sh and toolchain.cmake under dwarf-p-cloudsc-nams/arch/ecmwf/hpc2020/intel-sycl/2024.1 dir:
env.sh:
export IntelSYCL_DIR="/opt/intel/oneapi/compiler/2024.1/lib/cmake/IntelSYCL"
export HDF5_ROOT="/usr/local/cloudsc_sycl_libs"
toolchain.cmake:
set(CMAKE_CXX_COMPILER "/opt/Downloads/intel/llvm/build/bin/clang++")
set(CMAKE_Fortran_COMPILER "/opt/intel/oneapi/compiler/2024.1/bin/ifort")
set(CMAKE_CXX_FLAGS "-O3 -L/opt/Softwares/gcc122/lib64 -lstdc++ -L/opt/intel/oneapi/compiler/2024.1/lib -liomp5 ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-early-optimizations -fsycl")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-targets=nvptx64-nvidia-cuda")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xsycl-target-backend --cuda-gpu-arch=sm_80")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/opt/intel/oneapi/compiler/2024.1/include -I/opt/Softwares/gcc122/include/c++/12.2.0")
I compiled the application using "./cloudsc-bundle build --clean --build-dir=build-sycl --with-gpu --with-sycl --arch=arch/ecmwf/hpc2020/intel-sycl/2024.1" on A100 GPU,and met the following error:
-- [dwarf-p-cloudsc] (1.4.0)
-- Feature TESTS enabled
-- Could NOT find OpenACC_Fortran (missing: OpenACC_Fortran_FLAGS) (found version "1.0")
-- dwarf-p-cloudsc FOUND OpenACC
-- Found package OpenACC required for feature ACC
-- Feature ACC enabled
SYCL feature test compile failed!
compile output is:
CMake Error at /opt/intel/oneapi/compiler/2024.1/lib/cmake/IntelSYCL/IntelSYCLConfig.cmake:287 (SYCL_FEATURE_TEST_EXTRACT):
SYCL_FEATURE_TEST_EXTRACT Function invoked with incorrect arguments for
function named: SYCL_FEATURE_TEST_EXTRACT
Call Stack (most recent call first):
ecbuild/cmake/ecbuild_find_package.cmake:239 (find_package)
ecbuild/cmake/ecbuild_add_option.cmake:226 (ecbuild_find_package)
cloudsc-dwarf/CMakeLists.txt:73 (ecbuild_add_option)
Any suggestions?
Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jervie, we would like to inform you that we are routing your query to the dedicated team for further assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Is your issue fixed ? I checked out the github link, but couldn't find the 2024.1 folder you mentioned.
I just see this folder arch/ecmwf/hpc2020/intel-sycl/2021.4.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have this problem too.
I hate that you won't give us binaries. I've been trying to compile this since August 2024.
-- Found SYCL: /opt/intel/oneapi/compiler/2025.0/include;/opt/intel/oneapi/compiler/2025.0/include/sycl;/opt/intel/oneapi/compiler/2025.0/include/sycl (found version "20250004")
SYCL: feature test compile failed!!
compile output is:
CMake Error at third_party/torch-xpu-ops/cmake/Modules/FindSYCLToolkit.cmake:237 (message):
Can not build SYCL_CMPLR_TEST
Call Stack (most recent call first):
third_party/torch-xpu-ops/cmake/SYCL.cmake:5 (include)
third_party/torch-xpu-ops/CMakeLists.txt:38 (include)
-- Configuring incomplete, errors occurred!
Building wheel torch-2.6.0a0+git1eba9b3
-- Building version 2.6.0a0+git1eba9b3
cmake -GNinja -DBUILD_BINARY=0 -DBUILD_BY_PER_KERNEL=0 -DBUILD_CAFFE2=0 -DBUILD_CAFFE2_OPS=0 -DBUILD_PYTHON=True -DBUILD_STATS=1 -DBUILD_TEST=True -DBUILD_WITH_SANITIZER=0 -DBUILD_WITH_XPU=1 -DCMAKE_ARGS=-DCMAKE_AR=/home/evstratios/miniforge3/envs/ipex-xe/bin/x86_64-conda-linux-gnu-ar -DCMAKE_CXX_COMPILER_AR=/home/evstratios/miniforge3/envs/ipex-xe/bin/x86_64-conda-linux-gnu-gcc-ar -DCMAKE_C_COMPILER_AR=/home/evstratios/miniforge3/envs/ipex-xe/bin/x86_64-conda-linux-gnu-gcc-ar -DCMAKE_RANLIB=/home/evstratios/miniforge3/envs/ipex-xe/bin/x86_64-conda-linux-gnu-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/home/evstratios/miniforge3/envs/ipex-xe/bin/x86_64-conda-linux-gnu-gcc-ranlib -DCMAKE_C_COMPILER_RANLIB=/home/evstratios/miniforge3/envs/ipex-xe/bin/x86_64-conda-linux-gnu-gcc-ranlib -DCMAKE_LINKER=/home/evstratios/miniforge3/envs/ipex-xe/bin/x86_64-conda-linux-gnu-ld -DCMAKE_STRIP=/home/evstratios/miniforge3/envs/ipex-xe/bin/x86_64-conda-linux-gnu-strip -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYCL_DEVICE_OBJECT_OUTPUT_DIR=./sycl_objs -DCMAKE_INSTALL_PREFIX=/home/evstratios/ipex/pytorch/torch -DONEDNN_GRAPH_BUILD_COMPILER_BACKEND=1 -DSYCL_OCLOC_EXECUTABLE=/usr/bin/ocloc -DSYCL_PI_LEVEL_ZERO_DEVICE_SCOPE_EVENTS=1 -DSYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 -DTORCH_XPU_ARCH_LIST=adl-p -DUSE_XPU=1 -GNinja -Wno-dev -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/evstratios/ipex/pytorch/torch -DCMAKE_PREFIX_PATH=/home/evstratios/miniforge3/envs/ipex-xe/lib/python3.10/site-packages;/home/evstratios/miniforge3/envs/ipex-xe:/opt/intel/oneapi/pti/0.10/lib/cmake/pti:/opt/intel/oneapi/mkl/2025.0/lib/cmake:/opt/intel/oneapi/compiler/2025.0:/opt/intel/oneapi/vpl/2023.1.0:/opt/intel/oneapi/tbb/2022.1/env/..:/opt/intel/oneapi/pti/0.11/lib/cmake/pti:/opt/intel/oneapi/mkl/2025.1/lib/cmake:/opt/intel/oneapi/ispc/1.23/lib/cmake/ispcrt:/opt/intel/oneapi/ipp/2022.1/lib/cmake/ipp:/opt/intel/oneapi/dpl/2022.8/lib/cmake/oneDPL:/opt/intel/oneapi/dnnl/2025.1/lib/cmake:/opt/intel/oneapi/dal/2025.4:/opt/intel/oneapi/compiler/2025.1:/opt/intel/oneapi/ccl/2021.15/lib/cmake/oneCCL:/home/evstratios/miniforge3/envs/ipex-xe:/home/evstratios/miniforge3/envs/ipex-xe/x86_64-conda-linux-gnu/sysroot/usr -DGLIBCXX_USE_CXX11_ABI=1 -DJAVA_HOME=/home/evstratios/miniforge3/envs/ipex-xe/lib/jvm -DPython_EXECUTABLE=/home/evstratios/miniforge3/envs/ipex-xe/bin/python -DTORCH_BUILD_VERSION=2.6.0a0+git1eba9b3 -DTORCH_XPU_ARCH_LIST=adl-p -DUSE_ABI=1 -DUSE_AOT_DEVLIST=adl-p -DUSE_CCACHE=1 -DUSE_CHANNELS_LAST_1D=0 -DUSE_COREML_DELEGATE=1 -DUSE_CPP_CODE_COVERAGE=1 -DUSE_CUDA=0 -DUSE_CUDNN=0 -DUSE_DISTRIBUTED=0 -DUSE_EIGEN_FOR_BLAS=1 -DUSE_FAKELOWP=0 -DUSE_FBGEMM=0 -DUSE_FFMPEG=1 -DUSE_GLOO=1 -DUSE_GOLD_LINKER=1 -DUSE_IBVERB=0 -DUSE_ITT_ANNOTATION=1 -DUSE_KINETO=0 -DUSE_LEVEL_ZERO=1 -DUSE_MKLDNN=1 -DUSE_MKLDNN_ACL=0 -DUSE_MPI=0 -DUSE_NNPACK=1 -DUSE_NUMA=0 -DUSE_NUMPY=True -DUSE_ONEMKL=1 -DUSE_OPENCL=1 -DUSE_OPENCV=1 -DUSE_OPENMP=1 -DUSE_PYTORCH_QNNPACK=1 -DUSE_QNNPACK=0 -DUSE_RPC=1 -DUSE_SPLIT_FP64_LOOPS=1 -DUSE_STATIC_MKL=1 -DUSE_SYCL_ASSERT=0 -DUSE_SYSTEM_LIBS=0 -DUSE_TENSORPIPE=1 -DUSE_TORCH_XPU_OPS=0 -DUSE_UCC=0 -DUSE_VULKAN=0 -DUSE_XETLA=0 -DUSE_XNNPACK=1 -DUSE_XPU=1 /home/evstratios/ipex/pytorch

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page