Open EliaSavino opened 1 year ago
Just to double-check, are you deliberately running osx-64 builds for a particular reason, and not osx-arm64 native builds?
I can reproduce this rather readily by installing an osx-64 environment.
CONDA_SUBDIR=osx-64 conda create -n osx64test pandas
This yields:
Python 3.11.4 (main, Jul 5 2023, 08:41:25) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.
Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.
On the other hand, the same environment creation without the CONDA_SUBDIR
override offers no such warning:
(osxarm64test) m1mbp:anaconda-mirror mgrant$ python
Python 3.11.4 (main, Jul 5 2023, 08:40:20) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>
I am inclined to blame an interaction between Rosetta and Intel's MKL, which is likely unavoidable—except by avoiding Rosetta altogether.
Hello!
First thank you for the swift reply. I am not running osx-64 builds on purpose, I have been just building the environment as default.
edit: after a bit of testing It seems that my conda takes as the default subdir osx-64 instead of osx-arm64. Is there a way of fixing this?
It looks like you've downloaded the osx-64 version of Anaconda. The permanent fix is for you to replace it with an osx-arm64 version instead. If you go to the download page (https://www.anaconda.com/), you'll be able to select which version you obtain—the M1/M2 version is the correct one! Unfortunately, it's not easy for browsers to detect whether or not you are running an Intel or ARM processor.
Thank you for your help. It was such a noob mistake on my side ;)
This helped me out! Thank you!
I have accidentally installed the osx-64 version instead of the osx-arm64 version on my MBP M3 pro. Is there a way to globally change the platform? Right now I've been setting the platform for every environment using conda activate env
followed by conda config --env --set subdir osx-arm64
which seems to do the trick but I don't want to have to keep doing this. Is there a quick way to fix this installation mistake? Or do I have to uninstall conda as a whole (losing all environments in the process) and reinstalling the correct version from their website?
Checklist
Impacted product
What happened?
In conda environment conda issues the following error: Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.
It happens when the script is loading the unittest tests. It seems like conda is not able to run Rosetta?
Expected behavior or outcome
The tests should run without MKL warnings
Conda info
Conda config
Conda list
Additional information
I redacted any sensitive info in the paths, however just assume that the installation was defaulted. The issue only arose very recently