Repository navigation
[INTERNAL,API] Removal of the GSL - #651
Conversation
|
Hi Christian It seems that in your diff quite a few files are removed, for example SILACAnalyzer.C and a few others. Is this intentional or a VCS-accident? If intentional, what is the reason behind this? It seems that it removes at least the functionality of two TOPP Tools, SILACAnalyzer and FeatureFinderRaw - why is that? Is there a top-level decision to delete these tools, in my understanding they provided functionality that could be found elsewhere in OpenMS (SILAC analysis and Feature finding on raw data). Also I am pretty sure that the yaml file should not have been deleted here since there is zero connection to the GSL with the yaml file. It seems to be coming from this commit: mcmenace@f63efd2 Hannes |
|
I also some more comments on individual comments mcmenace@eb46a68 and mcmenace@77e2528 look highly dangerous to me, in the MSNumpress.C area. Even if the changes are only temporary, these changes do seem to break the whole encoding scheme. You conveniently also changed the tests but the output data is completely different and most likely corrupt, thus breaking the whole encoding schema. Can you maybe rebase and squash those two commits together if they are indeed a revert of each other - these types of things make me nervous? mcmenace@7e35ca1 removing "gsl" from the sentence makes the sentence meaningless because the subject is missing mcmenace@d41e570 I would prefer to not have in this patchset since it is unrelated mcmenace@eb46a68 I cant really see the point of especially since nl and nr are ints mcmenace@1d18895 this changes the testcase from which seems quite a dramatic shift. Is this expected that there are shifts in RT of 8 seconds? mcmenace@df10bc6 I dont understand this patch with the commit message - there are only changes in the comments and I am not sure whether this should even be part of this branch? |
|
Hi Christian, I also wonder why SILACAnalyzer/FeatureFinderRaw and the dependencies are scheduled for removal. Once the GitHub migration is finished I will continue to work on the algorithms. Lars |
|
Hi, |
|
Hi Hannes, first of all thank for the intensive check of the pull request. the Regards On Thu, 2014-01-16 at 13:36 -0800, Hannes Roest wrote:
|
|
Hi Hannes On Thu, 2014-01-16 at 14:06 -0800, Hannes Roest wrote:
eb46a68 for sure breaks MSNumpress. Revert commit is provided in
Will adapt that.
Will remove that since it is present in your latest pull request.
Thanks again for spending some time (according to you emails) on Regards |
|
Hi Lars, Stephan will contact you on how we handle the Regards On Thu, 2014-01-16 at 23:24 -0800, Lars Nilse wrote:
|
|
I just had a quick discussion with Lars regarding the SILAC stuff. He agreed that we remove everything from HEAD as he will (in near future) come up with a complete rewrite of the whole SILACAnalyzer. |
|
Hi Timo, I have contacted Erhan. Thanks On Fri, 2014-01-17 at 00:50 -0800, timosachsenberg wrote:
|
|
As Stephan said, I will rewrite the SILAC algorithm (port an existing Java implementation). So there is no point in fixing the GSL stuff and the old code plus dependencies can go. By 1.12 we can work with the new implementation. |
|
Hi Christian Since I did not write the Numpress code I also have some trouble with it, it is this stores the actual data in a 4 byte representation by multiplying it with a Concerning the casting: I would first talk to Johan who wrote the library (we |
|
Hi Hannes,
Correct. it should stay int. I will change it.
The commit changes the Splines and a 100% replacement of all the Splines present in GSL was not possible. In addition, the Eigen/Wm5 Splines behave numerically slightly different from the GSL splines. The values in source/TEST/TOPP/MapAlignerIdentification_1_output2.featureXML are mostly close to the original. In the above case I have no way to assert if 48.01 or 40.62 is more or less correct. I think the 48.01 was generated with the GSL code and I doubt that somebody checked the values by hand. So the 40.62 is as correct/incorrect as 48.01. If the reference file was generated by the OpenMS algorithm with GSL and the values are not checked by hand the test just fixes the current behaviour no matter if this behaviour is correct or incorrect. So all we see is that the behaviour changed but we do not know if the result improved or became worst. I would propose to leave the test file changed since it fixes the behaviour of the current implementation. I am also open to alternatives.
I will adapt the commit message. Christian |
|
Hi Hannes
yes. Casting to char instead of unsigned char was a misstake but fixing Christian |
|
Hi Christian I think I managed to remove all compiler warnings in the MSNumpress code. I have created a pull request for Johan here ms-numpress/ms-numpress#6 Cheers Hannes |
|
Closed the pull request until all suggestions are incorporated. Also noticed that pyOpenMS is not working. Will fix that too. |
There was a problem hiding this comment.
Koennte man hier nicht auch der Konvention folgen und sowas wie
#include <wm/Wm5Vector2.h>
schreiben?
|
Hi Christian One more question, it seems that in your current develop branch the GLPK is still included I assume that for your purposes this will also not be acceptable, is there a plan to remove this in the future? |
|
I think for GLPK we only have to switch to COIN as default and give the option to disable GLPK, as we only want to give the possibility to compile without GPL code. |
|
Hi I have now just tried to build it on my Ubuntu 12.04 system and using as many i) using eigen3 from the system on this system is not possible because include/eigen3/unsupported/Eigen/Splines is missing from my system, even though it is present in debain Wheezy http://packages.debian.org/de/wheezy/amd64/libeigen3-dev/filelist jessie http://packages.debian.org/de/jessie/libeigen3-dev and sid, it seems to be absent from ubuntu http://packages.ubuntu.com/precise/all/libeigen3-dev/filelist - for some reason it is present in the quantal release http://packages.ubuntu.com/quantal/i386/libeigen3-dev/filelist ii) boost/random/uniform_int_distribution.hpp apparently some of those headers were added in boost 1.47 and we currently support boost 1.42, see also http://stackoverflow.com/questions/8881804/boost-c-and-fatal-error-boost-random-uniform-int-distribution-hpp-no-such-f is there some way to work around this issue? iii) Also it seems that boost has moved several things into the boost::random namespace that were not there before. The follwoing caused issues on my machine
To get it working and compile some library, I had to make some adjustments and comment out some code. See my dirty patchset here hroest@cba3185 Finally, after I got a library compiled, also I had some issues with pyOpenMS. -I/home/hr/openmsall/contrib_builds/contrib/include/WildMagic/ also the SILACAnalyzer.pxd files would have to be removed for this to work, in but pyOpenMS is still not compiling, quite a few things do not seem to work:
note that every change in API or class members needs to be accompanied with a |
|
Hi Hannes, I am currently working on pyOpenMS and managed to include Eigen and Wm5. Regards On Wed, 2014-01-29 at 05:20 -0800, Hannes Roest wrote:
|
|
Hi i) There might be a way around splines from Eigen using splines from ii) Is it a problem to update the boost version, require a recent boost iii) Would also be solved with a boost update. A general question: is the way we provide python bindings the only Regards On Wed, 2014-01-29 at 05:20 -0800, Hannes Roest wrote:
|
|
Hi Christian i) well this is an Ubuntu specific issue and can be solved with compiling Eigen ii) this is an issue of backward compatibility and there are many systems where iii) same as above PyOpenMS: yes, you can try to generate the bindings yourself but it is quite a however there is no fully automated tool yet but if you know one, you are Also, an API by definition is in general something that is exposed to the |
|
Hallo Hannes, ii) I see your point on backward compatibility and will have a look at "As of OpenMS 1.10 compiling OpenMS with the Apple GCC 4.2 compiler can Supporting boost 1.42 compatibility will most likely be a problem. Is iii) see above ;) Regards |
|
yes 1.52 is in the contrib however with 1.10 we also made efforts to be able to use the current system libraries which implies that we cannot simply assume a specific version of boost to be present. Interestingly, OpenMS is almost able to compile even with boost 1.40, see https://github.com/hroest/OpenMS/commits/feature/supportOldLibs for some minor modifications I had to make to get it running with older libs. So to me it makes more sense wherever possible to not break backwards compatibility - at least not without a good reason. The apply gcc problem could most likely also be resolved with an older boost version and OpenMS being boost 1.40 compatible. As mentioned above, the rest of OpenMS is boost 1.40 compatible except 2 lines of code. |
|
Hi Hannes, first of all thanks for checking the boost version OpenMS is still Regards On Wed, 2014-01-29 at 15:43 -0800, Hannes Roest wrote:
|
|
I think the wiki is a good place to document this as every developer should start there. |
|
i) We stick with Eigen splines. ii) I can get around all issues except for discrete_distribution<Size, double> ddist (weights.begin(), If anyone knows a way around using discrete_distribution from boost
iii) boost::random::mt19937_64 was introduced in 1.47. I could change If boost >1.47 is good for everybody I will reopen the pull-request. On Wed, 2014-01-29 at 05:20 -0800, Hannes Roest wrote:
|
|
any opinions? |
|
Hi, for me boost >= 1.49 is ok but I have no strong opinion on this |
|
Does it build for VS2013? There is also at least one SP 2013 out. timosachsenberg [email protected] schrieb:
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. |
|
I didn't want.to hold you up, I thought that with my last.comment things H sent from my smartphone -- you may keep any typos you find.
|
|
I don't have 2013 installed. Anyone? |
|
@hannes: Ok. Was not sure if you are all through. |
VS 2013 (fresh install) works. |
VS 2013.1 also works. Seems to be 2012 only. @timosachsenberg We could try to integrate this as patch into the contrib build process. |
|
The change in current Eigen development version did not work on my VS configuration. changing EigenDetermineVSServicePack.cmake to: works on my system but I don't know how this affects other service packs. If you could test this we could create a patch that works for all versions. |
|
I added a branch to the contrib repo (https://github.com/OpenMS/contrib/tree/eigen-vs-fix) that applies the above fix while building/installing eigen. I tested it using VS 2013. Could anyone with the affected VS version also test if this works now. If so I will merge the branch into the contrib master. |
|
clicked the wrong button. Anyone still having problems with VS builds? |
|
Only will have time to test this next week |
|
@timosachsenberg Can you confirm that the new contrib works? If so I can merge it into master. I also opened a corresponding ticket in the contrib repo OpenMS/contrib#2 |
|
works with patch |
|
;) Will do! |
|
Merged with current develop. All unit test working on Win64, MacOS, Linux. Ready to merge! |
|
travis error is unrelated; |
|
yes and somebody (Stephan?) needs to change the nightly build infrastructure :-) could you set it up such that GSL + Wildmagic + Eigen is there so that no library is missing (if you havent done so already)? Also I am in contact with debian and we hope that wildmagic will be packaged in debian at some point in the future - this is necessary to have a nice and clean 1.12 relase in debian. |
|
Since there are no debian packages for wildmagic (yet), how well does travis work - do we just download wildmagic and build it from scratch first? At least this is what it looks like to me If so, how long does this take more or less? |
|
Should be faster or comparable to the GSL build which we did before. |
Conflicts: src/openms/source/TRANSFORMATIONS/RAW2PEAK/OptimizePick.cpp
[INTERNAL,API,FEATURE] removal of the GSL
Pull request to include the removal of all GSL code in OpenMS.
Linux64: AccurateMassSearchEngine_test (file missing)
Linux32: AccurateMassSearchEngine_test, TOPP_OpenSwathWorkflow_1_out1 (numerical), TOPP_PeakPickerWavelet_3_out1 (numerical)
MacOS: AccurateMassSearchEngine_test, TOPPView_test (X missing), TwoDOptimization_test (numerical)
Win64: AccurateMassSearchEngine_test
file missing - the test needs a file that was removed when the repos was split
X missing: no X installed on the test system
numerical: unit test see significant numerical differences in some calculations (this needs to be checked)