Intel® oneAPI Base Toolkit
Support for core tools and libraries to build and deploy high-performance data-centric applications

Does oneAPI support csh?

afelt
Novice
2,043 Views

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.

Labels (1)
0 Kudos
14 Replies
GouthamK_Intel
Moderator
2,009 Views

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.

https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-base-toolkit-system-requi...

Have a Good day!


Thanks & Regards

Goutham


GouthamK_Intel
Moderator
1,933 Views

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


GouthamK_Intel
Moderator
1,886 Views

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.

https://community.intel.com/t5/Intel-C-Compiler/How-to-use-zsh-csh-or-tcsh-with-oneAPI-setvars-sh-va...

Please let us know if this helps.

Have a Good day.


Regards

Goutham


GouthamK_Intel
Moderator
1,863 Views

Hi Aaron,

Reminder: Could you please let us know whether your issue is resolved and if we can close this thread.


Thanks

Goutham


afelt
Novice
1,833 Views

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.

GouthamK_Intel
Moderator
1,799 Views

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


afelt
Novice
1,767 Views

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.

afelt
Novice
1,765 Views

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>
afelt
Novice
1,763 Views

This seems to disrupt scp/sftp etc. I don't suggest this solution yet.... Best would be an Intel-provided setvars.csh.

GouthamK_Intel
Moderator
1,722 Views

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


GouthamK_Intel
Moderator
1,689 Views

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


GouthamK_Intel
Moderator
1,645 Views

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


tomeq
Beginner
354 Views

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.

 

GARGA
Beginner
1,462 Views

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

 






 

Reply