Comments (5)
Conclusion (The story ends here) SOLVED!
With many struggles and painful searching, the story periods at the junction where a hardware optimisation on Intel's Kernel Math Library was not optimised with AMD CPU for Mosek 9.0
I built the program finally with my Intel CPU on another device, while on my home setup: AMD® Ryzen 7 3700x 8-core processor × 16
the conflict remains.
TLDR: IRIS-DISTRO works on Intel CPU, not AMD CPU. Hence you need to install some compatibility and optimisation packages
SOLUTION
Why this happen?
https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/illegal-instruction-error-with-newer-AMD-CPU/td-p/1147393
AMD Package
install https://developer.amd.com/amd-aocl/
Intel Package
refer to this and add KML package to your ubuntu
https://github.com/eddelbuettel/mkl4deb
Add this to your bash
export MKL_DEBUG_CPU_TYPE=5
reboot and built this program
from iris-distro.
It seems that I forgot to export MKL_DEBUG_CPU_TYPE=5
after installing amd aocl package, anyway it works now. Thanks :)
from iris-distro.
I have tried to make with python3.7 the same error persist.
Here is the python debug:
I see it addressing to iris-distro/build/install/libmosek64.so
For some reasons, now I suspect is an CPU issue as I read into SIGILL fault
What is SIGILL?
The SIGILL signal is raised when an attempt is made to execute an invalid, privileged, or ill-formed instruction. SIGILL is usually caused by a program error that overlays code with data or by a call to a function that is not linked into the program load module.
After further digging into the problem. I have exported the core from running the python program and use gdb iris_wrapper.cpython-37m-x86_64-linux-gnu.so core
and I obtained this from my terminal.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `python -m irispy.test.test_iris_2d'.
Program terminated with signal SIGILL, Illegal instruction.
#0 0x00007f528b5eeb12 in mkl_blas_def_dgemm_kernel_bdz () from /home/gloven/supports/iris-distro/build/install/lib/libmosek64.so.7.1
[Current thread is 1 (Thread 0x7f52ba0ad740 (LWP 1645))]
So now I understand that this is a key issue with
mkl_blas_def_dgemm_kernel_bdz
from iris-distro.
Conclusion (The story ends here) SOLVED!
With many struggles and painful searching, the story periods at the junction where a hardware optimisation on Intel's Kernel Math Library was not optimised with AMD CPU for Mosek 9.0
I built the program finally with my Intel CPU on another device, while on my home setup:
AMD® Ryzen 7 3700x 8-core processor × 16
the conflict remains.TLDR: IRIS-DISTRO works on Intel CPU, not AMD CPU. Hence you need to install some compatibility and optimisation packages
SOLUTION
Why this happen? https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/illegal-instruction-error-with-newer-AMD-CPU/td-p/1147393 AMD Package install https://developer.amd.com/amd-aocl/ Intel Package refer to this and add KML package to your ubuntu https://github.com/eddelbuettel/mkl4deb
Add this to your bash export MKL_DEBUG_CPU_TYPE=5
reboot and built this program
Still have this fault after installed the amd-aocl package on my Ryzen Threadripper 3990X PC, can you please provide more detalis about this work-around? Thanks a lot !
from iris-distro.
If you are running the test python file and face such an error,
you may try using GDB program to debug the compiled .so file
gdb iris_wrapper.cpython-37m-x86_64-linux-gnu.so core
You may then read what is the actual issue with the compiled .so program.
It's quite a while back, I believe the above cmd line is what I used eventually to discover the issue with my compiled program.
from iris-distro.
Related Issues (20)
- cddlib download uses unreliable ftp server HOT 2
- Issues loading IRIS in director - cannot load any more module with static TLS HOT 4
- addpath_iris, rmpath_iris are gone HOT 4
- Invalid region returned when there are obstacles that exceed the bounds. HOT 2
- cddlib download blocked from UK
- /usr/bin/python: No module named iris_wrapper HOT 3
- irispy not found HOT 2
- could not find git for clone of mosek HOT 1
- Undefined reference errors while trying to run iris_demo.cpp
- Eigen library repository is not found HOT 1
- Error in the paper
- Error in the 3D case with thin triangle like obstacles
- IRIS in ROS package
- Unable to install cddlib HOT 1
- cannot import name 'types' from 'vkbottle'
- could not find git for clone of mosek HOT 2
- iris takes a lot cpu resources
- Mosek-src not found, no such repository
- Cannot compile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iris-distro.