<?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: Re:Windows setvars.bat issues. in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241823#M875</link>
    <description>&lt;P&gt;Yes, I believe this would work, for an executable.&lt;/P&gt;
&lt;P&gt;However, for a library (dll), it is weird to impose such a requirement on the executable (or other libraries) consuming the library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 01:12:38 GMT</pubDate>
    <dc:creator>ChoonHo</dc:creator>
    <dc:date>2020-12-30T01:12:38Z</dc:date>
    <item>
      <title>Windows setvars.bat issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1238203#M843</link>
      <description>&lt;P&gt;Having to initialize &lt;FONT face="courier new,courier"&gt;setvars.bat&lt;/FONT&gt;&amp;nbsp;is really tedious and troublesome.&lt;/P&gt;
&lt;P&gt;It hinders usability of any oneAPI programs, either,&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="lia-indent-padding-left-30px"&gt;Open &lt;FONT face="courier new,courier"&gt;cmd&lt;/FONT&gt;, enter &lt;FONT face="courier new,courier"&gt;"%ONEAPI_ROOT%setvars.bat"&lt;/FONT&gt;, then enter &lt;FONT face="courier new,courier"&gt;".exe"&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI class="lia-indent-padding-left-30px"&gt;Write another program, which runs the &lt;FONT face="courier new,courier"&gt;setvars.bat&lt;/FONT&gt; then run the actual application.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Are there any alternatives, like an callable API to set them from inside the program instead?&lt;/P&gt;
&lt;P&gt;For Visual Studio development, there's&amp;nbsp;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-windows/automate-the-setvars-bat-script-with-microsoft-visual-studio.html" target="_blank" rel="noopener"&gt;Automate the setvars.bat Script with Microsoft Visual Studio*&lt;/A&gt;&amp;nbsp;which is really handy.&lt;/P&gt;
&lt;P&gt;However, from end user perspective, (whether a program consuming a &lt;FONT face="courier new,courier"&gt;.dll&lt;/FONT&gt; written using oneAPI or a person using an &lt;FONT face="courier new,courier"&gt;.exe&lt;/FONT&gt; that uses oneAPI&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt;&amp;nbsp;I wish to just call the &lt;FONT face="courier new,courier"&gt;.dll&lt;/FONT&gt; functions / double click the &lt;FONT face="courier new,courier"&gt;.exe&lt;/FONT&gt; without having to run &lt;FONT face="courier new,courier"&gt;setvars.bat&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 07:13:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1238203#M843</guid>
      <dc:creator>ChoonHo</dc:creator>
      <dc:date>2020-12-17T07:13:24Z</dc:date>
    </item>
    <item>
      <title>Re:Windows setvars.bat issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1238724#M849</link>
      <description>&lt;P&gt;Hi Choon,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In windows, if you use Visual Studio there is no need to run setvars.bat every time. If you want to use the command prompt and doesn't want to run setvars.sh use "Intel OneAPI Command Prompt" which runs the script on initialization.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Dec 2020 12:59:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1238724#M849</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-12-18T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Windows setvars.bat issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1239096#M851</link>
      <description>&lt;P&gt;Yes,&lt;/P&gt;
&lt;P&gt;However, I want to run a program .exe by double-clicking it.&lt;/P&gt;
&lt;P&gt;Not through a command prompt, nor a special command prompt, nor Visual Studio.&lt;/P&gt;
&lt;P&gt;Is there any way around this setvars.bat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 09:58:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1239096#M851</guid>
      <dc:creator>ChoonHo</dc:creator>
      <dc:date>2020-12-20T09:58:26Z</dc:date>
    </item>
    <item>
      <title>Re:Windows setvars.bat issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241206#M868</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay in response.&lt;/P&gt;&lt;P&gt;Currently, it is not possible to use Intel Compilers without loading them.&lt;/P&gt;&lt;P&gt;So, running setvars.bat is mandatory as of now. &lt;/P&gt;&lt;P&gt;If you need to run the executables without running setvars.bat everytime. Now while this is not the recommended way but you can try make it run while loading windows as a startup script. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For making the script run by default during startup follow the steps below:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a shortcut to the batch file.&lt;/LI&gt;&lt;LI&gt;Once the shortcut is created,&amp;nbsp;right-click&amp;nbsp;the shortcut file and select&amp;nbsp;Cut.&lt;/LI&gt;&lt;LI&gt;Press&amp;nbsp;Start, type&amp;nbsp;&lt;B&gt;Run&lt;/B&gt;, and press Enter.&lt;/LI&gt;&lt;LI&gt;In the&amp;nbsp;&lt;I&gt;Run&lt;/I&gt;&amp;nbsp;window, type&amp;nbsp;&lt;B&gt;shell:startup&lt;/B&gt;&amp;nbsp;to open the&amp;nbsp;&lt;I&gt;Startup&lt;/I&gt;&amp;nbsp;folder.&lt;/LI&gt;&lt;LI&gt;Once the&amp;nbsp;&lt;I&gt;Startup&lt;/I&gt;&amp;nbsp;folder is opened, click the&amp;nbsp;&lt;B&gt;Home&lt;/B&gt;&amp;nbsp;tab at the top of the folder. Then, select&amp;nbsp;&lt;B&gt;Paste&lt;/B&gt;&amp;nbsp;to&amp;nbsp;paste the shortcut file into the&amp;nbsp;&lt;I&gt;Startup&lt;/I&gt;&amp;nbsp;folder.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;There might be many other ways if you search online. &lt;/P&gt;&lt;P&gt;Let us know if this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Dec 2020 12:14:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241206#M868</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-12-28T12:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Windows setvars.bat issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241417#M869</link>
      <description>&lt;P&gt;I tried the startup script before, also did it again just to verify.&lt;/P&gt;
&lt;P&gt;It doesn't work as the modifications only applies to the console running the script on startup and closes after it finishes.&lt;/P&gt;
&lt;P&gt;Thanks for the confirmation though, I still hope to see a workaround, like via an API call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 01:18:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241417#M869</guid>
      <dc:creator>ChoonHo</dc:creator>
      <dc:date>2020-12-29T01:18:00Z</dc:date>
    </item>
    <item>
      <title>Re:Windows setvars.bat issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241624#M871</link>
      <description>&lt;P&gt;Hi Choon,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are forwarding this thread to the internal team who can comment better regarding if a workaround is possible or not.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Dec 2020 12:07:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241624#M871</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-12-29T12:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Windows setvars.bat issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241673#M872</link>
      <description>&lt;P&gt;Create a batch file that runs the setvars.bat and/or any other environment variable setups. Then follow this with the command: start YourProGram arg arg arg&lt;BR /&gt;and then end with the command: exit&lt;/P&gt;
&lt;P&gt;Dummy test example:&lt;/P&gt;
&lt;P&gt;foo.bat containing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; date /t&amp;gt;foo.txt&lt;BR /&gt;&amp;nbsp; start notepad foo.txt&lt;BR /&gt;&amp;nbsp; exit&lt;/P&gt;
&lt;P&gt;If you double click on foo.bat from the File Explorer, the foo.bat file runs, creates foo.txt, then uses notepad to open the file, then exits the cmd window executing foo.bat.&lt;/P&gt;
&lt;P&gt;YourLauncher.bat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setvars.bat&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; start YourProgram arg arg arg&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit&lt;/P&gt;
&lt;P&gt;Then Create a shortcut to YourLauncher.bat and set the properties to Run Minimized.&lt;/P&gt;
&lt;P&gt;This will provide you to name the shortcut to whatever you want and to hide the short duration blip of the cmd window setting the environment and launching your app.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 15:01:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241673#M872</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2020-12-29T15:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Windows setvars.bat issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241823#M875</link>
      <description>&lt;P&gt;Yes, I believe this would work, for an executable.&lt;/P&gt;
&lt;P&gt;However, for a library (dll), it is weird to impose such a requirement on the executable (or other libraries) consuming the library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 01:12:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-setvars-bat-issues/m-p/1241823#M875</guid>
      <dc:creator>ChoonHo</dc:creator>
      <dc:date>2020-12-30T01:12:38Z</dc:date>
    </item>
  </channel>
</rss>

