- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
There used to be a script to source when using csh/tcsh for the previous versions of the Intel compiler but the current version doesn't seem to come with a setvars.csh. Is csh/tcsh support planned?
Also, I see a post to this point was deleted but still found by Google which I would point out has led me to need to ask this question in duplicate.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Aaron,
Thanks for reaching out to us!
">>Is csh/tcsh support planned?"
Currently, GNU bash is the only shell supported. However, we will discuss this with the concerned internal team and we will get back to you soon.
Have a Good day!
Thanks & Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Aaron,
I apologize for the delay, we are working internally regarding your query. We will get back to you soon.
Have a Good day!
Thanks & Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Aaron,
Could you please try the below command for sourcing the setvars.sh
# oneAPI setvars.sh use in csh/tcsh
bash -c 'source /opt/intel/oneapi/setvars.sh ; exec csh'
For more details refer to the below link.
Please let us know if this helps.
Have a Good day.
Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Aaron,
Reminder: Could you please let us know whether your issue is resolved and if we can close this thread.
Thanks
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
This allows me to interactively source the script, but how would one do this in a resource file/shell initialization file? For example, within a ~/.tcshrc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Aaron,
>>" how would one do this in a resource file/shell initialization file? For example, within a ~/.tcshrc."
Could you please try adding the above-mentioned command at the end of the ~/.tchrc file and let us know if you face any issues.
Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
This causes an infinite loop of opening tcsh as each instance of "exec tcsh" will cause ~/.tcshrc to be re-sourced. If it is modified to "exec tcsh -f" it won't source this twice, but with a partially configured shell. A better solution can probably be devised to detect that we are on the second iteration of the "login loop" this creates and I will post back if I get a second to Google-jitsu up a method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Okay, I came up with a quick method that is working.
Contents of ~/.tcshrc
if ( ! $?intel_sourced ) then
setenv intel_sourced "yes"
bash -c "source /opt/intel/oneapi/setvars.sh; exec tcsh"
endif
<rest of ~/.tcshrc here>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
This seems to disrupt scp/sftp etc. I don't suggest this solution yet.... Best would be an Intel-provided setvars.csh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Aaron,
>>"This seems to disrupt scp/sftp etc. I don't suggest this solution yet.... Best would be an Intel-provided setvars.csh."
We are in discussion with the internal team, and we will get back to you soon regarding the same.
Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Aaron,
I apologize for the delay.
>>"This seems to disrupt scp/sftp etc. I don't suggest this solution yet.... Best would be an Intel-provided setvars.csh."
We have raised it with the development team. It might be implemented in the future release but at this moment, it is difficult to mention any timeline for it.
Could you please confirm whether we have answered all your queries? If yes, let us know if we can close this thread from our end.
Have a Good day!
Thanks & Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
As we have not heard back from you, we are considering that your issue has been resolved and we have answered all your queries. So we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only
Have a Good day!
Thanks & Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I am another user that would welcome the csh/tcsh version of the setvars script. It would avoid a hassle of using a separate bash window for compiling the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
No the issue is not resolved... I am getting constant error like the attached screenshot .
i have done this
bash -c "source /opt/intel/oneapi/setvars.sh; exec tcsh"
please tell me if the team has included setvars.csh file with the latest version (Version: 2021.3
Date: June 21, 2021) now or not. otherwise I can not risk my data plan to download it. Please reply as soon as possible

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