You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/user/tipsandtricks.rst
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,3 +105,28 @@ package that depends on MPI should find the local copy of ``mpich`` and link to
105
105
``mpich`` has a high degree of ABI compatibility, making this procedure possible.
106
106
We have not currently implemented this procedure with ``openmpi``, but can do so at a later date
107
107
as ABI compatibility allows.
108
+
109
+
110
+
.. _apple_silicon_rosetta:
111
+
112
+
Installing Apple Intel packages on Apple Silicon
113
+
================================================
114
+
115
+
Using `Rosetta 2 <https://support.apple.com/en-us/HT211861>`_, you can install packages originally compiled for Mac computers with Intel processors on Mac computers with Apple silicon processors.
116
+
117
+
This can be enabled per environment using the following commands:
118
+
119
+
.. code-block:: shell
120
+
121
+
CONDA_SUBDIR=osx-64 conda create -n your_environment_name python # Create a new environment called your_environment_name with intel packages.
122
+
conda activate your_environment_name
123
+
conda env config vars set CONDA_SUBDIR=osx-64 # Make sure that conda commands in this environment use intel packages.
124
+
conda deactivate
125
+
conda activate your_environment_name
126
+
127
+
To verify that the correct platform is being used, run the following commands after the environment has been activated:
128
+
129
+
.. code-block:: shell
130
+
131
+
python -c "import platform;print(platform.machine())"# Should print "x86_64"
132
+
echo"CONDA_SUBDIR: $CONDA_SUBDIR"# Should print "CONDA_SUBDIR: osx-64"
0 commit comments