<?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: vscode remote compiler dpc++ projects failed in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1386623#M2191</link>
    <description>&lt;P&gt;For using VS Code remotely with oneAPI it is essential that the oneAPI environment is loaded also for non-interactive shells, see &lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top/ssh-development-top/ssh-development.html#developing-a-visual-studio-code-project-for-ssh-development_set-oneapi-environment-variables-on-the-remote-host" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top/ssh-development-top/ssh-development.html#developing-a-visual-studio-code-project-for-ssh-development_set-oneapi-environment-variables-on-the-remote-host&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You may check this outside of VS code by executing "which icx". You should see the icx path below (this shows the latest version):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; ssh my_remote_system which icx&lt;/P&gt;
&lt;P&gt;/opt/intel/oneapi/compiler/2022.1.0/linux/bin/icx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not work, please add the following to your $HOME/.bashrc script (see link above):&lt;/P&gt;
&lt;P&gt;[ "$BASH_DATE" ] || BASH_DATE=$(date +%y%m%d.%H%M%S)&lt;/P&gt;
&lt;P&gt;if [ -z "$SSH_TTY" ] &amp;amp;&amp;amp; [ -n "$SSH_CLIENT" ]; then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;. /opt/intel/oneapi/setvars.sh --force &amp;gt; $HOME/log_setvars_$(hostname -s)_${BASH_DATE}.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;which dpcpp &amp;gt;&amp;gt; $HOME/log_setvars_$(hostname -s)_${BASH_DATE}.txt&lt;/P&gt;
&lt;P&gt;fi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using $HOME/log_setvars_$(hostname -s)_${BASH_DATE}.txt is my trick to check the execution. Alternatively you might want to redirect the output to /dev/null as shown at the link above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find attached the JSON files I used with minor modifications. For example, my version of VS Code reported that '"comments":' is not supported. I replaced it by "//"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 06:15:23 GMT</pubDate>
    <dc:creator>Klaus-Dieter_O_Intel</dc:creator>
    <dc:date>2022-05-24T06:15:23Z</dc:date>
    <item>
      <title>vscode remote compiler dpc++ projects failed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1376429#M2041</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;I'm using vscode to remotely compile and debug the example project array-transform code and I'm getting errors, if I don't compile it through vscode, I can compile it myself in the background and then debug it without problems. Now I want to compile it automatically before debug.&lt;BR /&gt;Now I have created a .vscode directory in the current directory, under which I have created both launch.json and tasks.json files. When I run it, I see that the reason for the error is that the associated static file or something is not found... But I did load oneapi's setvars.sh environment .... Also I'm curious why I have this problem of missing static files in vscode when I compile directly with cmake in the background with no problem...&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 06:45:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1376429#M2041</guid>
      <dc:creator>liu_wei67</dc:creator>
      <dc:date>2022-04-12T06:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: vscode remote compiler dpc++ projects failed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1376833#M2043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;&amp;gt;&amp;gt;I'm using vscode to remotely compile and debug&amp;nbsp;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please elaborate on the above statement?&lt;/P&gt;
&lt;P&gt;Could you please provide the steps you have followed so that we can try it from our end?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please provide the OS details(both remote and local machine) and compiler version being used&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>Wed, 13 Apr 2022 11:39:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1376833#M2043</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-04-13T11:39:33Z</dc:date>
    </item>
    <item>
      <title>Re:vscode remote compiler dpc++ projects failed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1378734#M2059</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 along with the above-requested details?&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, 21 Apr 2022 06:04:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1378734#M2059</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-04-21T06:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re:vscode remote compiler dpc++ projects failed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1378750#M2061</link>
      <description>&lt;P&gt;hi:&lt;/P&gt;
