- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi when I try to launch the vars.bat from powershell I get this :
ERROR: Visual Studio 2017 or 2019 is not found in "C:\Program Files (x86)\Microsoft Visual Studio\<2017 or 2019>\<Edition>", please set VS2017INSTALLDIR or VS2019INSTALLDIR
I'm using VS Buid Tools 2019 with "C++ Build tools" selected, I tried to modify the vars.bat file but still not working, I don't what I'm supposed to change in the file
Hope you can help !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As of now, PowerShell is not been supported by Intel one API.
For now, you can follow the below steps to use the workaround.
1.Open Intel one API command prompt.
2.Type "Powershell" in Intel one API command prompt.
3.Powershell is invoked and now you can check for dpcpp --version and icx --
version
4.Now you can run the sample CPP program using icx
icx ./sample.c
./sample.exe
Let us know if you face any further issues.
Thanks & Regards
Shivani
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
>>>when I try to launch the vars.bat from PowerShell.
Could you please provide more details of the bat file that you are trying to run, which component of Intel one API you are trying to use?
Could you please provide your system environment details and hardware details:
OS Version (32bit or 64bit)
CPU Details
Thanks & Regards
Shivani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes Sir,
Could you please provide more details of the bat file that you are trying to run, which component of Intel one API you are trying to use?
I open windows terminal with powershell 7 in the context menu of right click mouse from this directory : C:\Program Files (x86)\Intel\oneAPI\compiler\latest\env\vars.bat
I've installed oneapi Base(threading building blocks only) and hpc (C++ and fortran compilers)
OS Version (32bit or 64bit) : last Windows 10 pro version, 64 bits
CPU Details : intel i7 10750H
Best regards
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well I found how to fix that : In the system variables window of Windows 10, there is a "VS2019INSTALLDIR" variable which as "C...\Community" path. I changed "Community" by "BuildTools". Now I have no more this error.
As you can see in the screenshot, when I type icl or icx I get an error..I'm supposed to add those to the variable path ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok I added those to the variables path :
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\bin for icx ifx
C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\bin\intel64 for classic compil icl ifort
From a VS2019 powershell command, all compiler are reconized but when I try to compile a .cpp I get :
LINK : fatal error LNK1104: impossible to open the file 'libmmt.lib'
trying to compile a fortran 77 code I get :
ex0.for(12): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( : % [ . = =>
Wr
---------^
ex0.for(12): error #6236: A specification statement cannot appear in the executable section.
Wr
-------^
compilation aborted for ex0.for (code 1)
so ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No one can help ?
actually now I have these issues, when I use the Visual studio developer powershell command :
when compiling C++ code with icx :
LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'libircmt.lib'
clang-cl: error: linker command failed with exit code 1104 (use -v to see invocation)
when compiling fortran77 code with ifort :
LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'ifconsol.lib'
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We can reproduce the issue at our end. I apologize for the delayed response. We are working on it and will get back to you soon.
Thanks & Regards
Shivani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As of now, PowerShell is not been supported by Intel one API.
For now, you can follow the below steps to use the workaround.
1.Open Intel one API command prompt.
2.Type "Powershell" in Intel one API command prompt.
3.Powershell is invoked and now you can check for dpcpp --version and icx --
version
4.Now you can run the sample CPP program using icx
icx ./sample.c
./sample.exe
Let us know if you face any further issues.
Thanks & Regards
Shivani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In fact I'm facing another issue, I do not have the intel oneapi command prompt shortcut in my windows launch menu. I'm using the build tools version of visual studio 2019. During the installation of inteloneapi, visual studio build tools was recognized and I've selected it
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for the confirmation! As your issue has been resolved, we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.
Have a Good day!
Thanks & Regards
Shivani

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page