Closed TV4Fun closed 3 years ago
Note: This also happens when running inside the Apple Silicon build of Unity Editor. The only way I'm able to train is to use the Intel build.
Trying to get this to work. The default gRPC Unity plugin doesn't include an Arm64 build, but I was able to make my own. The Unity editor and player isn't finding the native library to include with the app, but if I build a standalone and manually add the Apple Silicon dylib I built to it, then it works and has a pretty substantial performance improvement. If anyone can help me in getting the editor to find the right Arm64 file, I would greatly appreciate it.
cc: @surfnerd who might have some experience with Apple Silicon
I have a PR I am working on that adds the arm64 arch to the native plugin. It should be ready this week.
See #5283
Confirmed that this now works correctly with Unity Arm64 on the latest main branch, so closing this issue.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Describe the bug The standard checkout of ml-agents includes prebuilt OSX x64 libraries that can't be used by an Apple Silicon build. For example
com.unity.ml-agents/Plugins/ProtoBuffer/runtimes/osx/native/libgrpc_csharp_ext.x64.bundle
. This can cause some strange behavior if you're trying to train using a standalone executable on Apple Silicon.To Reproduce Steps to reproduce the behavior:
ml-agents
from GitHub and buildml-agents
build to a unity projectmlagents-learn --env=<PATH_TO_APP>
Console logs / stack traces Player-0.log:
Output of
mlagents-learn --env=Standalone.app --debug
:Environment (please complete the following information):
main
branch from source