- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
oneAPI: setvars.sh or compiler/latest/vars.sh and other environment setup scripts:
Simplest workaround is:
# oneAPI setvars.sh use in csh/tcsh
bash -c 'source /opt/intel/oneapi/setvars.sh ; exec csh'
# oneAPI compiler vars.sh use in csh/tcsh
bash -c 'source /opt/intel/oneapi/compiler/latest/env/vars.sh ; exec csh'
IMPORTANT - do not use this workaround in your shell "rc" dot file; for example, in your ~/.cshrc file. Your shell RC file is invoked with each new shell - the "exec csh" in this workaround will start a new subshell, invoking .cshrc, which then execs a new shell; the new shell runs .cshrc and you get into an infinite loop.
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page