Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pjrt_c_api_cpu_plugin - MacOS amd and arm64 compilation #19152

Open
dmarro89 opened this issue Nov 7, 2024 · 1 comment
Open

pjrt_c_api_cpu_plugin - MacOS amd and arm64 compilation #19152

dmarro89 opened this issue Nov 7, 2024 · 1 comment

Comments

@dmarro89
Copy link

dmarro89 commented Nov 7, 2024

Hi,
I'm trying to compile on macOS amd and arm64 the plugin pjrt_c_api_cpu_plugin.so.
The build succeeds but when I try to use it in gopjrt I'm getting a segmentation violation error.

What I've done:
On the xla project :

  • ./configure.py --backend CPU --os DARWIN
  • bazel build //xla/pjrt/c:pjrt_c_api_cpu_plugin.so

Then I've just tried to run the gopjrt tests and they are showing me the error.

If I use the JAX metal plugin -> pjrt_plugin_metal_14.dylib the project is working fine.

Someone has already compiled and used the plugin on macOS?

Thanks

@dmarr0
Copy link

dmarr0 commented Nov 8, 2024

Just to add more context.
I have run run :
bazel test //xla/pjrt/c:pjrt_c_api_cpu_test

And I got one error. Here's the log.
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //xla/pjrt/c:pjrt_c_api_cpu_test
dyld[88604]: symbol not found in flat namespace '___xla_cpu_runtime_EigenSingleThreadedMatMulC128'
external/bazel_tools/tools/test/test-setup.sh: line 353: 88609 Killed: 9 sleep 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants