macOS M1, Julia 1.6, and swtch_pri

Hi all,

Using a MacBook Air M1 and Julia 1.6.

I’m running a fairly complex scientific code that does a ton of matrix vector calculations. When I profile it and display the results using PProf, it shows that approximately 80% of the time is spent in the Mach system call swtch_pri. This does not show up when I do a Profile.print().

I’m confused. I’m not doing any explicit threading, although I am doing a lot of vectorized operations. Any idea if this is fixable, and if so how?

Not sure if related, but Julia started providing the native M1 support from version 1.7: Julia 1.7 Highlights.

1 Like