Skip to content

Conversation

@4arjun
Copy link

@4arjun 4arjun commented Aug 2, 2025

When building NumPy with Intel OneAPI 2024.2 using -fp-model=strict, the test TestRemainder.test_float_divmod_errors[d] fails because FloatingPointError is not raised for np.divmod(np.inf, np.inf).

This happens because the strict model suppresses certain floating-point exceptions expected by NumPy. Replacing it with -fp-model=precise restores the expected behavior.

This PR updates compilation flags to:

-fp-model=precise in CFLAGS, CXXFLAGS, and FFLAGS

This resolves issue #2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant