Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2273 討論

Does icpx has backward compatibility for icpc

hevgo
初學者
5,730 檢視

I am using Intel Parallel Studio XE for years, and since Intel Parallel Studio XE do not offer student license, I move to oneAPI.

I found no icpc support in oneAPI. Instead, the compiler for C++ is icpx. But when I use icpx on my old code it returns thousands of errors, (was fine with icpc).

So, does icpx has backward compatibility for icpc. or do I need to add some flags?

Hevgo.

 

0 積分
1 解決方案
AbhishekD_Intel
5,673 檢視

Hi,


Please try installing Intel oneAPI HPC toolkit you will get icpc inside compiler. Hope this will solve your problem.


Warm Regards,

Abhishek


在原始文章中檢視解決方案

6 回應
AbhishekD_Intel
5,685 檢視

Hi,


Thanks for reaching out to us.

Yes, ICPX is almost compatible with ICPC. But there are some small changes in the functionality and behavior of ICPX as compare to ICC. Please refer to the below porting guide for more details.

https://software.intel.com/content/www/us/en/develop/articles/porting-guide-for-icc-users-to-dpcpp-or-icx.html


Hope it will help you to resolve your issue.



Warm Regards,

Abhishek


hevgo
初學者
5,681 檢視

Hi Abhishek,

Thank you so much for the reply. I really appreciate it.

I have read the website and tried using "icx" or "icpx" to replace "icpc" in my makefile. But both of them return so many errors, while the makefile returns no error with "icpc". Most of the errors make no sense including on parameter pack, expression pack, OpenMP SIMD, OpenMP nontemporal.

Is there any way that I can directly use "icpc" under OneAPI?

Bests,

Yuxuan

AbhishekD_Intel
5,674 檢視

Hi,


Please try installing Intel oneAPI HPC toolkit you will get icpc inside compiler. Hope this will solve your problem.


Warm Regards,

Abhishek


hevgo
初學者
5,663 檢視

Hi Abhishek,

That is really good news to me.

I have installed Intel oneAPI HPC Toolkit. But when I run my makefile with "icpc" it returns the following.

icpc -g -std=c++17 -fopenmp -fopenmp-targets=spir64 -fno-alias -restrict -Wall -Wextra -wd1011 -O3 -march=native -qopt-zmm-usage=high -qopt-report=5 -qopt-report-phase=all -I./src -I./test  -o ./run ./main.cpp -D PROC_COUNT=$(grep -c ^processor /proc/cpuinfo)

Error: Product support for your (Comp-CL) license has expired.
License file(s) used were (in this order):
** 1. /home/yuxuan/intel/compilers_and_libraries_2019.5.281/linux/licenses
** 2. /opt/intel/licenses/l_RBHGGPWW.lic
** 3. /opt/intel/licenses/l_THKJBFS8.lic
** 4. /home/yuxuan/intel/licenses/l_RMPJRNBW.lic
** 5. /home/yuxuan/intel/licenses/l_THKJBFS8.lic
** 6. /home/yuxuan/intel/compilers_and_libraries_2019.5.281/linux/bin/intel64/../../Licenses
** 7. /home/yuxuan/Licenses
** 8. /Users/Shared/Library/Application Support/Intel/Licenses
** 9. /home/yuxuan/intel/compilers_and_libraries_2019.5.281/linux/bin/intel64/*.lic

Please refer https://software.intel.com/en-us/faq/purchasing-renewing-upgrading#support-expiration for more information..

icpc: error #10052: could not checkout FLEXlm license
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 1

I believe this is because my license for Intel Parallel Studio has expired. 

Is there any way to bypass this license checking, or do I need to uninstall my old Parallel Studio XE?

Thanks

Yuxuan

hevgo
初學者
5,653 檢視

NVM, It works! Thank you so much.

AbhishekD_Intel
5,620 檢視

Hi,

 

Thanks for the confirmation, glad to know that your issue is resolved. We will no longer monitor this thread.

Please post a new thread if you have any issues.

 

Warm Regards,

Abhishek

回覆