<?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: How to build using CMAKE in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1207225#M702</link>
    <description>&lt;P&gt;Intel will no longer monitor this thread. However, this thread will remain open for community discussion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Sep 2020 07:35:27 GMT</pubDate>
    <dc:creator>RahulV_intel</dc:creator>
    <dc:date>2020-09-07T07:35:27Z</dc:date>
    <item>
      <title>How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1200096#M646</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;EDIT: Apparently if we specify LANGUAGES CXX in project, cmake doesn't check for C compiler. So that issue is solved but it is still not taking dpcpp as a valid CXX compiler and throwing the error:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    Building CXX object CMakeFiles/cmTC_7c364.dir/testCXXCompiler.cxx.obj
    "C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/dpcpp.exe"  /nologo -TP   -Wno-sycl-strict  /MDd /Zi /Ob0 /Od /RTC1   /FoCMakeFiles/cmTC_7c364.dir/testCXXCompiler.cxx.obj /FdCMakeFiles/cmTC_7c364.dir/ -c C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/nologo'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/MDd'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/Zi'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/Ob0'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/Od'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/RTC1'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/FoCMakeFiles/cmTC_7c364.dir/testCXXCompiler.cxx.obj'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/FdCMakeFiles/cmTC_7c364.dir/'
    make.exe[1]: *** [CMakeFiles/cmTC_7c364.dir/testCXXCompiler.cxx.obj] Error 1
    make.exe[1]: Leaving directory `C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeTmp'
    make.exe: *** [cmTC_7c364/fast] Error 2&lt;/LI-CODE&gt;
&lt;P&gt;And I can't use clang++ as compiler as mentioned below.&lt;/P&gt;
&lt;P&gt;--------------------------------------&lt;/P&gt;
&lt;P&gt;tl;dr:&amp;nbsp;&lt;EM&gt;how do I invoke cmake so that I can use dpcpp as c++ compiler on windows 10 (to generate Makefile)?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I am trying to build a library+test app (with gtest) however my issue is with CMAKE on windows 10.&lt;/P&gt;
&lt;P&gt;It appears that with beta08, dpcpp interface has become more like MSVC compiler (switches starting with / instead of -).&lt;/P&gt;
&lt;P&gt;If I use command&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=dpcpp ..&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It finds gcc as c compiler and complains that clang &amp;amp; msvc can't be mixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/Platform/Windows-Clang.cmake:104 (message):
  The current configuration mixes Clang and MSVC or some other CL compatible
  compiler tool.  This is not supported.  Use either clang or MSVC as both C
  and C++ compilers.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if I give command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cmake -G "Unix Makefiles" -D CMAKE_C_COMPILER=cl -D CMAKE_CXX_COMPILER=clang++ ..&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It finds&amp;nbsp;MSVC 19.23.28106.4 as C compiler and fails to compiler test c program with errors like;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Building C object CMakeFiles/cmTC_bafff.dir/testCCompiler.c.obj
    "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe"  /nologo   /DWIN32 /D_WINDOWS /W3  /MDd /Zi /Ob0 /Od /RTC1   /FoCMakeFiles/cmTC_bafff.dir/testCCompiler.c.obj /FdCMakeFiles/cmTC_bafff.dir/ /FS -c C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Microsoft (R) C/C++ Optimizing Compiler Version 19.23.28106.4 for x64
    Copyright (C) Microsoft Corporation.  All rights reserved.

    cl : Command line warning D9024 : unrecognized source file type 'C:/Program Files/Git/nologo', object file assumed
    cl : Command line warning D9027 : source file 'C:/Program Files/Git/nologo' ignored
    cl : Command line warning D9024 : unrecognized source file type 'C:/Program Files/Git/DWIN32', object file assumed
    cl : Command line warning D9027 : source file 'C:/Program Files/Git/DWIN32' ignored
    cl : Command line warning D9024 : unrecognized source file type 'C:/Program Files/Git/D_WINDOWS', object file assumed
    cl : Command line warning D9027 : source file 'C:/Program Files/Git/D_WINDOWS' ignored
    cl : Command line warning D9024 : unrecognized source file type 'C:/Program Files/Git/W3', object file assumed
    cl : Command line warning D9027 : source file 'C:/Program Files/Git/W3' ignored
    cl : Command line warning D9024 : unrecognized source file type 'C:/Program Files/Git/MDd', object file assumed
    cl : Command line warning D9027 : source file 'C:/Program Files/Git/MDd' ignored&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I add following to CMakeLists.txt file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;set(CMAKE_CXX_COMPILER "dpcpp")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sycl-strict")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and give command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cmake -G "Unix Makefiles" ..&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It again finds gcc and complains that Clang and MSVC can not be mixed (as in first case above)&lt;/P&gt;
&lt;P&gt;If I use command (without adding dpcpp to CMakeLists.txt file)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cmake -G "Unix Makefiles" -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ ..&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It generates build files correctly but when I run &lt;FONT face="courier new,courier"&gt;make&lt;/FONT&gt;, it compiles my main source but gives following error (the source file is using&amp;nbsp;&lt;SPAN&gt;dpct&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;::device_vector so it includes&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;dpct/dpstd_utils.hpp) for test case files:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[ 43%] Linking CXX static library sgm.lib
[ 43%] Built target sgm
Scanning dependencies of target gtest
[ 46%] Building CXX object test/googletest/googlemock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.obj
[ 50%] Linking CXX static library gtestd.lib
[ 50%] Built target gtest
Scanning dependencies of target sgm-test
[ 53%] Building CXX object test/CMakeFiles/sgm-test.dir/census_transform_test.dp.cpp.obj
In file included from C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/test/census_transform_test.dp.cpp:3:
In file included from C:\Program Files (x86)\Intel\oneAPI\dpcpp-ct\latest\env\..\include\dpct/dpstd_utils.hpp:26:
In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\dpstd/execution:49:
In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/glue_execution_defs.h:59:
In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h:21:
In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/../parallel_backend.h:22:
In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h:27:
In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/../../iterator_impl.h:23:
In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/utils.h:31:
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:178:59: error:
      no template named 'mode_tag_t' in namespace 'cl::sycl'
                                                    sycl::mode_tag_t&amp;lt;Mode&amp;gt; tag)
                                                    ~~~~~~^
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:185:60: error:
      no template named 'mode_tag_t' in namespace 'cl::sycl'
    begin(sycl::buffer&amp;lt;T, /*dim=*/1, Allocator&amp;gt; buf, sycl::mode_tag_t&amp;lt;Mode&amp;gt; tag, sycl::property::noinit)
                                                     ~~~~~~^
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:185:98: error:
      no type named 'noinit' in namespace 'cl::sycl::property'
    begin(sycl::buffer&amp;lt;T, /*dim=*/1, Allocator&amp;gt; buf, sycl::mode_tag_t&amp;lt;Mode&amp;gt; tag, sycl::property::noinit)
                                                                                 ~~~~~~~~~~~~~~~~^
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:192:70: error:
      no type named 'noinit' in namespace 'cl::sycl::property'
    begin(sycl::buffer&amp;lt;T, /*dim=*/1, Allocator&amp;gt; buf, sycl::property::noinit)
                                                     ~~~~~~~~~~~~~~~~^
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:199:100: error:
      no template named 'mode_tag_t' in namespace 'cl::sycl'
__internal::sycl_iterator&amp;lt;Mode, T, Allocator&amp;gt; end(sycl::buffer&amp;lt;T, /*dim=*/1, Allocator&amp;gt; buf, sycl::mode_tag_t&amp;lt;Mode&amp;gt; tag)
                                                                                             ~~~~~~^
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:206:58: error:
      no template named 'mode_tag_t' in namespace 'cl::sycl'
    end(sycl::buffer&amp;lt;T, /*dim=*/1, Allocator&amp;gt; buf, sycl::mode_tag_t&amp;lt;Mode&amp;gt; tag, sycl::property::noinit)
                                                   ~~~~~~^
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:206:96: error:
      no type named 'noinit' in namespace 'cl::sycl::property'
    end(sycl::buffer&amp;lt;T, /*dim=*/1, Allocator&amp;gt; buf, sycl::mode_tag_t&amp;lt;Mode&amp;gt; tag, sycl::property::noinit)
                                                                               ~~~~~~~~~~~~~~~~^
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\include\oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:213:94: error:
      no type named 'noinit' in namespace 'cl::sycl::property'
                                                                             sycl::property::noinit)
                                                                             ~~~~~~~~~~~~~~~~^
8 errors generated.
make[2]: *** [test/CMakeFiles/sgm-test.dir/census_transform_test.dp.cpp.obj] Error 1
make[1]: *** [test/CMakeFiles/sgm-test.dir/all] Error 2
make: *** [all] Error 2&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to compile this file (census_transform_test.dp.cpp) as stand alone file with &lt;FONT face="courier new,courier"&gt;clang++&lt;/FONT&gt; and I get same errors but not when i use &lt;FONT face="courier new,courier"&gt;dpcpp&lt;/FONT&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my question is, how do I invoke cmake so that I can use dpcpp as c++ compiler on windows 10?&lt;/P&gt;
&lt;P&gt;I want to generate make files and not visual studio solution.&lt;/P&gt;
&lt;P&gt;I converted all the files from repo&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM" target="_self"&gt;libSGM&lt;/A&gt;&amp;nbsp;and now trying to build it along with tests so that I can validate the dpct generated cpp code. I can share the converted code if required.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gagan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 17:29:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1200096#M646</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-08-13T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1200314#M648</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clang/clang++ cannot be used to compile source files containing dpct headers (even if you try to provide dpct headers with -I). DPC++ compiler driver is required to compile dpct codes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To correctly generate Unix makefiles using CMake on Windows, follow these steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open "&lt;STRONG&gt;I&lt;/STRONG&gt;&lt;STRONG&gt;ntel oneAPI command prompt for Microsoft Visual Studio 2019&lt;/STRONG&gt;". This step will place DPC++ and other compilers in path. (by sourcing the setvars.bat file)&lt;/LI&gt;
&lt;LI&gt;Make sure that you have the directory containing &lt;STRONG&gt;make.exe&lt;/STRONG&gt; in your environment PATH.&lt;/LI&gt;
&lt;LI&gt;Change current directory to your application directory containing &lt;STRONG&gt;CMakeLists.txt&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;LI-CODE lang="c"&gt;mkdir build &amp;amp;&amp;amp; cd build&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-CODE lang="c"&gt;cmake -G "Unix Makefiles" -D CMAKE_C_COMPILER=dpcpp-cl -D CMAKE_CXX_COMPILER=dpcpp-cl ..&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to see the output as follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RahulV_intel_0-1597407568973.png" style="width: 1899px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/11819i4C503B906F969C90/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RahulV_intel_0-1597407568973.png" alt="RahulV_intel_0-1597407568973.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To generate VS-2019 project files/Solution files (.VCXproj/.sln) using Cmake, the command would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;cmake -T"Intel(R) oneAPI DPC++ Compiler" ..&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you face any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rahul&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 12:19:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1200314#M648</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-08-14T12:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1200813#M652</link>
      <description>&lt;P&gt;Hi Rahul,&lt;/P&gt;
&lt;P&gt;Both methods are failing on windows 10.&lt;/P&gt;
&lt;P&gt;Errors for Unix Makefiles option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;C:\Users\intel\Downloads\cudacode\dpct_repos\libSGM_OneAPI\build&amp;gt;cmake -G "Unix Makefiles" -D CMAKE_C_COMPILER=dpcpp-cl -D CMAKE_CXX_COMPILER=dpcpp-cl ..
-- The CXX compiler identification is Clang 11.0.0 with MSVC-like command-line
-- Check for working CXX compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/dpcpp-cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/dpcpp-cl.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message):
  The C++ compiler

    "C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/dpcpp-cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/PROGRA~2/GnuWin32/bin/make.exe cmTC_b81e4/fast &amp;amp;&amp;amp; C:/PROGRA~2/GnuWin32/bin/make.exe -f CMakeFiles/cmTC_b81e4.dir/build.make CMakeFiles/cmTC_b81e4.dir/build
    make.exe[1]: Entering directory `C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeTmp'
    Building CXX object CMakeFiles/cmTC_b81e4.dir/testCXXCompiler.cxx.obj
    "C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/dpcpp-cl.exe"  /nologo -TP   /DWIN32 /D_WINDOWS /W3 /GR /EHsc  /MDd /Zi /Ob0 /Od /RTC1   /FoCMakeFiles/cmTC_b81e4.dir/testCXXCompiler.cxx.obj /FdCMakeFiles/cmTC_b81e4.dir/ -c C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/nologo'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/DWIN32'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/D_WINDOWS'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/W3'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/GR'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/EHsc'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/MDd'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/Zi'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/Ob0'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/Od'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/RTC1'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/FoCMakeFiles/cmTC_b81e4.dir/testCXXCompiler.cxx.obj'
    dpcpp: error: no such file or directory: 'C:/Program Files/Git/FdCMakeFiles/cmTC_b81e4.dir/'
    make.exe[1]: *** [CMakeFiles/cmTC_b81e4.dir/testCXXCompiler.cxx.obj] Error 1
    make.exe[1]: Leaving directory `C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeTmp'
    make.exe: *** [cmTC_b81e4/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:26 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeError.log".&lt;/LI-CODE&gt;
&lt;P&gt;And for Inntel DPC++ Compiler option:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;C:\Users\intel\Downloads\cudacode\dpct_repos\libSGM_OneAPI\build&amp;gt;cmake -T"Intel(R) oneAPI DPC++ Compiler" ..
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
-- The CXX compiler identification is Clang 11.0.0 with MSVC-like command-line
CMake Error at CMakeLists.txt:26 (project):
  No CMAKE_CXX_COMPILER could be found.



-- Configuring incomplete, errors occurred!
See also "C:/Users/intel/Downloads/cudacode/dpct_repos/libSGM_OneAPI/build/CMakeFiles/CMakeOutput.log".&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what am I missing.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gagan&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 09:27:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1200813#M652</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-08-17T09:27:22Z</dc:date>
    </item>
    <item>
      <title>Re:How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1201530#M661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you attach your CMakeLists.txt file if possible?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have tried to generate Unix Makefiles on sepia-filter official sample with CMake version 3.17. It seems to work for me with the steps that I had given earlier.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Link: &lt;A href="https://github.com/oneapi-src/oneAPI-samples/tree/master/DirectProgramming/DPC%2B%2B/CombinationalLogic/sepia-filter" rel="noopener noreferrer" target="_blank"&gt;https://github.com/oneapi-src/oneAPI-samples/tree/master/DirectProgramming/DPC%2B%2B/CombinationalLogic/sepia-filter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Let me know if you are able to generate Unix Makefiles for this application with the steps that I had provided earlier.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2020 06:38:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1201530#M661</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-08-19T06:38:50Z</dc:date>
    </item>
    <item>
      <title>Re:How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1203436#M673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Just a quick reminder to attach your CMakeLists.txt file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:36:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1203436#M673</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-08-24T10:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re:How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1204098#M678</link>
      <description>&lt;P&gt;Sorry for the delay.&lt;/P&gt;
&lt;P&gt;CMakeFiles.are attached.&lt;/P&gt;
&lt;P&gt;It is building fine on linux but not on windows.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gagan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 21:05:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1204098#M678</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-08-25T21:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1204275#M683</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see any issue with your CMakelists file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you also try building the Github sample which I had sent earlier on Windows and see if that works?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you may try upgrading your CMake to the latest version and see if it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Rahul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 11:11:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1204275#M683</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-08-26T11:11:19Z</dc:date>
    </item>
    <item>
      <title>Re:How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1205760#M693</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any updates on this? Did the CMakeLists file from the official sample work for you?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Sep 2020 10:49:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1205760#M693</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-09-01T10:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re:How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1206314#M695</link>
      <description>&lt;P&gt;Hi Rahul,&lt;/P&gt;
&lt;P&gt;Sorry for the delay. I tried it on linux and it worked fine&lt;/P&gt;
&lt;P&gt;Now I have updated CMAKE on windows to CMAKE version 3.18.2 and it is working as expecting and generating Makefiles properly for my project libSGM_OneAPI.&lt;/P&gt;
&lt;P&gt;Though cmake _T"..." option is still not working on windows. But its okay. I'm not stuck anymore.&lt;BR /&gt;Just for reference, error I get is - "No CMAKE_CXX_COMPILER could be found"&lt;/P&gt;
&lt;P&gt;Thanks for your support.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gagan&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 06:35:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1206314#M695</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-09-03T06:35:31Z</dc:date>
    </item>
    <item>
      <title>Re:How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1206361#M697</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Good to know that it worked.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There could be an integration issue with your VS-19, leading to errors with "&lt;B&gt;cmake -T&lt;/B&gt;" while generating VS project files. Running the installation in repair mode could help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also, let me know if I can close this thread from my end.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Sep 2020 10:00:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1206361#M697</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-09-03T10:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1207225#M702</link>
      <description>&lt;P&gt;Intel will no longer monitor this thread. However, this thread will remain open for community discussion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 07:35:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1207225#M702</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-09-07T07:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to build using CMAKE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1350167#M1820</link>
      <description>&lt;P&gt;The &lt;SPAN style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;2022.0.1 release of the compiler provides the following support for CMake:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;set(IntelDPCPP_DIR /opt/intel/oneapi/compiler/latest/linux/IntelDPCPP)&lt;BR /&gt;find_package(IntelDPCPP REQUIRED)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Its usage is documented in:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;/opt/intel/oneapi/compiler/2022.0.1/linux/IntelDPCPP/ReadMe.txt .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;It will enable the dpcpp compiler via the icx[/icpx] compilers and appropriate compiler flags to enable DPCPP compiler through icx[/icpx] binaries . &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;The flags appear to be "--dpcpp -fsycl". icx and icpx are the same binary and probably use argv[0] to figure out the correct compiler driver to call (along with --dpcpp ).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;The dpcpp compiler will reliably fail the C++ tests. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Note that "icx --dpcpp -help -v" and "dpcpp -help -v" generate identical output (but not much different from "icx -help -v".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 20:13:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-build-using-CMAKE/m-p/1350167#M1820</guid>
      <dc:creator>John15</dc:creator>
      <dc:date>2022-01-10T20:13:10Z</dc:date>
    </item>
  </channel>
</rss>

