<?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 Re:use of undeclared identifier 'cl' error in example set in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1468917#M2948</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please provide an update on your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Mar 2023 07:25:47 GMT</pubDate>
    <dc:creator>NoorjahanSk_Intel</dc:creator>
    <dc:date>2023-03-23T07:25:47Z</dc:date>
    <item>
      <title>use of undeclared identifier 'cl' error in example set</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1464745#M2905</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have followed &lt;A href="https://github.com/oneapi-src/oneAPI-samples/tree/master/DirectProgramming/C%2B%2B/ParallelPatterns/openmp_reduction" target="_self"&gt;openmp_reduction&lt;/A&gt; example to test host/gpu execution. However, the following commands don't produce the binary file because of the compilation error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;u187665@login-2:build$ qsub  -I  -l nodes=1:gpu:ppn=2 -d .
qsub: waiting for job 2248101.v-qsvr-1.aidevcloud to start
qsub: job 2248101.v-qsvr-1.aidevcloud ready


########################################################################
#      Date:           Sun 12 Mar 2023 10:50:48 AM PDT
#    Job ID:           2248101.v-qsvr-1.aidevcloud
#      User:           u187665
# Resources:           cput=75:00:00,neednodes=1:gpu:ppn=2,nodes=1:gpu:ppn=2,walltime=06:00:00
########################################################################

u187665@s019-n008:build$ pwd
/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build
u187665@s019-n008:build$ ls
u187665@s019-n008:build$ cmake ..
-- Default CMAKE_BUILD_TYPE not set using Release
-- The CXX compiler identification is Clang 16.0.0
-- Check for working CXX compiler: /glob/development-tools/versions/oneapi/2023.0.1/oneapi/compiler/2023.0.0/linux/bin/icpx
-- Check for working CXX compiler: /glob/development-tools/versions/oneapi/2023.0.1/oneapi/compiler/2023.0.0/linux/bin/icpx -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build
u187665@s019-n008:build$ make VERBOSE=1
/usr/bin/cmake -S/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction -B/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build/CMakeFiles /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build'
make -f src/CMakeFiles/openmp_reduction.dir/build.make src/CMakeFiles/openmp_reduction.dir/depend
make[2]: Entering directory '/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build'
cd /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build &amp;amp;&amp;amp; /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/src /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build/src /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build/src/CMakeFiles/openmp_reduction.dir/DependInfo.cmake --color=
Dependee "/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build/src/CMakeFiles/openmp_reduction.dir/DependInfo.cmake" is newer than depender "/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build/src/CMakeFiles/openmp_reduction.dir/depend.internal".
Dependee "/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build/src/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build/src/CMakeFiles/openmp_reduction.dir/depend.internal".
Scanning dependencies of target openmp_reduction
make[2]: Leaving directory '/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build'
make -f src/CMakeFiles/openmp_reduction.dir/build.make src/CMakeFiles/openmp_reduction.dir/build
make[2]: Entering directory '/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build'
[ 50%] Building CXX object src/CMakeFiles/openmp_reduction.dir/main.cpp.o
cd /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build/src &amp;amp;&amp;amp; /glob/development-tools/versions/oneapi/2023.0.1/oneapi/compiler/2023.0.0/linux/bin/icpx    -fiopenmp -fopenmp-targets=spir64 -fsycl -O3 -DNDEBUG   -o CMakeFiles/openmp_reduction.dir/main.cpp.o -c /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/src/main.cpp
In file included from /home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/src/main.cpp:11:
/glob/development-tools/versions/oneapi/2023.0.1/oneapi/dev-utilities/2021.8.0/include/dpc_common.hpp:14:36: error: use of undeclared identifier 'cl'
static auto exception_handler = [](cl::sycl::exception_list eList) {
                                   ^
1 error generated.
make[2]: *** [src/CMakeFiles/openmp_reduction.dir/build.make:63: src/CMakeFiles/openmp_reduction.dir/main.cpp.o] Error 1
make[2]: Leaving directory '/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build'
make[1]: *** [CMakeFiles/Makefile2:122: src/CMakeFiles/openmp_reduction.dir/all] Error 2
make[1]: Leaving directory '/home/u187665/oneAPI-samples/DirectProgramming/C++/ParallelPatterns/openmp_reduction/build'
make: *** [Makefile:84: all] Error 2&lt;/LI-CODE&gt;
&lt;P&gt;I also tried `nodes=1:xeon:ppn=2` but got the same error.&lt;/P&gt;
&lt;P&gt;How can I fix that?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 18:05:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1464745#M2905</guid>
      <dc:creator>mnt</dc:creator>
      <dc:date>2023-03-12T18:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: use of undeclared identifier 'cl' error in example set</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1466049#M2906</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We request you to try the sample code on another machine with the below changes as the cl namespace is removed from sycl/sycl.hpp header&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;Intel DevCloud is a shared environment that comes with pre-installed validated Intel oneAPI software and complimentary packages, u&lt;SPAN&gt;&lt;SPAN class="ui-provider vf b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;ser's don't have admin privileges in DevCloud to make changes.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace this line&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;static auto exception_handler = [](cl::sycl::exception_list eList)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;static auto exception_handler = [](sycl::exception_list eList)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;in &lt;EM&gt;dpc_common.hpp&lt;/EM&gt; , then you will not observe any issues.&lt;/P&gt;
&lt;P&gt;Please refer to the below link for more details:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/release-notes/intel-oneapi-dpc-c-compiler-release-notes.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/developer/articles/release-notes/intel-oneapi-dpc-c-compiler-release-notes.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We tried this at our end on some other machine(Ubuntu 20.04) with these changes and it worked as expected.&lt;/P&gt;
&lt;P&gt;Please refer to the below screenshot for more details:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NoorjahanSk_Intel_0-1678879049291.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/39184i1E64C848B284B4F4/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="NoorjahanSk_Intel_0-1678879049291.png" alt="NoorjahanSk_Intel_0-1678879049291.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:35:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1466049#M2906</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-03-16T09:35:30Z</dc:date>
    </item>
    <item>
      <title>Re:use of undeclared identifier 'cl' error in example set</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1468917#M2948</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please provide an update on your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2023 07:25:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1468917#M2948</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-03-23T07:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re:use of undeclared identifier 'cl' error in example set</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1468937#M2949</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I wasn't able to setup the example on my own host due to infrastructure limitations. Therefore, I am not able to test that.&lt;/P&gt;
&lt;P&gt;However, as you showed a screen shot that the modifications works, I will accept that as an answer. Maybe it helps someone in the future.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 08:17:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1468937#M2949</guid>
      <dc:creator>mnt</dc:creator>
      <dc:date>2023-03-23T08:17:49Z</dc:date>
    </item>
    <item>
      <title>Re:use of undeclared identifier 'cl' error in example set</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1468965#M2950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting our solution.&lt;/P&gt;&lt;P&gt;As this issue has been resolved, we will no longer respond to this thread. If you need any additional information, please post a new question&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2023 09:43:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/use-of-undeclared-identifier-cl-error-in-example-set/m-p/1468965#M2950</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-03-23T09:43:40Z</dc:date>
    </item>
  </channel>
</rss>

