Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sergio_r_
Novice
306 Views

Does Intel Python runs on AMD Opteron Processor?

 

Intel Python distribution was successfully installed on a machine operating with an AMD Opteron Processor  running under Ubuntu 16.04. The Intel Python crash when importing numpy as shown below:

aeternam@salva:~$ python
Python 3.6.2 |Intel Corporation| (default, Aug 15 2017, 16:14:26) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
Intel(R) Distribution for Python is brought to you by Intel Corporation.
Please check out: https://software.intel.com/en-us/python-distribution
>>> import numpy
Illegal instruction (core dumped)
aeternam@salva:~$ 

 

So, I am wondering whther Intel Python works on Opteron processors?

Regards,

Sergio
Enhance your #MachineLearning and #BigData skills via #Python #SciPy
1) https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy...
2) https://www.packtpub.com/big-data-and-business-intelligence/learning-scipy-numerical-and-scientific-...

 

0 Kudos
6 Replies
Robert_C_Intel
Employee
306 Views

The problem is most likely some unexpected combination of supported ISA. Please try

 

gdb python

run

import numpy

And do "x/i $pc" when it crashes and show us the output.  Also the output of 'cat /proc/cpuinfo'

sergio_r_
Novice
306 Views

 

Hi Robert,

gdb is not being helpful. The output I am getting is not related to the intel python installed in the system (see below).

In case it helps, I am also attaching the file intel_python_dump.txt with the output from strace python.

aeternam@salva:~$ gdb python
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...done.
(gdb) import sys
Undefined command: "import".  Try "help".
(gdb) python
>import sys
>print(sys.version)
>import numpy
>quit()
>3.5.2 (default, Sep 14 2017, 22:51:06) 
[GCC 5.4.0 20160609]
Traceback (most recent call last):
  File "<string>", line 3, in <module>
ImportError: No module named 'numpy'
Error while executing Python code.
(gdb) qit
Undefined command: "qit".  Try "help".
(gdb) quit

 

Sergio

Enhance your #MachineLearning and #BigData skills via #Python #SciPy
1) https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy...
2) https://www.packtpub.com/big-data-and-business-intelligence/learning-scipy-numerical-and-scientific-...

 

Robert_C_Intel
Employee
306 Views

After you type 'gdb python', you have to type 'run' to start python, then you can 'import numpy' to see the error

 

(root) rscohn1@fxsatlin01$ gdb python
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...done.
(gdb) run
Starting program: /localdisk/work/rscohn1/miniconda3/bin/python
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul  2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

 

sergio_r_
Novice
306 Views

 

Hi Robert, sorry for this delay in responding. The gdb output is as follows:

 

aeternam@panita:~$ gdb python
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...done.
(gdb) run
Starting program: /home/aeternam/myProg/Intel_Python_2018_0018/intelpython3/bin/python 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Python 3.6.2 |Intel Corporation| (default, Aug 15 2017, 16:14:26) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
Intel(R) Distribution for Python is brought to you by Intel Corporation.
Please check out: https://software.intel.com/en-us/python-distribution
>>> import numpy

Program received signal SIGILL, Illegal instruction.
0x00007ffff2d6af38 in __intel_sse4_strlen ()
   from /home/aeternam/myProg/Intel_Python_2018_0018/intelpython3/lib/python3.6/site-packages/numpy/core/../../../../libintlc.so.5
(gdb) exit
Undefined command: "exit".  Try "help".
(gdb) quit
A debugging session is active.

	Inferior 1 [process 3554] will be killed.

Quit anyway? (y or n) y
aeternam@panita:~$

Hope this helps to resolve the issue.

Sergio
Enhance your #MachineLearning and #BigData skills via #Python #SciPy
1) https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy...
2) https://www.packtpub.com/big-data-and-business-intelligence/learning-scipy-numerical-and-scientific-...

 

Robert_C_Intel
Employee
306 Views

Hi Sergio,

Intel Python requires a CPU that has SSE 4.2 instruction support. You can check if your linux system has it by doing:

cat /proc/cpuinfo | grep sse4_2

Opteron processors from ~ 2012 have it: https://en.wikipedia.org/wiki/List_of_AMD_Opteron_microprocessors

Robert

 

sergio_r_
Novice
306 Views

 

Thanks Robert. That seems to be the problem. The opteron I am using for this project only has sse and sse2. Fortunately the Python Anaconda distribution works fine in such processor.

salut,

Sergio
Enhance your #MachineLearning and #BigData skills via #Python #SciPy
1) https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy...
2) https://www.packtpub.com/big-data-and-business-intelligence/learning-scipy-numerical-and-scientific-...

 

Reply