open-ce / pytorch-feedstock

Apache License 2.0
5 stars 11 forks source link

import torch fails on P8 #83

Open cdeepali opened 2 years ago

cdeepali commented 2 years ago

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 commented 2 years ago

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 mcpuvalue is taken from the platform. Thus if package is built on power9, mcpu=power9 is used.

cdeepali commented 2 years ago

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