<div dir="ltr">Hi Tom, ChimeraX team,<div><br></div><div>What is the status of ChimeraX on Apple M1/Silicon machines? Does it work? Well? Natively?</div><div><br></div><div>Cheers,</div><div>Alexis</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 22, 2021 at 11:11 AM Jeffrey D. Hartgerink <<a href="mailto:jdh@rice.edu">jdh@rice.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Tom,<div><br></div><div>Thank you for this detailed response! It illustrated the challenges well and was very useful. In particular, I was unaware of the all-or-nothing nature of Rosetta.</div><div><br></div><div>I’ve recently acquired an arm based Mac mini and would be happy to test any early builds if that would be useful.</div><div><br></div><div>-Jeff</div><div><br></div><div><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="overflow-wrap: break-word;"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">--------------------------------------<br>Jeffrey D. Hartgerink, Ph.D.<br>Prof. of Chemistry and Bioengineering</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Rice University, MS 602<br>6100 Main Street<br>Houston, TX 77005<br><a href="mailto:jdh@rice.edu" target="_blank">jdh@rice.edu</a> / 713-348-4142</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://hartgerink.rice.edu" target="_blank">hartgerink.rice.edu</a></div></div></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>On Mar 22, 2021, at 12:58 PM, Tom Goddard <<a href="mailto:goddard@sonic.net" target="_blank">goddard@sonic.net</a>> wrote:</div><br><div><div style="overflow-wrap: break-word;">One more detail. Our lab is getting an Apple Silicon machine so we can attempt to make a native ChimeraX version.<div><br></div><div><span style="white-space:pre-wrap"> </span>Tom</div><div><br><div><br><blockquote type="cite"><div>On Mar 22, 2021, at 10:57 AM, Tom Goddard <<a href="mailto:goddard@sonic.net" target="_blank">goddard@sonic.net</a>> wrote:</div><br><div><div style="overflow-wrap: break-word;">In the future we would like to provide a native Apple Silicon (ARM CPU) version of ChimeraX. We have not tried it yet. It would be easy to compile the C++ code we develop for the new CPU. But the trouble is that ChimeraX depends on over 50 third party Python modules, some of them including compiled code. I believe all of those compiled python modules will have to be available compiled for ARM in order for us to make a native ChimeraX app. According to Apple's developer documentation you cannot mix ARM compiled code with Intel compiled dynamically loaded modules in the same process:<div><br></div><div>From <a href="https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment" target="_blank">https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment</a></div><div><div style="margin:0px;padding:0px;line-height:1.52947;font-weight:600;letter-spacing:-0.021em">Important</div><div style="margin:0.4em 0px 0px;padding:0px">The system prevents you from mixing <code style="font-size:1em;font-family:"SF Mono",Meno,monospace;letter-spacing:0px">arm64</code> code and <code style="font-size:1em;font-family:"SF Mono",Meno,monospace;letter-spacing:0px">x86_64</code> code in the same process. Rosetta translation applies to an entire process, including all code modules that the process loads dynamically.</div><div><br></div><div><br></div><div>Major packages we use like the Qt window toolkit and numpy array module provide native ARM versions. But less well maintained modules like the PyOpenGL-accelerate module ChimeraX uses for OpenGL graphics has not been updated for more than a year (Jan 2020) and there is no telling when an ARM version will become available.</div><div><br></div><div>The following GitHub repository (focused on neuroimaging) describes some of the availability problems from scientific packages on ARM CPUs.</div><div><br></div><div><span style="white-space:pre-wrap"> </span><a href="https://github.com/neurolabusc/AppleSiliconForNeuroimaging" target="_blank">https://github.com/neurolabusc/AppleSiliconForNeuroimaging</a></div><div><br></div><div> Tom</div><div><br></div><div><br><blockquote type="cite"><div>On Mar 21, 2021, at 7:40 PM, Jeffrey D. Hartgerink <<a href="mailto:jdh@rice.edu" target="_blank">jdh@rice.edu</a>> wrote:</div><br><div><div style="overflow-wrap: break-word;">Are there any plans for an Apple Silicon (M1 chip) native version of ChimeraX? While things work ok via the Rosetta emulator, it would be great to have the performance from a native app.<div><br></div><div>
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="overflow-wrap: break-word;"><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">--------------------------------------<br>Jeffrey D. Hartgerink, Ph.D.<br>Prof. of Chemistry and Bioengineering</div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Rice University, MS 602<br>6100 Main Street<br>Houston, TX 77005<br><a href="mailto:jdh@rice.edu" target="_blank">jdh@rice.edu</a> / 713-348-4142</div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://hartgerink.rice.edu/" target="_blank">hartgerink.rice.edu</a></div></div></div></div></div></div>
</div>
<br></div>_______________________________________________<br>ChimeraX-users mailing list<br><a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>Manage subscription:<br><a href="https://plato.cgl.ucsf.edu/mailman/listinfo/chimerax-users" target="_blank">https://plato.cgl.ucsf.edu/mailman/listinfo/chimerax-users</a><br></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div>_______________________________________________<br>
ChimeraX-users mailing list<br>
<a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>
Manage subscription:<br>
<a href="https://plato.cgl.ucsf.edu/mailman/listinfo/chimerax-users" rel="noreferrer" target="_blank">https://plato.cgl.ucsf.edu/mailman/listinfo/chimerax-users</a><br>
</blockquote></div>