- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I understand that oneapi compilers are initialized via
source /opt/intel/oneapi/setvars.sh
I would like to switch dynamically between two different oneapi versions, which is a bit hampered by ```version_default=latest``` in ```setvars.sh```.
Currently I change this value manually to the desired version, but I presume there must be an simple option to set this from a config file or command line!?
Any idea?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
If you want to use two different versions of oneAPI, at the time of the installation you need to specify two different paths so that you can use the required version. If you give the same path then it will overwrite.
Please find the below screenshot where we have specified the different paths.
And also, if you want to use the particular version component(mkl,mpi, etc.) with another particular version compiler(icc,icx,dpcpp, etc.) then you can be able to specify it. Please find the below commands:
source /opt/intel/oneapi/setvars.sh --> This will initialize the oneAPI based the version specified in script file.(In general, it will be the latest one)
source /opt/intel/oneapi/compiler/2021.3.0/env/vars.sh --> Incase, if you want different compiler(or any component) version then you can change it's version.
Please find the below screenshot:
For more information, please find the below link:
Thanks & Regards,
Varsha
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
If you want to use two different versions of oneAPI, at the time of the installation you need to specify two different paths so that you can use the required version. If you give the same path then it will overwrite.
Please find the below screenshot where we have specified the different paths.
And also, if you want to use the particular version component(mkl,mpi, etc.) with another particular version compiler(icc,icx,dpcpp, etc.) then you can be able to specify it. Please find the below commands:
source /opt/intel/oneapi/setvars.sh --> This will initialize the oneAPI based the version specified in script file.(In general, it will be the latest one)
source /opt/intel/oneapi/compiler/2021.3.0/env/vars.sh --> Incase, if you want different compiler(or any component) version then you can change it's version.
Please find the below screenshot:
For more information, please find the below link:
Thanks & Regards,
Varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Have a good day!
Thanks & Regards,
Varsha

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