&lt;P&gt;Sorry, I've been busy these days and forgot to reply.&lt;BR /&gt;This problem is solved for now, still a bit confused. You can find the steps you need to follow on the website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;General question.&lt;BR /&gt;I wanted it to compile automatically before debugging, so I added the tasks.json and launch.json files.&lt;BR /&gt;launch.json is debugged with gdb-oneapi, plus a hook preLaunchTask, so I wrote tasks.json.&lt;BR /&gt;The problem is the tasks.json file.&lt;BR /&gt;When I write `"command": "mkdir build &amp;amp;&amp;amp; cd build &amp;amp;&amp;amp; cmake . .&amp;nbsp; &amp;amp;&amp;amp; make"`, I get an error when I run the debug.&lt;BR /&gt;If I first run it in the background via xshell.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; source /opt/intel/oneapi/setvars.sh&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; mkdir build &amp;amp;&amp;amp; cd build &amp;amp;&amp;amp; cmake ..&lt;BR /&gt;Then the tasks.json file writes `"command": "cd build &amp;amp;&amp;amp; make"` and runs the debug and it has no problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Intel website: &lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top/ssh-development-top/ssh-development.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top/ssh-development-top/ssh-development.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 13:57:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1378750#M2061</guid>
      <dc:creator>liu_wei67</dc:creator>
      <dc:date>2022-04-21T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re:vscode remote compiler dpc++ projects failed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1378958#M2063</link>
      <description>&lt;P&gt;hi:&lt;/P&gt;
&lt;P&gt;local: win10&lt;/P&gt;
&lt;P&gt;remote:&amp;nbsp; centos8.2&lt;/P&gt;
&lt;P&gt;tools: vscode (remote ssh linux)&lt;/P&gt;
&lt;P&gt;inteloneapi&amp;nbsp; compiler version: 2022.0.2&lt;/P&gt;
&lt;P&gt;inteloneapi debugger version: 2021.5.0&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&lt;AUDIO style="display: none;" controls="controls"&gt;&lt;/AUDIO&gt;&lt;/P&gt;
&lt;P&gt;&lt;AUDIO style="display: none;" controls="controls"&gt;&lt;/AUDIO&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 01:49:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1378958#M2063</guid>
      <dc:creator>liu_wei67</dc:creator>
      <dc:date>2022-04-22T01:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: vscode remote compiler dpc++ projects failed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1380687#M2096</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for providing the details.&lt;/P&gt;
&lt;P&gt;We are working on your issue and we will get back to you soon.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 11:00:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1380687#M2096</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-04-29T11:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: vscode remote compiler dpc++ projects failed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1386623#M2191</link>
      <description>&lt;P&gt;For using VS Code remotely with oneAPI it is essential that the oneAPI environment is loaded also for non-interactive shells, see &lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top/ssh-development-top/ssh-development.html#developing-a-visual-studio-code-project-for-ssh-development_set-oneapi-environment-variables-on-the-remote-host" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top/ssh-development-top/ssh-development.html#developing-a-visual-studio-code-project-for-ssh-development_set-oneapi-environment-variables-on-the-remote-host&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You may check this outside of VS code by executing "which icx". You should see the icx path below (this shows the latest version):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; ssh my_remote_system which icx&lt;/P&gt;
&lt;P&gt;/opt/intel/oneapi/compiler/2022.1.0/linux/bin/icx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not work, please add the following to your $HOME/.bashrc script (see link above):&lt;/P&gt;
&lt;P&gt;[ "$BASH_DATE" ] || BASH_DATE=$(date +%y%m%d.%H%M%S)&lt;/P&gt;
&lt;P&gt;if [ -z "$SSH_TTY" ] &amp;amp;&amp;amp; [ -n "$SSH_CLIENT" ]; then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;. /opt/intel/oneapi/setvars.sh --force &amp;gt; $HOME/log_setvars_$(hostname -s)_${BASH_DATE}.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;which dpcpp &amp;gt;&amp;gt; $HOME/log_setvars_$(hostname -s)_${BASH_DATE}.txt&lt;/P&gt;
&lt;P&gt;fi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using $HOME/log_setvars_$(hostname -s)_${BASH_DATE}.txt is my trick to check the execution. Alternatively you might want to redirect the output to /dev/null as shown at the link above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find attached the JSON files I used with minor modifications. For example, my version of VS Code reported that '"comments":' is not supported. I replaced it by "//"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 06:15:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/vscode-remote-compiler-dpc-projects-failed/m-p/1386623#M2191</guid>
      <dc:creator>Klaus-Dieter_O_Intel</dc:creator>
      <dc:date>2022-05-24T06:15:23Z</dc:date>
    </item>
  </channel>
</rss>

