DyNet could not be loaded! on Apple Silicon #396
-
Hi everyone! When trying to follow the walkthrough, I got the following error:
I tried both, executing the code locally with the cloned repository and using the docker image as mentioned. The way I was able to make it work was to specify the platform for Docker as:
Do you know of any way I can run the code on a newer Mac? Thanks for the help! Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The current version of odinson appears to depend on processors 8.4.6 which in turn depends on fatdynet 0.3.2. Hardware support for Apple silicon was not added to fatdynet until 0.4.4 which is used in processors 8.4.9 and above. So, one could try to update the procVersion in extra/build.sbt to 8.4.9 or higher (up to 8.5.4). However, older versions should run OK on a Mac with Apple silicon using Rosetta, which might have been automatically installed at some time. I'm not sure of the current situation there and one would want to check the local computer. It may be important to use an Intel version of the JVM in order to be able to access fatdynet compiled for Intel. So, there's a chance that a JVM change along with Rosetta can fix the problem. |
Beta Was this translation helpful? Give feedback.
The current version of odinson appears to depend on processors 8.4.6 which in turn depends on fatdynet 0.3.2. Hardware support for Apple silicon was not added to fatdynet until 0.4.4 which is used in processors 8.4.9 and above. So, one could try to update the procVersion in extra/build.sbt to 8.4.9 or higher (up to 8.5.4).
However, older versions should run OK on a Mac with Apple silicon using Rosetta, which might have been automatically installed at some time. I'm not sure of the current situation there and one would want to check the local computer. It may be important to use an Intel version of the JVM in order to be able to access fatdynet compiled for Intel. So, there's a chance that…