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

Annoying new warning in terminal #341

Closed
jakobnissen opened this issue Jul 17, 2024 · 2 comments
Closed

Annoying new warning in terminal #341

jakobnissen opened this issue Jul 17, 2024 · 2 comments

Comments

@jakobnissen
Copy link
Member

When launching new versions of Vamb, this warning appears:

/home/jakni/miniconda3/envs/recluster/lib/python3.12/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
/home/jakni/miniconda3/envs/recluster/lib/python3.12/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  return self._float_to_str(self.smallest_subnormal)
/home/jakni/miniconda3/envs/recluster/lib/python3.12/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
/home/jakni/miniconda3/envs/recluster/lib/python3.12/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  return self._float_to_str(self.smallest_subnormal)

As far as I can tell from googling around this happens because

  • Some library loaded by Vamb is compiled with -ffast-math
  • The -ffast-math option toggles the FTZ and DAZ flags in the CPU for the duration the library is running. These flags modify the behaviour of floating point ops, for all libraries in the same process.
  • This may cause incorrect computation

The solution is to figure out which library does this and remove/upgrade/downgrade it.

@jakobnissen
Copy link
Member Author

jakobnissen commented Jul 19, 2024

This is due to pyhmmer, which is currently version 0.10.12

@jakobnissen
Copy link
Member Author

Closed by a temporary fix in #357

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

No branches or pull requests

1 participant