_dl.*.so is an x86_64 binary in an arm64 pytorch installation #84351
Labels
high priority
module: build
Build system issues
module: m1
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃悰 Describe the bug
This appears to be an issue with pytorch which surfaces when trying to compile pytorch programs using nuitka (see Nuitka/Nuitka#1774) on macOS 12.4 with arm64 hardware.
I have a perfectly functional arm64 pytorch install, but it contains an x86 binary called
_dl.cpython-310-darwin.so
. nuitka chokes on this. it is possible to trigger an error directly withpython -c "import torch._dl"
, though this has not been a problem for normal use of pytorch nor for linking C++ programs against the same pytorch install.using python, pytorch and nuitka installed into a conda environment using mamba:
what is
_dl.cpython-310-darwin.so
and what is it doing there?Versions
Collecting environment information...
PyTorch version: 1.12.1
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: macOS 12.4 (arm64)
GCC version: Could not collect
Clang version: 13.0.1
CMake version: version 3.23.2
Libc version: N/A
Python version: 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:38:29) [Clang 13.0.1 ] (64-bit runtime)
Python platform: macOS-12.4-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] torch==1.12.1
[conda] pytorch 1.12.1 py3.10_0 pytorch
cc @ezyang @gchanan @zou3519 @malfet @seemethere
The text was updated successfully, but these errors were encountered: