PRUNERS / FLiT

A project to quickly detect discrepancies in floating point computation across hardware, compilers, libraries and software.
Other
36 stars 6 forks source link

Convert FLiT into a python module #317

Open mikebentley15 opened 4 years ago

mikebentley15 commented 4 years ago

Feature Request

Describe the new feature: What if we could install FLiT as a python module? Think of something like

pip install flit

It would still install the flit command-line tool, but also have some stuff available from python. For example, what if you could do this:

from flit import bisect

bisect.main(['--precision=double', 'g++ -O3 -mfma', 'MyTest'])

We could maybe make things easier such as having a function you could call from the library that would return the bisect results in a nice structure you could manipulate and query. If we were to make more changes like that, I would recommend posting a new issue for those improvements.

Suggested change: