Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7952 Discussions

How do I compile OpenMP code in DevCloud?

gamersensual14
New Contributor I
699 Views

Hi Intel team!

 

I'm using the DevCloud to try out (and compile, because otherwise I wont be able to execute it) some SYCL and OpenMP codes.

 

The SYCL codes compile and work well but the OpenMP ones don't even compile. When I developed them in local, I used the compiler NVC, but it looks that it isn't on the DevCloud.

 

How can I compile my OpenMP code in the DevCloud? What compiler should I use in the makefile?

 

Thank you very much!

0 Kudos
1 Solution
VarshaS_Intel
Moderator
660 Views

Hi,


Thanks for posting in Intel Communities.


>>When I developed them in local, I used the compiler NVC, but it looks that it isn't on the DevCloud.

Yes, because NVC is an Nvidia compiler. In the Intel Devcloud, Nvidia compilers won't exist. You can use all the Intel oneAPI Toolkits and Compilers in the Devcloud.


>>How can I compile my OpenMP code in the DevCloud?

You can compile OpenMP codes with Intel C++/Fortan Compiler. Please find the links for compiling the OpenMP codes:

https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/software-development-process/composability/c-c-openmp-and-dpc-composability.html

https://www.intel.com/content/www/us/en/develop/documentation/oneapi-gpu-optimization-guide/top/openmp-offloading-intro/openmp-compile-and-run.html


Moreover, you can also use SYCL and OpenMP in a single code. 

Please find the below link for the compilation and running of the code:

https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/software-development-process/composability/c-c-openmp-and-dpc-composability.html 


Thanks & Regards,

Varsha


View solution in original post

0 Kudos
2 Replies
VarshaS_Intel
Moderator
661 Views

Hi,


Thanks for posting in Intel Communities.


>>When I developed them in local, I used the compiler NVC, but it looks that it isn't on the DevCloud.

Yes, because NVC is an Nvidia compiler. In the Intel Devcloud, Nvidia compilers won't exist. You can use all the Intel oneAPI Toolkits and Compilers in the Devcloud.


>>How can I compile my OpenMP code in the DevCloud?

You can compile OpenMP codes with Intel C++/Fortan Compiler. Please find the links for compiling the OpenMP codes:

https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/software-development-process/composability/c-c-openmp-and-dpc-composability.html

https://www.intel.com/content/www/us/en/develop/documentation/oneapi-gpu-optimization-guide/top/openmp-offloading-intro/openmp-compile-and-run.html


Moreover, you can also use SYCL and OpenMP in a single code. 

Please find the below link for the compilation and running of the code:

https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/software-development-process/composability/c-c-openmp-and-dpc-composability.html 


Thanks & Regards,

Varsha


0 Kudos
VarshaS_Intel
Moderator
628 Views

Hi,


Thanks for accepting our solution. Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will

no longer be monitored by Intel.


Thanks & Regards,

Varsha


0 Kudos
Reply