Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
663 Discussions

ICPX segfault with -fopenmp-target-simd switch

Žare
Beginner
146 Views

When I switch on -fopenmp-target-simd latest ICPX 2022.4 I'm getting a segfault during linking:

 

Linking CXX shared library ../../libSVRFix-shared.so
cd /mnt/faststore/repo/tempus-core/build/SVRRoot/SVRFix && /usr/bin/cmake -E cmake_link_script CMakeFiles/SVRFix-shared.dir/link.txt --verbose=1
/opt/intel/oneapi/compiler/2024.2/bin/icpx -fPIC -O3 -DNDEBUG -ipo -Wl,--icf=safe -O3 -fdiagnostics-show-option -qopenmp -fopenmp=libiomp5 -stdlib=libstdc++ -mprefer-vector-width=256 -fslp-vectorize -fjump-tables -qopt-mem-layout-trans=4 -fma -Wno-overriding-option -fp-model=precise -fp-speculation=safe -fimf-use-svml=true -mbranches-within-32B-boundaries -qopt-multiple-gather-scatter-by-shuffles -vec-threshold=0 -vec -fvec-peel-loops -fvec-remainder-loops -fvec-with-mask -fopenmp-target-loopopt -fopenmp-target-buffers=4GB -finline -qopt-matmul -qopt-dynamic-align -qopt-jump-tables -qopt-prefetch -fopenmp-targets=spir64_x86_64 -fopenmp-concurrent-host-device-compile -flto=full -fopenmp-target-simd -v -qopenmp-link=static -fuse-ld=lld -Wl,--apply-dynamic-relocs -Wl,-z,muldefs -Wl,--lto-O3 -Wl,--lto-whole-program-visibility -Wl,--lto-CGO3 -Wl,--no-fat-lto-objects -Wl,--no-lto-legacy-pass-manager --offload-arch=native -Xopenmp-target-backend=spir64_x86_64 "-device=cpu -march=sse4.2" -march=native -mtune=native -m64 -mstackrealign -mmovbe -malign-double -mfpmath=sse -funroll-loops -ffp-contract=fast -fPIC -foptimize-sibling-calls -mcmodel=large -std=c++17 -fomit-frame-pointer -ipo -shared -Wl,-soname,libSVRFix-shared.so -o ../../libSVRFix-shared.so "CMakeFiles/SVRFix-shared.dir/shared/BidAskSpread.cpp.o" "CMakeFiles/SVRFix-shared.dir/shared/InterprocessReader.cpp.o"   -L/usr/local/cuda/lib64  -L/libexec  -L/usr/lib/libexec  -L/usr/local/lib  -L/usr/local/libexec  -Wl,-rpath,/usr/local/cuda/lib64:/libexec:/usr/lib/libexec:/usr/local/lib:/usr/local/libexec -lhdf5_serial
Intel(R) oneAPI DPC++/C++ Compiler 2024.2.0 (2024.2.0.20240602)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.2/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.2/bin/compiler/../icpx.cfg
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/12
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/13
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/14
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/14
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found CUDA installation: /usr/local/cuda-12.5, version 
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=host-x86_64-unknown-linux-gnu,openmp-spir64_x86_64 -input=CMakeFiles/SVRFix-shared.dir/shared/BidAskSpread.cpp.o -output=/tmp/icpx-7491c99e14/BidAskSpread-4d6128.o -output=/tmp/icpx-7491c99e14/BidAskSpread-7c8596.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=host-x86_64-unknown-linux-gnu,openmp-spir64_x86_64 -input=CMakeFiles/SVRFix-shared.dir/shared/InterprocessReader.cpp.o -output=/tmp/icpx-7491c99e14/InterprocessReader-653203.o -output=/tmp/icpx-7491c99e14/InterprocessReader-91305d.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/spirv-to-ir-wrapper" /tmp/icpx-7491c99e14/BidAskSpread-7c8596.o -o /tmp/icpx-7491c99e14/BidAskSpread-116a07.bc -skip-unknown-input -llvm-spirv-opts "--spirv-preserve-auxdata --spirv-target-env=SPV-IR --spirv-builtin-format=global"
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/spirv-to-ir-wrapper" /tmp/icpx-7491c99e14/InterprocessReader-91305d.o -o /tmp/icpx-7491c99e14/InterprocessReader-e44456.bc -skip-unknown-input -llvm-spirv-opts "--spirv-preserve-auxdata --spirv-target-env=SPV-IR --spirv-builtin-format=global"
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-spirvdevicertl.o -output=/tmp/icpx-7491c99e14/libomp-spirvdevicertl-dc351c.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-glibc.o -output=/tmp/icpx-7491c99e14/libomp-glibc-b72fa2.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-complex.o -output=/tmp/icpx-7491c99e14/libomp-complex-233538.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-complex-fp64.o -output=/tmp/icpx-7491c99e14/libomp-complex-fp64-24a9ea.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-cmath.o -output=/tmp/icpx-7491c99e14/libomp-cmath-0ce504.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-cmath-fp64.o -output=/tmp/icpx-7491c99e14/libomp-cmath-fp64-bd0e22.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-fallback-cassert.o -output=/tmp/icpx-7491c99e14/libomp-fallback-cassert-be9dd3.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-fallback-cstring.o -output=/tmp/icpx-7491c99e14/libomp-fallback-cstring-ff6249.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-fallback-complex.o -output=/tmp/icpx-7491c99e14/libomp-fallback-complex-a7d40b.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-fallback-complex-fp64.o -output=/tmp/icpx-7491c99e14/libomp-fallback-complex-fp64-e07d58.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-fallback-cmath.o -output=/tmp/icpx-7491c99e14/libomp-fallback-cmath-1151f8.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-fallback-cmath-fp64.o -output=/tmp/icpx-7491c99e14/libomp-fallback-cmath-fp64-3a6d73.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-itt-user-wrappers.o -output=/tmp/icpx-7491c99e14/libomp-itt-user-wrappers-062786.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-itt-compiler-wrappers.o -output=/tmp/icpx-7491c99e14/libomp-itt-compiler-wrappers-03de7d.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-itt-stubs.o -output=/tmp/icpx-7491c99e14/libomp-itt-stubs-96e133.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/clang-offload-bundler" -type=o -targets=openmp-spir64_x86_64 -input=/opt/intel/oneapi/compiler/2024.2/bin/compiler/../../opt/compiler/lib/libomp-device-svml.o -output=/tmp/icpx-7491c99e14/libomp-device-svml-944e54.o -unbundle -allow-missing-bundles -base-temp-dir=/tmp/icpx-7491c99e14 -verbose
Uncompressed bundle.
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/llvm-link" /tmp/icpx-7491c99e14/BidAskSpread-116a07.bc /tmp/icpx-7491c99e14/InterprocessReader-e44456.bc /tmp/icpx-7491c99e14/libomp-spirvdevicertl-dc351c.o -o /tmp/icpx-7491c99e14/spir64_x86_64-linkomp-f6c1d5.bc --suppress-warnings
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/llvm-link" --only-needed /tmp/icpx-7491c99e14/spir64_x86_64-linkomp-f6c1d5.bc /tmp/icpx-7491c99e14/libomp-glibc-b72fa2.o /tmp/icpx-7491c99e14/libomp-complex-233538.o /tmp/icpx-7491c99e14/libomp-complex-fp64-24a9ea.o /tmp/icpx-7491c99e14/libomp-cmath-0ce504.o /tmp/icpx-7491c99e14/libomp-cmath-fp64-bd0e22.o /tmp/icpx-7491c99e14/libomp-fallback-cassert-be9dd3.o /tmp/icpx-7491c99e14/libomp-fallback-cstring-ff6249.o /tmp/icpx-7491c99e14/libomp-fallback-complex-a7d40b.o /tmp/icpx-7491c99e14/libomp-fallback-complex-fp64-e07d58.o /tmp/icpx-7491c99e14/libomp-fallback-cmath-1151f8.o /tmp/icpx-7491c99e14/libomp-fallback-cmath-fp64-3a6d73.o /tmp/icpx-7491c99e14/libomp-itt-user-wrappers-062786.o /tmp/icpx-7491c99e14/libomp-itt-compiler-wrappers-03de7d.o /tmp/icpx-7491c99e14/libomp-itt-stubs-96e133.o /tmp/icpx-7491c99e14/libomp-device-svml-944e54.o -o /tmp/icpx-7491c99e14/BidAskSpread-69ec66.bc --suppress-warnings
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/sycl-post-link" -emit-only-kernels-as-entry-points --ompoffload-link-entries --ompoffload-sort-entries --ompoffload-make-globals-static --ompoffload-explicit-simd -ir-output-only -O3 -spec-const=native -device-globals -o /tmp/icpx-7491c99e14/BidAskSpread-8e85cf.bc /tmp/icpx-7491c99e14/BidAskSpread-69ec66.bc
 "/opt/intel/oneapi/compiler/2024.2/bin/compiler/llvm-spirv" -o /tmp/icpx-7491c99e14/BidAskSpread-355168.spv -spirv-max-version=1.4 -spirv-debug-info-version=nonsemantic-shader-200 -spirv-allow-unknown-intrinsics -spirv-ext=-all,+SPV_EXT_shader_atomic_float_add,+SPV_EXT_shader_atomic_float_min_max,+SPV_KHR_no_integer_wrap_decoration,+SPV_KHR_float_controls,+SPV_KHR_expect_assume,+SPV_KHR_linkonce_odr,+SPV_KHR_bit_instructions,+SPV_INTEL_subgroups,+SPV_INTEL_media_block_io,+SPV_INTEL_device_side_avc_motion_estimation,+SPV_INTEL_fpga_loop_controls,+SPV_INTEL_unstructured_loop_controls,+SPV_INTEL_fpga_reg,+SPV_INTEL_blocking_pipes,+SPV_INTEL_function_pointers,+SPV_INTEL_kernel_attributes,+SPV_INTEL_io_pipes,+SPV_INTEL_inline_assembly,+SPV_INTEL_arbitrary_precision_integers,+SPV_INTEL_float_controls2,+SPV_INTEL_vector_compute,+SPV_INTEL_fast_composite,+SPV_INTEL_cache_controls,+SPV_INTEL_joint_matrix,+SPV_INTEL_bindless_images,+SPV_INTEL_arbitrary_precision_fixed_point,+SPV_INTEL_arbitrary_precision_floating_point,+SPV_INTEL_variable_length_array,+SPV_INTEL_fp_fast_math_mode,+SPV_INTEL_long_constant_composite,+SPV_INTEL_arithmetic_fence,+SPV_INTEL_global_variable_decorations,+SPV_INTEL_cache_controls,+SPV_INTEL_fpga_buffer_location,+SPV_INTEL_fpga_argument_interfaces,+SPV_INTEL_fpga_invocation_pipelining_attributes,+SPV_INTEL_fpga_latency_control,+SPV_INTEL_task_sequence,+SPV_INTEL_token_type,+SPV_INTEL_bfloat16_conversion,+SPV_INTEL_joint_matrix,+SPV_INTEL_hw_thread_queries,+SPV_INTEL_memory_access_aliasing,+SPV_KHR_uniform_group_instructions,+SPV_INTEL_masked_gather_scatter,+SPV_INTEL_tensor_float32_conversion,+SPV_KHR_non_semantic_info,+SPV_INTEL_optnone,+SPV_INTEL_fp_max_error /tmp/icpx-7491c99e14/BidAskSpread-8e85cf.bc
 "/opt/intel/oneapi/compiler/2024.2/bin/opencl-aot" -o=/tmp/icpx-7491c99e14/BidAskSpread-4fc9e2.out --device=cpu /tmp/icpx-7491c99e14/BidAskSpread-355168.spv -device=cpu -march=sse4.2

build log:
Compilation started
Unsupported SPIR-V module
SPIRV module requires unsupported capability 5617
Compilation failed

Failed to build: : -11 (CL_BUILD_PROGRAM_FAILURE)

icpx: error: x86_64 compiler command failed with exit code 245 (use -v to see invocation)
Intel(R) oneAPI DPC++/C++ Compiler 2024.2.0 (2024.2.0.20240602)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.2/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.2/bin/compiler/../icpx.cfg
icpx: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
gmake[3]: *** [SVRRoot/SVRFix/CMakeFiles/SVRFix-shared.dir/build.make:113: libSVRFix-shared.so] Error 1
gmake[3]: Leaving directory '/mnt/faststore/repo/tempus-core/build'
gmake[2]: *** [CMakeFiles/Makefile2:684: SVRRoot/SVRFix/CMakeFiles/SVRFix-shared.dir/all] Error 2
gmake[2]: Leaving directory '/mnt/faststore/repo/tempus-core/build'
gmake[1]: *** [CMakeFiles/Makefile2:470: SVRRoot/OnlineSVR/CMakeFiles/OnlineSVR-test.dir/rule] Error 2
gmake[1]: Leaving directory '/mnt/faststore/repo/tempus-core/build'
gmake: *** [Makefile:186: OnlineSVR-test] Error 2
0 Kudos
2 Replies
Alex_Y_Intel
Moderator
52 Views

We cannot triage your issue if you don't have a runnable reproducer since we hardly know what you've done to reach this result. Please supply one with exact commands used if you think it's a compiler issue.  

0 Kudos
Žare
Beginner
17 Views
I'm unable to provide a reproducer at this moment. The crash occurs when fopenmp and lto is enabled at the same time.
0 Kudos
Reply