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

import torch fails on P8 #83

Open
cdeepali opened this issue Mar 15, 2022 · 2 comments
Open

import torch fails on P8 #83

cdeepali opened this issue Mar 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@cdeepali
Copy link
Contributor

import torch fails on P8:

# python
Python 3.8.12 (default, Oct 12 2021, 13:02:29) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
torch.Illegal instruction (core dumped)
@cdeepali cdeepali added the bug Something isn't working label Mar 15, 2022
@cdeepali
Copy link
Contributor Author

cdeepali commented Mar 15, 2022

We are not able to import pytorch from OpenCE successfully on P8 from v1.8 onwards (if it has been built on P9), because at https://github.com/pytorch/pytorch/blob/master/cmake/Modules/FindVSX.cmake#L11 the mcpu value is taken from the platform.
Thus if package is built on power9, mcpu=power9 is used.

@cdeepali
Copy link
Contributor Author

Building PyTorch recipe on P8 will not lead to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant