<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Segmentation fault when openmp_reduction finish in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Segmentation-fault-when-openmp-reduction-finish/m-p/1600980#M3784</link>
    <description>&lt;P&gt;is there anyone can tell me why or how to deal with this error ?&lt;/P&gt;&lt;P&gt;Encountered a segment error while running the program in ` oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction`&lt;/P&gt;&lt;P&gt;build with readme's method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;[Thread debugging using libthread_db enabled]
Using host libthread_db library "&lt;SPAN&gt;/lib/x86_64-linux-gnu/libthread_db.so.1&lt;/SPAN&gt;".
Core was generated by `./src/openmp_reduction'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  &lt;SPAN&gt;std::__1::__cxx_atomic_fetch_sub[abi:nn180000]&amp;lt;int&amp;gt;(std::__1::__cxx_atomic_base_impl&amp;lt;int&amp;gt;*, int, std::__1::memory_order)&lt;/SPAN&gt; (&lt;SPAN&gt;__a&lt;/SPAN&gt;=0x4, &lt;SPAN&gt;__delta&lt;/SPAN&gt;=1, 
--Type &amp;lt;RET&amp;gt; for more, q to quit, c to continue without paging-- 
    &lt;SPAN&gt;__order&lt;/SPAN&gt;=std::__1::memory_order_seq_cst)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/deploy/linux_release/bin/compiler/../../opt/compiler/include/c++/v1/__atomic/cxx_atomic_impl.h&lt;/SPAN&gt;:462

warning: 462	&lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/deploy/linux_release/bin/compiler/../../opt/compiler/include/c++/v1/__atomic/cxx_atomic_impl.h&lt;/SPAN&gt;: No such file or directory
[Current thread is 1 (Thread 0x7f785401cfc0 (LWP 272003))]
warning: File "&lt;SPAN&gt;/opt/intel/oneapi/compiler/2024.1/lib/libsycl.so.7.1.0-gdb.py&lt;/SPAN&gt;" auto-loading has been declined by your `auto-load safe-path' set to "$datadir/../../../..:/usr".
To enable execution of this file add
	add-auto-load-safe-path /opt/intel/oneapi/compiler/2024.1/lib/libsycl.so.7.1.0-gdb.py
line to your configuration file "&lt;SPAN&gt;/home/eton/.config/gdb/gdbinit&lt;/SPAN&gt;".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "&lt;SPAN&gt;/home/eton/.config/gdb/gdbinit&lt;/SPAN&gt;".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
(gdb) bt
#0  &lt;SPAN&gt;std::__1::__cxx_atomic_fetch_sub[abi:nn180000]&amp;lt;int&amp;gt;(std::__1::__cxx_atomic_base_impl&amp;lt;int&amp;gt;*, int, std::__1::memory_order)&lt;/SPAN&gt; (&lt;SPAN&gt;__a&lt;/SPAN&gt;=0x4, &lt;SPAN&gt;__delta&lt;/SPAN&gt;=1, 
    &lt;SPAN&gt;__order&lt;/SPAN&gt;=std::__1::memory_order_seq_cst)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/deploy/linux_release/bin/compiler/../../opt/compiler/include/c++/v1/__atomic/cxx_atomic_impl.h&lt;/SPAN&gt;:462
#1  &lt;SPAN&gt;std::__1::__atomic_base&amp;lt;int, true&amp;gt;::fetch_sub[abi:nn180000](int, std::__1::memory_order)&lt;/SPAN&gt; (&lt;SPAN&gt;this&lt;/SPAN&gt;=0x4, &lt;SPAN&gt;__op&lt;/SPAN&gt;=1, &lt;SPAN&gt;__m&lt;/SPAN&gt;=std::__1::memory_order_seq_cst)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/deploy/linux_release/bin/compiler/../../opt/compiler/include/c++/v1/__atomic/atomic_base.h&lt;/SPAN&gt;:171
#2  &lt;SPAN&gt;__tgt_rtl_unregister_lib&lt;/SPAN&gt; (&lt;SPAN&gt;Desc&lt;/SPAN&gt;=0x402210 &amp;lt;openmp_offloading[descriptor]&amp;gt;)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/llvm/openmp/libomptarget/plugins/opencl/src/rtl.cpp&lt;/SPAN&gt;:4451
#3  &lt;SPAN&gt;0x00007f78532f193f&lt;/SPAN&gt; in &lt;SPAN&gt;__tgt_unregister_lib&lt;/SPAN&gt; (&lt;SPAN&gt;Desc&lt;/SPAN&gt;=0x402210 &amp;lt;openmp_offloading[descriptor]&amp;gt;)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/llvm/openmp/libomptarget/src/interface.cpp&lt;/SPAN&gt;:116
#4  &lt;SPAN&gt;0x00007f785414a12a&lt;/SPAN&gt; in &lt;SPAN&gt;_dl_call_fini&lt;/SPAN&gt; (&lt;SPAN&gt;closure_map=closure_map@entry&lt;/SPAN&gt;=0x7f785417c2f0) at &lt;SPAN&gt;./elf/dl-call_fini.c&lt;/SPAN&gt;:43
#5  &lt;SPAN&gt;0x00007f785414d764&lt;/SPAN&gt; in &lt;SPAN&gt;_dl_fini&lt;/SPAN&gt; () at &lt;SPAN&gt;./elf/dl-fini.c&lt;/SPAN&gt;:78
#6  &lt;SPAN&gt;0x00007f7853c3d55d&lt;/SPAN&gt; in &lt;SPAN&gt;__run_exit_handlers&lt;/SPAN&gt; (&lt;SPAN&gt;status&lt;/SPAN&gt;=0, &lt;SPAN&gt;listp&lt;/SPAN&gt;=0x7f7853dd1820 &amp;lt;__exit_funcs&amp;gt;, &lt;SPAN&gt;run_list_atexit=run_list_atexit@entry&lt;/SPAN&gt;=true, &lt;SPAN&gt;run_dtors=run_dtors@entry&lt;/SPAN&gt;=true)
    at &lt;SPAN&gt;./stdlib/exit.c&lt;/SPAN&gt;:116
#7  &lt;SPAN&gt;0x00007f7853c3d69a&lt;/SPAN&gt; in &lt;SPAN&gt;__GI_exit&lt;/SPAN&gt; (&lt;SPAN&gt;status&lt;/SPAN&gt;=&amp;lt;optimized out&amp;gt;) at &lt;SPAN&gt;./stdlib/exit.c&lt;/SPAN&gt;:146
#8  &lt;SPAN&gt;0x00007f7853c26251&lt;/SPAN&gt; in &lt;SPAN&gt;__libc_start_call_main&lt;/SPAN&gt; (&lt;SPAN&gt;main=main@entry&lt;/SPAN&gt;=0x401640 &amp;lt;main&amp;gt;, &lt;SPAN&gt;argc=argc@entry&lt;/SPAN&gt;=1, &lt;SPAN&gt;argv=argv@entry&lt;/SPAN&gt;=0x7fff59570518) at &lt;SPAN&gt;../sysdeps/nptl/libc_start_call_main.h&lt;/SPAN&gt;:74
#9  &lt;SPAN&gt;0x00007f7853c26305&lt;/SPAN&gt; in &lt;SPAN&gt;__libc_start_main_impl&lt;/SPAN&gt; (&lt;SPAN&gt;main&lt;/SPAN&gt;=0x401640 &amp;lt;main&amp;gt;, &lt;SPAN&gt;argc&lt;/SPAN&gt;=1, &lt;SPAN&gt;argv&lt;/SPAN&gt;=0x7fff59570518, &lt;SPAN&gt;init&lt;/SPAN&gt;=&amp;lt;optimized out&amp;gt;, &lt;SPAN&gt;fini&lt;/SPAN&gt;=&amp;lt;optimized out&amp;gt;, &lt;SPAN&gt;rtld_fini&lt;/SPAN&gt;=&amp;lt;optimized out&amp;gt;, 
    &lt;SPAN&gt;stack_end&lt;/SPAN&gt;=0x7fff59570508) at &lt;SPAN&gt;../csu/libc-start.c&lt;/SPAN&gt;:360
