필터 지우기
필터 지우기

Do python calls run native on M1?

조회 수: 3 (최근 30일)
Robert
Robert 2022년 3월 11일
답변: Vaibhav 2023년 12월 29일
Ok, so 2022a release still only runs via rosetta 2, no native support for m1 -- huge dissapointment. My question is, more to verify, if I call Python using in-process will it also run via rosetta? How about out-of-process calls?
Thanks

답변 (1개)

Vaibhav
Vaibhav 2023년 12월 29일
Hi Robert
In case of MATLAB R2022a, when calling Python in-process from MATLAB, it operates within the MATLAB process. As MATLAB is under Rosetta 2, the Python code also executes under Rosetta 2.
And when calling Python out-of-process, it initiates a separate Python process. This process can run natively on M1 hardware on ensuring compatibility of python libraries for ARM execution.
Beginning with the MATLAB R2023b release, MATLAB offers native support for Apple Silicon.
You can refer to the following MathWorks documentation links to know more about directly calling python functionality from MATLAB and out of process execution:
You can refer to the following MathWorks documentation link to know more about versions of python compatible with MATLAB products by release:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by