🐛 Bug
Currently, if I install from nightly using instructions from README.md, and try to run a simple test, I see "undefined symbol: _ZN5torch4lazy13MetricFnValueB5cxx11E" which has "cxx11" in it indicating that torch-xla nightly may have ABI cxx11 on by default:
(aws_neuron_venv_pytorch_pt26) ubuntu@ip-10-0-8-190:~$ python -c "import torch; import torch_xla; x=torch.ones((10,10), device='xla'); print(x*x)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ubuntu/aws_neuron_venv_pytorch_pt26/lib/python3.10/site-packages/torch_xla/__init__.py", line 20, in <module>
import _XLAC
ImportError: /home/ubuntu/aws_neuron_venv_pytorch_pt26/lib/python3.10/site-packages/_XLAC.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN5torch4lazy13MetricFnValueB5cxx11E
To Reproduce
Install nightly torch-xla together with torch using instructions from https://github.com/pytorch/xla/blob/master/README.md#installation.
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu
pip install 'torch_xla[tpu] @ https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.6.0.dev-cp310-cp310-linux_x86_64.whl' -f https://storage.googleapis.com/libtpu-releases/index.html
Then run
python -c "import torch; import torch_xla; x=torch.ones((10,10), device='xla'); print(x*x)"
Expected behavior
Since the default torch is still non-cxx11 version, it would be good to keep default to be non-cxx11.
Environment
- Reproducible on XLA backend [CPU/TPU/CUDA]: CPU/Neuron
- torch_xla version: 2.6
Additional context
🐛 Bug
Currently, if I install from nightly using instructions from README.md, and try to run a simple test, I see "undefined symbol: _ZN5torch4lazy13MetricFnValueB5cxx11E" which has "cxx11" in it indicating that torch-xla nightly may have ABI cxx11 on by default:
To Reproduce
Install nightly torch-xla together with torch using instructions from https://github.com/pytorch/xla/blob/master/README.md#installation.
Then run
Expected behavior
Since the default torch is still non-cxx11 version, it would be good to keep default to be non-cxx11.
Environment
Additional context