Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

Running DPC++ project from command line

student4
Beginner
920 Views

Hi,

 

I have developed a DPC++ project using Microsoft Visual Studio 2019. Is t possible run the project executable from Windows command prompt.

I tried doing it and the screenshot attached shows the error.

student4_0-1649044107142.png

 

Thank you.

0 Kudos
1 Solution
VidyalathaB_Intel
Moderator
903 Views

Hi Aishwarya,

 

Thanks for reaching out to us.

 

>>Is t possible run the project executable from Windows command prompt

 

Yes, you can run it from the windows command prompt but before doing that just make sure the oneAPI environment is initialized.

 

You can initialize that by running the setvars.bat file manually which is located under "C:\Program Files (x86)\Intel\oneAPI" path.

 

Alternately, you can just make use of the Intel oneAPI command prompt where the oneAPI environment is initialized automatically (no need to do it manually)

 

Hope the provided information helps in resolving the issue.

 

Regards,

Vidya.

 

View solution in original post

0 Kudos
4 Replies
VidyalathaB_Intel
Moderator
904 Views

Hi Aishwarya,

 

Thanks for reaching out to us.

 

>>Is t possible run the project executable from Windows command prompt

 

Yes, you can run it from the windows command prompt but before doing that just make sure the oneAPI environment is initialized.

 

You can initialize that by running the setvars.bat file manually which is located under "C:\Program Files (x86)\Intel\oneAPI" path.

 

Alternately, you can just make use of the Intel oneAPI command prompt where the oneAPI environment is initialized automatically (no need to do it manually)

 

Hope the provided information helps in resolving the issue.

 

Regards,

Vidya.

 

0 Kudos
student4
Beginner
870 Views

Hi Vidya,

 

I initialized the oneAPI environment by running the setvars.bat file.

I am still getting the same error when I try to run the program.

student4_0-1649216539973.png

Thank you.

0 Kudos
student4
Beginner
869 Views

Thanks Vidya. It works now.

0 Kudos
VidyalathaB_Intel
Moderator
862 Views

Hi Aishwarya,


Thanks for accepting our solution.

As the issue is resolved we are closing this thread. Please post a new question if you need any additional information from Intel as this thread will no longer be monitored.


Have a Great Day!


Regards,

Vidya.


0 Kudos
Reply