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

Illegal instruction error #3

Closed
EdHarry opened this issue Sep 4, 2019 · 26 comments
Closed

Illegal instruction error #3

EdHarry opened this issue Sep 4, 2019 · 26 comments
Labels
enhancement New feature or request

Comments

@EdHarry
Copy link

EdHarry commented Sep 4, 2019

Reopening previous issue here

isovic/racon#119

Seems to happen on AMD cpus only, at least from my experience.

@rvaser
Copy link
Collaborator

rvaser commented Sep 4, 2019

Hi Ed,
we are using Intel SIMD instructions (packages SSE4.1 and above) which if are not supported on machines different from the machine you compiled the code on will cause the error you got. If you compile on a machine without support, the code will fall back to unvectorized algorithms which will be slower. If you have a cluster with mismatching CPUs, try picking nodes that are compatible with each other.

Best regards,
Robert

@EdHarry
Copy link
Author

EdHarry commented Sep 4, 2019 via email

@oneillkza
Copy link

I'm seeing this same error with a Bioconda-installed racon on an Intel I7-3770.

It runs without error on a Xeon E7-8867 v4 server, using the same installation/binaries.

@rvaser
Copy link
Collaborator

rvaser commented Sep 24, 2019

Weird as I7-3770 should support SSE4.1. Maybe your libstdc++ is outdated? You can always try and compile from source.

@oneillkza
Copy link

Yeah could be a CentOS outdated-libraries thing. It is a bit weird, since both my workstation (the I7) and the server (the Xeon) are running CentOS 7. It's possible my workstation is just a bit out of date, though. I'll put in a request to get it updated and see if that helps.

@EdHarry
Copy link
Author

EdHarry commented Oct 1, 2019

I think I've found the problem, the spoa module you use has a cmake build option "spoa_optimize_for_native" that defaults to ON, that I think is overriding the CPP flags to set "-march=native". Turn that option off to get cross compilation working.

@rvaser
Copy link
Collaborator

rvaser commented Oct 2, 2019

The Bioconda recipe for racon adds -DCMAKE_CXX_FLAGS="-mno-avx2" to the compiler list (see here), which is propagated to Spoa where only the SSE4.1 part of the code is compiled. Does -march=native add some other flags that are problematic?

@EdHarry
Copy link
Author

EdHarry commented Oct 2, 2019 via email

@rvaser
Copy link
Collaborator

rvaser commented Oct 2, 2019

I'll see what I can do to sort this out.

@rvaser rvaser added the enhancement New feature or request label Oct 3, 2019
@MaestSi
Copy link

MaestSi commented Jan 21, 2020

Hi, are there any news regarding a working conda installation? I am able to run racon when compiling from source, but conda installation gives core dump error.
Thanks,
Simone

@rvaser
Copy link
Collaborator

rvaser commented Jan 22, 2020

Unfortunately, not yet.

@rvaser
Copy link
Collaborator

rvaser commented Mar 8, 2020

@EdHarry and @MaestSi, can you please try version v1.4.11 from bioconda? I have replaced -march=native with -msse4.1 in Spoa and propagated that to Racon.

I am really sorry for the delay!
Best regards,
Robert

@EdHarry
Copy link
Author

EdHarry commented Mar 8, 2020 via email

@MaestSi
Copy link

MaestSi commented Mar 8, 2020

Hi, I just tried racon v1.4.11 from bioconda, but the issue persists. I tested it on the same machine where I previously tested spoa, but differently to spoa the issue is not solved for racon yet.

@rvaser
Copy link
Collaborator

rvaser commented Mar 8, 2020

Does racon --version give you 1.4.11? I do not see it yet on https://bioconda.github.io/recipes/racon/README.html.

@EdHarry
Copy link
Author

EdHarry commented Mar 8, 2020 via email

@MaestSi
Copy link

MaestSi commented Mar 8, 2020

Yes, it looks like.

conda list | grep racon
racon                     1.4.11               he513fc3_0    bioconda

@rvaser
Copy link
Collaborator

rvaser commented Mar 8, 2020

Hmmm, no idea why :/

@EdHarry
Copy link
Author

EdHarry commented Mar 10, 2020 via email

@rvaser
Copy link
Collaborator

rvaser commented Mar 10, 2020

@EdHarry, can you please try if spoa is working on your machine? It is in bioconda as well.

@EdHarry
Copy link
Author

EdHarry commented Mar 12, 2020 via email

@rvaser
Copy link
Collaborator

rvaser commented Mar 13, 2020

Hmm, maybe something else is the problem in racon executable. I'll try to find out.

@rvaser
Copy link
Collaborator

rvaser commented Mar 19, 2020

@MaestSi and @EdHarry, can you please try if racon v1.4.12 from bioconda works now?

@MaestSi
Copy link

MaestSi commented Mar 20, 2020

Hi @rvaser , conda installation for racon v1.4.12 is now working for me!
Thanks,
Simone

@EdHarry
Copy link
Author

EdHarry commented Mar 20, 2020 via email

@rvaser
Copy link
Collaborator

rvaser commented Mar 20, 2020

Finally! I found -march=native flag in the thread_pool submodule which was there for no reason. Glad that it works now for everyone :)

@rvaser rvaser closed this as completed Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants