I am on MacOS 11.3 Big Sur and I use the framework OneAPI of Intel.
To load all the environment variables, I put into my ~/.zshrc :
source /opt/intel/oneapi/setvars.sh
Before I used conda of OneAPI, the time for launching a new Terminal and get the prompt was acceptable (2-3 seconds).
But since I use conda of OneAPI, it takes a time very long to launch and get the prompt (at least 10 seconds) : it is very annoying.
I tried to use a config file for setvars.sh sourcing :
source /opt/intel/oneapi/setvars.sh --config="/opt/intel/oneapi/config_setvars.txt" > /dev/null
with config_setvars.txt :
default=exclude
mkl=latest
idp=latest
But it takes still too much time (~ 8 seconds) to get the prompt of a launched terminal.
Is there a way to activate conda (and environment variables associated) with the file sourced setvars.sh or by modifying config_setvars.txt ?
Indeed, to know if conda is activated or not, I did a smple shell function :
function isconda() {
answer=$(echo $CONDA_DEFAULT_ENV)
if [ -z "$answer" ];
then print "NO CONDA ACTIVATED"
else
print "YES CONDA ACTIVATED"
fi
}
I have not anaconda or miniconda and I wouldn't like to install them.
Here is my ~/.condarc :
auto_activate_base: false
auto_update_conda: false
channels:
- conda-forge
- https://conda.anaconda.org/intel/osx-64
- https://conda.anaconda.org/jdblischak/osx-64
- defaults
channel_priority: flexible
I suspect that sourcing /opt/intel/oneapi/setvars.sh calls all the environments, especially conda and that's why it takes a long time to loas everything : how to prevent to load all these environments ?
I don't know what to do now, if someone could give som advices to get the prompt more quickly when I launch a new terminal on iTerm2, this would be fine to tell it.
from Setup Intel One API framework on MacOS - how to decrease the loading time of conda when I do "source /opt/intel/oneapi/setvars.sh"
No comments:
Post a Comment