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

Some tests are skipped 'requires machine with SSE2 support' on the system which does have SSE2 #49

Closed
yurivict opened this issue Dec 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@yurivict
Copy link

test_score_connections_final (pyrodigal.tests.test_connection_scorer.TestConnectionScorerSSE) ... skipped 'requires machine with SSE2 support'
test_score_connections_train (pyrodigal.tests.test_connection_scorer.TestConnectionScorerSSE) ... skipped 'requires machine with SSE2 support'

The CPU is a regular Intel CPU: Intel(R) Core(TM) i7 CPU 930 @ 2.80GHz

Version: 3.2.1
Pythoion-3.9
FreeBSD 13.2

@yurivict yurivict changed the title Some tests are skipped ''requires machine with SSE2 support' on the system which does have SSE2 Some tests are skipped 'requires machine with SSE2 support' on the system which does have SSE2 Dec 20, 2023
@althonos
Copy link
Owner

althonos commented Jan 8, 2024

Hi @yurivict did you compile yourself or pip install the extension from PyPI? I guess this sounds like a problem related with CPU feature detection on FreeBSD...

Could you try running the following:

import pyrodigal

print("Build:", pyrodigal.lib._SSE2_BUILD_SUPPORT)
print("Runtime:", pyrodigal.lib._SSE2_RUNTIME_SUPPORT)

to check whether it's the runtime detection that fails or the SSE2 build?

@althonos althonos added the bug Something isn't working label Jan 8, 2024
@althonos
Copy link
Owner

I made a patch so that SSE2 is always turned on for x86-64 CPUs, since it's part of the AMD64 specification. The issue with runtime detection is probably coming from the archspec library, which is used to check CPU capabilities at runtime. Please open an issue report there if you identify problems on FreeBSD!

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

2 participants