#10 &lt;SPAN&gt;0x0000000000401231&lt;/SPAN&gt; in &lt;SPAN&gt;_start&lt;/SPAN&gt; ()&lt;/PRE&gt;&lt;P&gt;ENV:&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ lsb_release -a&lt;BR /&gt;No LSB modules are available.&lt;BR /&gt;Distributor ID: Debian&lt;BR /&gt;Description: Debian GNU/Linux 12 (bookworm)&lt;BR /&gt;Release: 12&lt;BR /&gt;Codename: bookworm&lt;BR /&gt;eton@acr10d:~/00-src/60-learning/62-oneapi-intel/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build$ uname -a&lt;BR /&gt;Linux acr10d 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 06:32:43 GMT</pubDate>
    <dc:creator>eton</dc:creator>
    <dc:date>2024-05-27T06:32:43Z</dc:date>
    <item>
      <title>Segmentation fault when openmp_reduction finish</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Segmentation-fault-when-openmp-reduction-finish/m-p/1600980#M3784</link>
      <description>&lt;P&gt;is there anyone can tell me why or how to deal with this error ?&lt;/P&gt;&lt;P&gt;Encountered a segment error while running the program in ` oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction`&lt;/P&gt;&lt;P&gt;build with readme's method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;[Thread debugging using libthread_db enabled]
Using host libthread_db library "&lt;SPAN&gt;/lib/x86_64-linux-gnu/libthread_db.so.1&lt;/SPAN&gt;".
Core was generated by `./src/openmp_reduction'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  &lt;SPAN&gt;std::__1::__cxx_atomic_fetch_sub[abi:nn180000]&amp;lt;int&amp;gt;(std::__1::__cxx_atomic_base_impl&amp;lt;int&amp;gt;*, int, std::__1::memory_order)&lt;/SPAN&gt; (&lt;SPAN&gt;__a&lt;/SPAN&gt;=0x4, &lt;SPAN&gt;__delta&lt;/SPAN&gt;=1, 
--Type &amp;lt;RET&amp;gt; for more, q to quit, c to continue without paging-- 
    &lt;SPAN&gt;__order&lt;/SPAN&gt;=std::__1::memory_order_seq_cst)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/deploy/linux_release/bin/compiler/../../opt/compiler/include/c++/v1/__atomic/cxx_atomic_impl.h&lt;/SPAN&gt;:462

warning: 462	&lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/deploy/linux_release/bin/compiler/../../opt/compiler/include/c++/v1/__atomic/cxx_atomic_impl.h&lt;/SPAN&gt;: No such file or directory
[Current thread is 1 (Thread 0x7f785401cfc0 (LWP 272003))]
warning: File "&lt;SPAN&gt;/opt/intel/oneapi/compiler/2024.1/lib/libsycl.so.7.1.0-gdb.py&lt;/SPAN&gt;" auto-loading has been declined by your `auto-load safe-path' set to "$datadir/../../../..:/usr".
To enable execution of this file add
	add-auto-load-safe-path /opt/intel/oneapi/compiler/2024.1/lib/libsycl.so.7.1.0-gdb.py
line to your configuration file "&lt;SPAN&gt;/home/eton/.config/gdb/gdbinit&lt;/SPAN&gt;".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "&lt;SPAN&gt;/home/eton/.config/gdb/gdbinit&lt;/SPAN&gt;".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
(gdb) bt
#0  &lt;SPAN&gt;std::__1::__cxx_atomic_fetch_sub[abi:nn180000]&amp;lt;int&amp;gt;(std::__1::__cxx_atomic_base_impl&amp;lt;int&amp;gt;*, int, std::__1::memory_order)&lt;/SPAN&gt; (&lt;SPAN&gt;__a&lt;/SPAN&gt;=0x4, &lt;SPAN&gt;__delta&lt;/SPAN&gt;=1, 
    &lt;SPAN&gt;__order&lt;/SPAN&gt;=std::__1::memory_order_seq_cst)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/deploy/linux_release/bin/compiler/../../opt/compiler/include/c++/v1/__atomic/cxx_atomic_impl.h&lt;/SPAN&gt;:462
#1  &lt;SPAN&gt;std::__1::__atomic_base&amp;lt;int, true&amp;gt;::fetch_sub[abi:nn180000](int, std::__1::memory_order)&lt;/SPAN&gt; (&lt;SPAN&gt;this&lt;/SPAN&gt;=0x4, &lt;SPAN&gt;__op&lt;/SPAN&gt;=1, &lt;SPAN&gt;__m&lt;/SPAN&gt;=std::__1::memory_order_seq_cst)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/deploy/linux_release/bin/compiler/../../opt/compiler/include/c++/v1/__atomic/atomic_base.h&lt;/SPAN&gt;:171
#2  &lt;SPAN&gt;__tgt_rtl_unregister_lib&lt;/SPAN&gt; (&lt;SPAN&gt;Desc&lt;/SPAN&gt;=0x402210 &amp;lt;openmp_offloading[descriptor]&amp;gt;)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/llvm/openmp/libomptarget/plugins/opencl/src/rtl.cpp&lt;/SPAN&gt;:4451
#3  &lt;SPAN&gt;0x00007f78532f193f&lt;/SPAN&gt; in &lt;SPAN&gt;__tgt_unregister_lib&lt;/SPAN&gt; (&lt;SPAN&gt;Desc&lt;/SPAN&gt;=0x402210 &amp;lt;openmp_offloading[descriptor]&amp;gt;)
    at &lt;SPAN&gt;/netbatch/donb24676_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/llvm/openmp/libomptarget/src/interface.cpp&lt;/SPAN&gt;:116
#4  &lt;SPAN&gt;0x00007f785414a12a&lt;/SPAN&gt; in &lt;SPAN&gt;_dl_call_fini&lt;/SPAN&gt; (&lt;SPAN&gt;closure_map=closure_map@entry&lt;/SPAN&gt;=0x7f785417c2f0) at &lt;SPAN&gt;./elf/dl-call_fini.c&lt;/SPAN&gt;:43
#5  &lt;SPAN&gt;0x00007f785414d764&lt;/SPAN&gt; in &lt;SPAN&gt;_dl_fini&lt;/SPAN&gt; () at &lt;SPAN&gt;./elf/dl-fini.c&lt;/SPAN&gt;:78
#6  &lt;SPAN&gt;0x00007f7853c3d55d&lt;/SPAN&gt; in &lt;SPAN&gt;__run_exit_handlers&lt;/SPAN&gt; (&lt;SPAN&gt;status&lt;/SPAN&gt;=0, &lt;SPAN&gt;listp&lt;/SPAN&gt;=0x7f7853dd1820 &amp;lt;__exit_funcs&amp;gt;, &lt;SPAN&gt;run_list_atexit=run_list_atexit@entry&lt;/SPAN&gt;=true, &lt;SPAN&gt;run_dtors=run_dtors@entry&lt;/SPAN&gt;=true)
    at &lt;SPAN&gt;./stdlib/exit.c&lt;/SPAN&gt;:116
#7  &lt;SPAN&gt;0x00007f7853c3d69a&lt;/SPAN&gt; in &lt;SPAN&gt;__GI_exit&lt;/SPAN&gt; (&lt;SPAN&gt;status&lt;/SPAN&gt;=&amp;lt;optimized out&amp;gt;) at &lt;SPAN&gt;./stdlib/exit.c&lt;/SPAN&gt;:146
#8  &lt;SPAN&gt;0x00007f7853c26251&lt;/SPAN&gt; in &lt;SPAN&gt;__libc_start_call_main&lt;/SPAN&gt; (&lt;SPAN&gt;main=main@entry&lt;/SPAN&gt;=0x401640 &amp;lt;main&amp;gt;, &lt;SPAN&gt;argc=argc@entry&lt;/SPAN&gt;=1, &lt;SPAN&gt;argv=argv@entry&lt;/SPAN&gt;=0x7fff59570518) at &lt;SPAN&gt;../sysdeps/nptl/libc_start_call_main.h&lt;/SPAN&gt;:74
#9  &lt;SPAN&gt;0x00007f7853c26305&lt;/SPAN&gt; in &lt;SPAN&gt;__libc_start_main_impl&lt;/SPAN&gt; (&lt;SPAN&gt;main&lt;/SPAN&gt;=0x401640 &amp;lt;main&amp;gt;, &lt;SPAN&gt;argc&lt;/SPAN&gt;=1, &lt;SPAN&gt;argv&lt;/SPAN&gt;=0x7fff59570518, &lt;SPAN&gt;init&lt;/SPAN&gt;=&amp;lt;optimized out&amp;gt;, &lt;SPAN&gt;fini&lt;/SPAN&gt;=&amp;lt;optimized out&amp;gt;, &lt;SPAN&gt;rtld_fini&lt;/SPAN&gt;=&amp;lt;optimized out&amp;gt;, 
    &lt;SPAN&gt;stack_end&lt;/SPAN&gt;=0x7fff59570508) at &lt;SPAN&gt;../csu/libc-start.c&lt;/SPAN&gt;:360
#10 &lt;SPAN&gt;0x0000000000401231&lt;/SPAN&gt; in &lt;SPAN&gt;_start&lt;/SPAN&gt; ()&lt;/PRE&gt;&lt;P&gt;ENV:&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ lsb_release -a&lt;BR /&gt;No LSB modules are available.&lt;BR /&gt;Distributor ID: Debian&lt;BR /&gt;Description: Debian GNU/Linux 12 (bookworm)&lt;BR /&gt;Release: 12&lt;BR /&gt;Codename: bookworm&lt;BR /&gt;eton@acr10d:~/00-src/60-learning/62-oneapi-intel/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build$ uname -a&lt;BR /&gt;Linux acr10d 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 06:32:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Segmentation-fault-when-openmp-reduction-finish/m-p/1600980#M3784</guid>
      <dc:creator>eton</dc:creator>
      <dc:date>2024-05-27T06:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when openmp_reduction finish</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Segmentation-fault-when-openmp-reduction-finish/m-p/1600982#M3785</link>
      <description>&lt;P&gt;cmake .. -GNinja &amp;amp;&amp;amp; cmake --build . -j&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ LIBOMPTARGET_DEBUG=1 ./src/openmp_reduction&lt;BR /&gt;Libomptarget --&amp;gt; Init target library!&lt;BR /&gt;Libomptarget --&amp;gt; Callback to __tgt_register_ptask_services with handlers 0x00007f2f72aed580 0x00007f2f72aece40&lt;BR /&gt;OMPT --&amp;gt; Entering connectLibrary (libomp)&lt;BR /&gt;OMPT --&amp;gt; OMPT: Trying to load library libiomp5.so&lt;BR /&gt;OMPT --&amp;gt; OMPT: Trying to get address of connection routine ompt_libomp_connect&lt;BR /&gt;OMPT --&amp;gt; OMPT: Library connection handle = 0x7f2f72afea00&lt;BR /&gt;OMPT --&amp;gt; Exiting connectLibrary (libomp)&lt;BR /&gt;Libomptarget --&amp;gt; Loading RTLs...&lt;BR /&gt;Libomptarget --&amp;gt; Loading library 'libomptarget.rtl.level0.so'...&lt;BR /&gt;Target LEVEL_ZERO RTL --&amp;gt; Init Level0 plugin!&lt;BR /&gt;Target LEVEL_ZERO RTL --&amp;gt; ONEAPI_DEVICE_SELECTOR specified 0 root devices&lt;BR /&gt;Target LEVEL_ZERO RTL --&amp;gt; (Accept/Discard [T/F] DeviceID[.SubID[.CCSID]]) -2(all), -1(ignore)&lt;BR /&gt;Target LEVEL_ZERO RTL --&amp;gt; OMPT: Entering connectLibrary (libomptarget)&lt;BR /&gt;OMPT --&amp;gt; OMPT: Trying to load library libomptarget.so&lt;BR /&gt;OMPT --&amp;gt; OMPT: Trying to get address of connection routine ompt_libomptarget_connect&lt;BR /&gt;OMPT --&amp;gt; OMPT: Library connection handle = 0x7f2f7250abc0&lt;BR /&gt;OMPT --&amp;gt; Enter ompt_libomptarget_connect&lt;BR /&gt;OMPT --&amp;gt; Leave ompt_libomptarget_connect&lt;BR /&gt;Target LEVEL_ZERO RTL --&amp;gt; OMPT: Exiting connectLibrary (libomptarget)&lt;BR /&gt;Libomptarget --&amp;gt; Successfully loaded library 'libomptarget.rtl.level0.so'!&lt;BR /&gt;Target LEVEL_ZERO RTL --&amp;gt; Looking for Level0 devices...&lt;BR /&gt;Target LEVEL_ZERO RTL --&amp;gt; Error: findDevices:zeInit failed with error code 1879179264, ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE&lt;BR /&gt;Libomptarget --&amp;gt; No devices supported in this RTL&lt;BR /&gt;Libomptarget --&amp;gt; Loading library 'libomptarget.rtl.opencl.so'...&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Init OpenCL plugin!&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Target device type is set to GPU&lt;BR /&gt;Target OPENCL RTL --&amp;gt; OMPT: Entering connectLibrary (libomptarget)&lt;BR /&gt;OMPT --&amp;gt; OMPT: Trying to load library libomptarget.so&lt;BR /&gt;OMPT --&amp;gt; OMPT: Trying to get address of connection routine ompt_libomptarget_connect&lt;BR /&gt;OMPT --&amp;gt; OMPT: Library connection handle = 0x7f2f7250abc0&lt;BR /&gt;OMPT --&amp;gt; Enter ompt_libomptarget_connect&lt;BR /&gt;OMPT --&amp;gt; Leave ompt_libomptarget_connect&lt;BR /&gt;Target OPENCL RTL --&amp;gt; OMPT: Exiting connectLibrary (libomptarget)&lt;BR /&gt;Libomptarget --&amp;gt; Successfully loaded library 'libomptarget.rtl.opencl.so'!&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Start initializing OpenCL&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Platform OpenCL 3.0 CUDA 12.0.151 has 1 Devices&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clGetMemAllocInfoINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clHostMemAllocINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clDeviceMemAllocINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clSharedMemAllocINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clMemFreeINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clMemBlockingFreeINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clSetKernelArgMemPointerINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clEnqueueMemcpyINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clSetProgramSpecializationConstant is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clGetDeviceGlobalVariablePointerINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clGetKernelSuggestedLocalWorkSizeINTEL is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clGitsIndirectAllocationOffsets is not found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Platform OpenCL 3.0 has 1 Devices&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clGetMemAllocInfoINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clHostMemAllocINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clDeviceMemAllocINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clSharedMemAllocINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clMemFreeINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clMemBlockingFreeINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clSetKernelArgMemPointerINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clEnqueueMemcpyINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clSetProgramSpecializationConstant is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clGetDeviceGlobalVariablePointerINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Extension clGetKernelSuggestedLocalWorkSizeINTEL is found.&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Warning: Extension clGitsIndirectAllocationOffsets is not found.&lt;BR /&gt;Libomptarget --&amp;gt; Registering RTL libomptarget.rtl.opencl.so supporting 2 devices!&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_data_alloc_base&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_data_realloc&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_data_aligned_alloc&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_device_name&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_context_handle&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_data_alloc_info&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_requires_mapping&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_manifest_data_for_region&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_is_supported_device&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_create_interop&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_release_interop&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_use_interop&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_num_interop_properties&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_interop_property_value&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_interop_property_info&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_interop_rc_desc&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_is_accessible_addr_range&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_notify_indirect_access&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_is_private_arg_on_host&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_set_function_ptr_map&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_run_target_team_nd_region&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_device_info&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_device_from_ptr&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_flush_queue&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_sync_barrier&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_async_barrier&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_groups_shape&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_mem_resources&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_omp_alloc&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_omp_free&lt;BR /&gt;Libomptarget --&amp;gt; Loading library 'libomptarget.rtl.x86_64.so'...&lt;BR /&gt;Libomptarget --&amp;gt; Successfully loaded library 'libomptarget.rtl.x86_64.so'!&lt;BR /&gt;Libomptarget --&amp;gt; Registering RTL libomptarget.rtl.x86_64.so supporting 4 devices!&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_data_alloc_base&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_requires_mapping&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_set_function_ptr_map&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_get_mem_resources&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_omp_alloc&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_omp_free&lt;BR /&gt;Libomptarget --&amp;gt; Optional interface: __tgt_rtl_notify_legacy_offload&lt;BR /&gt;Libomptarget --&amp;gt; RTLs loaded!&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Target binary is a valid oneAPI OpenMP image.&lt;BR /&gt;Libomptarget --&amp;gt; Image 0x0000000000402400 is compatible with RTL libomptarget.rtl.opencl.so!&lt;BR /&gt;Libomptarget --&amp;gt; RTL 0x0000000002762790 has index 0!&lt;BR /&gt;Libomptarget --&amp;gt; Registering image 0x0000000000402400 with RTL libomptarget.rtl.opencl.so!&lt;BR /&gt;Libomptarget --&amp;gt; Done registering entries!&lt;BR /&gt;Number of steps is 1000000&lt;BR /&gt;Cpu Seq calc: PI =3.14 in 0.000332 seconds&lt;BR /&gt;Host OpenMP: PI =3.14 in 0.00257 seconds&lt;BR /&gt;success&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Deinit OpenCL plugin!&lt;BR /&gt;Target OPENCL RTL --&amp;gt; Closed RTL successfully&lt;BR /&gt;Target LEVEL_ZERO RTL --&amp;gt; Deinit Level0 plugin!&lt;BR /&gt;Libomptarget --&amp;gt; Unloading target library!&lt;BR /&gt;Libomptarget --&amp;gt; Clearing Interop Table&lt;BR /&gt;Libomptarget --&amp;gt; Unregistered image 0x0000000000402400 from RTL 0x0000000002762790!&lt;BR /&gt;Libomptarget --&amp;gt; Done unregistering images!&lt;BR /&gt;Libomptarget --&amp;gt; Removing translation table for descriptor 0x00000000004023e0&lt;BR /&gt;Libomptarget --&amp;gt; Done unregistering library!&lt;BR /&gt;Segmentation fault (core dumped)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 06:41:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Segmentation-fault-when-openmp-reduction-finish/m-p/1600982#M3785</guid>
      <dc:creator>eton</dc:creator>
      <dc:date>2024-05-27T06:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when openmp_reduction finish</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Segmentation-fault-when-openmp-reduction-finish/m-p/1600984#M3786</link>
      <description>&lt;P&gt;when I remove `&lt;SPAN&gt;-fopenmp-targets=spir64&lt;/SPAN&gt;`, the error gone.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 06:42:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Segmentation-fault-when-openmp-reduction-finish/m-p/1600984#M3786</guid>
      <dc:creator>eton</dc:creator>
      <dc:date>2024-05-27T06:42:36Z</dc:date>
    </item>
  </channel>
</rss>

