- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Is there a way to pass default options to the dpcpp compiler? I tried setting the DPCPPCFG environment variable, similar to how icx recognizes ICXCFG, but it didn't work.
Our gcc is installed in an unusual location, so i need a way of passing --gcc-toolchain=/path/to/gcc. I can't use __INTEL_PRE_CFLAGS because then the classic compilers complain about an unrecognized option.
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
Thanks for reaching out to us.
Could you please provide us OS environment details and the version of the compiler you are using
Please refer the list of supported environment variables for oneapi compilers in the following link
>> Is there a way to pass default options to the dpcpp compiler
We are working on this issue and we will get back to you soon.
Regards,
Vidya.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
OS is Centos7, and dpcpp version is 2021.3.0
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
Thanks for providing the details.
Please find the system requirements for oneAPI DPC++ compiler from the below link
As per the requirements for dpcpp compiler, CentOS 7 is not supported.
So we suggest you to try using supported version and let us know if you face any issues.
Regards,
Vidya.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
Reminder:
Please confirm if your issue is resolved so that we can close this thread from our end.
Regards,
Vidya.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I'm not sure. Will there be a mechanism like DPCPPCFG in the next release?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
From your initial query we see that you have mentioned multiple compilers.
Could you please share the details of your use case ( and also script file if any) so that we can try it from our end.
>> I can't use __INTEL_PRE_CFLAGS because then the classic compilers complain
Could you be more specific regarding the issue while using __INTEL_PRE_CFLAGS classic compilers.
Regards,
Vidya.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I'm installing the oneAPI suite on an HPC cluster. Like most HPC clusters, we use our own build of gcc and not the OS package.
If i set __INTEL_PRE_CFLAGS="--gcc-toolchain=/path/to/gcc", that works for icpx and (maybe) dpcpp, but not icpc since it doesn't recognize the --gcc-toolchain flag.
So i'm using the ICPCCFG, ICPXCFG, ... environment variables to pass different options to the different compilers, but DPCPPCFG is not recognized.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
>>icpc since it doesn't recognize the --gcc-toolchain flag.
Please refer the below link to use gcc with icpc compiler
Instead of using DPCPPCFG, you can also add the path of configuration file in your makefile where dpcpp is called.
For example:
:/tmp$ cat Makefile
CC=dpcpp @/tmp/dpcpp.cfg
CFLAGS=-I.
hellomake:
$(CC) -c -g hello.cpp
We checked it from our end on CentOS 8 and it is working fine.
And also please make sure the options which you are using in .cfg file are supported otherwise you will get errors saying : Unsupported command line options encountered.
You can get the list of options both supported and unsupported options by oneAPI compilers using below command
icpx --qnextgen-diag
Regards,
Vidya
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
Reminder:
Could you please confirm us if your issue is resolved and whether we can close this thread from our end?
Regards,
Vidya.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
We assume that your issue is resolved. If you need any additional assistance from intel please post a new question as this thread will no longer be monitored.
Have a good day!
Regards,
Vidya.

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite