-
Notifications
You must be signed in to change notification settings - Fork 0
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
Decoupling FF #4
Comments
So it seems that to move forward we need a version of FF that:
* Builds with modern `gfortran`
* Is hosted in a standalone repository
* Builds a dynamically linked library
* Can be used in LoopTools and the Fortran QCDLoop
I'm tempted to try to take the version of FF in QCDLoop, put it in a GitHub repository (under MIT), get it up on conda-forge and try to go from there until I realize that I've messed something up.
Thoughts in general @chrisburr @henryiii?
There are (at least) 2-3 fixes in the FF version of LoopTools w.r.t. that of QCDLoop,
that is, not just compiler quirks but places where the numerical output of a function
is actually different.
I leave it up to you to distribute whatever version of FF you wish but if you plan
to rewire the FF functions inside LoopTools the resulting package must not be
called LoopTools.
Best Wishes,
Thomas
|
@t-hahn can you elaborate, or give context on how your revision of the FF source code structure works? Given what you've said here, it seems that the concept of FF doesn't really make sense anymore (beyond the existing original library that doesn't compile as is on modern Fortran). There's LoopTools-FF and QCDLoop-FF, but as you've both diverged, and neither provide public version controlled source code it doesn't seem like there is an obvious "FF" at the moment.
I'm not really sure what you mean by "rewire". Do you use (LoopTools-)FF as a library or not? |
Maybe it is best to lean into this and just make sure that the two "FF" libraries get placed under different
@t-hahn as you mentioned in email
to double check, do you view patching LoopTools to produce share libraries as "rewiring"? |
Oh, I guess that's not relevant for the statically linked version of LoopTools as it just produces a single library |
> There are (at least) 2-3 fixes in the FF version of LoopTools w.r.t. that of QCDLoop, that is, not just compiler quirks but places where the numerical output of a function is actually different.
@t-hahn can you elaborate, or give context on how your revision of the FF source code structure works?
I'd have to dig up details from somewhere deep down my mail folders,
but over the years I received various bug reports that led to fixes
in the FF routines contained in LoopTools.
to double check, do you view patching LoopTools to produce share libraries as "rewiring"?
My impression this morning was...
I'm tempted to try to take the version of FF in QCDLoop, put it in a GitHub repository (under MIT),
get it up on conda-forge and try to go from there until I realize that I've messed something up.
... that you were about to refactor QCDLoop's FF into a separate package
and then replace the calls inside LoopTools to its own FF routines by
calls to that package.
While you can perfectly do so within the licensing terms, I would ask
you to rename the package then so I can point folks complaining about
inconsistent results to you instead of going through the debugging again.
Maybe it is best to lean into this and just make sure that the two "FF" libraries get placed
under different `lib/<package name>` directories so that when they both get installed there
won't ever be a collision.
There is no file-level name collision that I can see, for LoopTools
builds a single library libooptools.a.
API-wise LoopTools implements a rudimentary name mangling through the
preprocessor (src/include/externals.h and src/tools/mkexternalsh).
The effect of this is that a routine 'ffinit' ends up at object level
as 'ljffinit' (lj being a combination of letters similar to lt but
unlikely used elsewhere intentionally).
|
Sure. I think that sounds like a lot of work on your side, so if it isn't something that's "in cache" for you then I would suggest ignoring this.
No. Sorry for the miscommunication. The idea was that as
that I could take QCDLoop-FF and get that on conda-forge as "a version" as the diff between QCDLoop's FF and the 1998 release of FF is small, and so that's something that would be more immediately understandable than trying to figure out how to move from QCDLoop-FF to LoopTools-FF as there's quite a gap there. I was not suggesting that I would take QCDloop-FF, attempt to rip out LoopTools-FF, and then package that all up and call it "LoopTools". That would be really bad (not to mention I doubt that would even work).
Yeah, there is zero point in doing packaging work to create yet more divergences between things. It would be nice if someday there could be a FF on GitHub that both QCDLoop and LoopTools agreed worked and they could both use it as a submodule so that there was a clear source of truth, but I also appreciate that sounds like a lot of work and that unless someone gets funding to pay for a student to do this it will never happen (in any near term).
Yup. I realized this a little bit after posting (I had my mental model of how LoopTools and QCDLoop do things flipped): #4 (comment) Given that you do this and so FF and LoopTools exist collectively in the static library, I've started the process of packaging LoopTools as is on conda-forge: conda-forge/staged-recipes#28292 as there's some workarounds for libraries that are static only. If you have any comments before merge, they're welcome, but after that PR gets merged the "feedstock" https://github.com/conda-forge/looptools-feedstock/ will be generated, which is where the packaging scripts to generate and distribute things live, and so things can always get addressed there too. |
FF seems to be a problem in terms of actually packaging things in a way that makes sense when it comes to conda-forge.
The source for FF is distributed on https://www.nikhef.nl/~form/maindir/others/ff/ff.html, but as I have very little faith that unmaintained websites will work forever I'm also attaching a version of it here:
ff.tar.gz
FF has some problems:
1.0
but there's no version information elsewhere beyond theREADME
with a final entry of 1998-10-01, so maybe FF should be treated as CalVer?)running
results in lots of warnings and then fails with
However, it gets more complicated as it seems that almost every theory tool vendors their own different version of FF.
For example, LoopTools (also currently without immutable distributions, so
LoopTools-2.16.tar.gz
) vendors a version of FF that seems to be arranged quite differently in source file content from what the original FF source hasand (LoopTools author) Thomas Hahn (@t-hahn) mentions in email:
It is worth noting that LoopTools has a license of GNU GPL v3.
Similarly, the Fortran version of QCDLoop (
QCDLoop-1.98.tar.gz
) also vendors a version of FF (with an entry in the README from 2003-09-08) though the QCDLoop README notesThis does build, but it builds a statically linked library. QCDLoop is also unlicensed software.
So it seems that to move forward we need a version of FF that:
gfortran
I'm tempted to try to take the version of FF in QCDLoop, put it in a GitHub repository (
under MIT), get it up on conda-forge and try to go from there until I realize that I've messed something up.Thoughts in general @chrisburr @henryiii?
The text was updated successfully, but these errors were encountered: