Skip to content

[INTERNAL,API] Removal of the GSL - #651

Merged
aiche merged 32 commits into
OpenMS:developfrom
mcmenace:develop
Mar 25, 2014
Merged

aiche merged 32 commits into
OpenMS:developfrom
mcmenace:develop

Conversation

@mcmenace

Copy link
Copy Markdown

Pull request to include the removal of all GSL code in OpenMS.

  • GSL build modules are not removed so far
  • GSL ist not removed from the contrib repos
  • more than a few unit test needed adaption. this is due to the change in numerical calculations when changing libraries
  • some unit test still fail:
    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)
  • note: not every state of the commit-history compiles. it should be possible to extract [BUILD, FIX] commits

@hroest

hroest commented Jan 16, 2014

Copy link
Copy Markdown
Contributor

Hi Christian

It seems that in your diff quite a few files are removed, for example

SILACAnalyzer.C
pychecker_ignore.yaml

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

@hroest

hroest commented Jan 16, 2014

Copy link
Copy Markdown
Contributor

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

-      for (int i = -nl; i <= nr; i++)
+      for (double i = -nl; i <= nr; i++)

especially since nl and nr are ints

mcmenace@1d18895 this changes the testcase from

source/TEST/TOPP/MapAlignerIdentification_1_output2.featureXML --------
index 6379dfd..5a890d6 100644
@@ -17,109 +17,109 @@
  </IdentificationRun>
    <featureList count="8">
        <feature id="f_187541196702342456">
-     <position dim="0">48.0173811295049</position>
+     <position dim="0">40.6271186440678</position>

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?

@lars20070

Copy link
Copy Markdown
Contributor

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

@timosachsenberg

Copy link
Copy Markdown
Contributor

Hi,
Please discuss with Erhan the elution peak detection. I quickly skimmed over the ElutionPeakDetection_test.C and saw a comment that it has been changed from lowess to Savitzgy Golay.

@mcmenace

Copy link
Copy Markdown
Author

Hi Hannes,

first of all thank for the intensive check of the pull request. the
removal of pychecker.yaml was certainly not intended and I will modify
the pull-request accordantly. SILACAnalyzer and FeatureFinderRaw was
removed intentionally because the removal of the GSL code was not
possible with the low test coverage for SILACAnalyzer and
FeatureFinderRaw and it seemed that the two are more or less unused.
Since Lars wrote an email saying he is working on both, we are currently
looking for an alternative solution.

Regards
Christian

On Thu, 2014-01-16 at 13:36 -0800, Hannes Roest wrote:

Hi Christian

It seems that in your diff quite a few files are removed, for example

SILACAnalyzer.C
pychecker_ignore.yaml

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? Also I am pretty sure that the yaml
file should not have been deleted here.

It seems to be coming from this commit: mcmenace/OpenMS@f63efd2

Hannes

—
Reply to this email directly or view it on GitHub.

@mcmenace

Copy link
Copy Markdown
Author

Hi Hannes

On Thu, 2014-01-16 at 14:06 -0800, Hannes Roest wrote:

I also some more comments on individual comments

mcmenace/OpenMS@eb46a68 and mcmenace/OpenMS@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?

eb46a68 for sure breaks MSNumpress. Revert commit is provided in
77e2528. I will squash these two and make the modification disappear.
The reason why I touched MSNumpress (no GSL code here) are the Win64
warnings that are generated by the implicit casts. I tried to come up
with a proper casting scheme before I reverted the commit but it seems
difficult to explicitly reproduce what C++ is doing implicitly. Would be
nice if you can take a look at it so we lose the Win-warnings.

mcmenace/OpenMS@7e35ca1 removing "gsl" from the sentence makes the sentence
meaningless because the subject is missing

Will adapt that.

mcmenace/OpenMS@d41e570 I would prefer to not have in this patchset since it
is unrelated

Will remove that since it is present in your latest pull request.

—
Reply to this email directly or view it on GitHub.

Thanks again for spending some time (according to you emails) on
reviewing the pull request.

Regards
Christian

@mcmenace

Copy link
Copy Markdown
Author

Hi Lars,

Stephan will contact you on how we handle the
SILACAnalyzer/FeatureFinderRaw situation. From my reply to Hannes the
reasons for the removal should be clear. If you will work on theses two,
we must find a solution on getting rid of the GSL code while keeping
SILACAnalyzer/FeatureFinderRaw.

Regards
Christian

On Thu, 2014-01-16 at 23:24 -0800, Lars Nilse wrote:

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

—
Reply to this email directly or view it on GitHub.

@aiche

aiche commented Jan 17, 2014

Copy link
Copy Markdown
Contributor

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.

@mcmenace

Copy link
Copy Markdown
Author

Hi Timo,

I have contacted Erhan.

Thanks
Christian

On Fri, 2014-01-17 at 00:50 -0800, timosachsenberg wrote:

Hi,
Please discuss with Erhan the elution peak detection. I quickly
skimmed over the ElutionPeakDetection_test.C and saw a comment that it
has been changed from lowess to Savitzgy Golay.

—
Reply to this email directly or view it on GitHub.

@lars20070

Copy link
Copy Markdown
Contributor

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.

@hroest

hroest commented Jan 17, 2014

Copy link
Copy Markdown
Contributor

Hi Christian

Since I did not write the Numpress code I also have some trouble with it, it is
somewhat convoluted. The main issue seems to be that it juggles around numbers
and wants to store the individual bytes of certain numbers separately in an
array. Some of it maybe somewhat low-level, I agree:

  // const double *data, 
  unsigned long long ints[3];
  // ...
  ints[1] = data[0] * fixedPoint + 0.5;
  for (i=0; i<4; i++) {
    result[8+i] = (ints[1] >> (i*8)) & 0xff;
  }

this stores the actual data in a 4 byte representation by multiplying it with a
fixedPoint to give enough accuracy. Then the value is converted to a long
long int (which is easier to store I guess). This int is then encoded into the
result vector. Depending on the value of the fixed point you can store
different ranges of data with varying precision but for mass spec we usually
want to store m/z values between 1 and 2000 with high precision, thus a large
fixed point is chosen.

Concerning the casting: I would first talk to Johan who wrote the library (we
do not want to diverge too far from his source code, also for maintenance
reasons). But to me it seems that your casts were to ordinary chars instead of
unsigned char which (certainly) could lead to issues. Not sure why you wouldnt
get compiler warnings when casting char to unsigned char?

@mcmenace

Copy link
Copy Markdown
Author

Hi Hannes,

mcmenace/OpenMS@eb46a68 I cant really see the point of
-for (int i = -nl; i <= nr; i++)
+for (double i = -nl; i <= nr; i++)
especially since nl and nr are ints

Correct. it should stay int. I will change it.

mcmenace/OpenMS@1d18895 this changes the testcase from
source/TEST/TOPP/MapAlignerIdentification_1_output2.featureXML --------
index 6379dfd..5a890d6 100644
@@ -17,109 +17,109 @@



-48.0173811295049
+40.6271186440678
which seems quite a dramatic shift. Is this expected that there are shifts in RT of 8 seconds?

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.

mcmenace/OpenMS@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?

I will adapt the commit message.

Christian

@mcmenace

Copy link
Copy Markdown
Author

Hi Hannes

Concerning the casting: I would first talk to Johan who wrote the
library (we
do not want to diverge too far from his source code, also for
maintenance
reasons). But to me it seems that your casts were to ordinary chars
instead of
unsigned char which (certainly) could lead to issues. Not sure why you
wouldnt
get compiler warnings when casting char to unsigned char?

yes. Casting to char instead of unsigned char was a misstake but fixing
it and casting to unsigned char did not work either. Like I said, I
could not come up with a working casting scheme to loss the warnings. It
seems strange and maybe I am missing something C++ does implicitly. I
will write Johan concerning the warnings.

Christian

@hroest

hroest commented Jan 18, 2014

Copy link
Copy Markdown
Contributor

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

@mcmenace

Copy link
Copy Markdown
Author

Closed the pull request until all suggestions are incorporated. Also noticed that pyOpenMS is not working. Will fix that too.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Koennte man hier nicht auch der Konvention folgen und sowas wie

#include <wm/Wm5Vector2.h>

schreiben?

@hroest

hroest commented Jan 29, 2014

Copy link
Copy Markdown
Contributor

Hi Christian

One more question, it seems that in your current develop branch the GLPK is still included

https://github.com/mcmenace/OpenMS/blob/develop/source/DATASTRUCTURES/LPWrapper.C

I assume that for your purposes this will also not be acceptable, is there a plan to remove this in the future?

@aiche

aiche commented Jan 29, 2014

Copy link
Copy Markdown
Contributor

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.

@hroest

hroest commented Jan 29, 2014

Copy link
Copy Markdown
Contributor

Hi

I have now just tried to build it on my Ubuntu 12.04 system and using as many
system libraries as possible. I noticed several issues:

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)
My currently installed boost does not have the following files

boost/random/uniform_int_distribution.hpp
boost/random/uniform_real_distribution.hpp: No such file or directory
boost/random/discrete_distribution.hpp: No such file or directory

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.
It seems the Cython works and produces a cpp file but then the compilation
fails. For sure these inclues were missing

-I/home/hr/openmsall/contrib_builds/contrib/include/WildMagic/
-I/home/hr/openmsall/contrib_builds/contrib/include/eigen3
-I/usr/include/libsvm/

also the SILACAnalyzer.pxd files would have to be removed for this to work, in
the ./pxds and the ./addons folder. I fixed those issues in the following commits

hroest@8f5a914
hroest@4d61c85

but pyOpenMS is still not compiling, quite a few things do not seem to work:

  • TransformationModelBSpline - did you remove it?
  • OpenMS::MSSim::simulate - change API ?
  • OpenMS::Math::GaussFitter::GaussFitResult::GaussFitResult - change API ?
  • OpenMS::TransformationModelLinear::getParameters - change API ?
  • OpenMS::IsobaricIsotopeCorrector::correctIsotopicImpurities - change API ?
  • OpenMS::IsobaricIsotopeCorrector::IsobaricIsotopeCorrector - change API?
  • OpenMS::UniqueIdGenerator::setSeed - change API?
  • class OpenMS::UniqueIdGenerator’ has no member named ‘getInfo’ - change API?
  • class OpenMS::OptimizePick’ has no member named ‘getMaxAbsError’ - change API?
  • class OpenMS::OptimizePick’ has no member named ‘getMaxRelError’ - change API?
    [...]

note that every change in API or class members needs to be accompanied with a
change in the corresponding pxd file, otherwise it cant work. Can you maybe
look into those?

@mcmenace

Copy link
Copy Markdown
Author

Hi Hannes,

I am currently working on pyOpenMS and managed to include Eigen and Wm5.
At the moment it compiles but tests are failing. Maybe I need some help
with debugging the test. Will contact you later.

Regards
Christian

On Wed, 2014-01-29 at 05:20 -0800, Hannes Roest wrote:

Finally, after I got a library compiled, also I had some issues with
pyOpenMS.
It seems the Cython works and produces a cpp file but then the
compilation
fails. For sure these inclues were missing

-I/home/hr/openmsall/contrib_builds/contrib/include/WildMagic/
-I/home/hr/openmsall/contrib_builds/contrib/include/eigen3
-I/usr/include/libsvm/

also the SILACAnalyzer.pxd files would have to be removed for this to
work, in
the ./pxds and the ./addons folder. I fixed those issues in the
following commits

hroest/OpenMS@8f5a914
hroest/OpenMS@4d61c85

but pyOpenMS is still not compiling, quite a few things do not seem to
work:

  * TransformationModelBSpline - did you remove it? 
  * OpenMS::MSSim::simulate - change API ? 
  * OpenMS::Math::GaussFitter::GaussFitResult::GaussFitResult -
    change API ? 
  * OpenMS::TransformationModelLinear::getParameters - change
    API ? 
  * OpenMS::IsobaricIsotopeCorrector::correctIsotopicImpurities -
    change API ? 
  * OpenMS::IsobaricIsotopeCorrector::IsobaricIsotopeCorrector -
    change API? 
  * OpenMS::UniqueIdGenerator::setSeed - change API? 
  * class OpenMS::UniqueIdGenerator’ has no member named ‘getInfo’
    - change API? 
  * class OpenMS::OptimizePick’ has no member named
    ‘getMaxAbsError’ - change API? 
  * class OpenMS::OptimizePick’ has no member named
    ‘getMaxRelError’ - change API? [...]

note that every change in API or class members needs to be accompanied
with a
change in the corresponding pxd file, otherwise it cant work. Can you
maybe
look into those?

@mcmenace

Copy link
Copy Markdown
Author

Hi

i) There might be a way around splines from Eigen using splines from
Wm5. If I recall correctly, the tests I did indicated that Eigen splines
are much closer to the numbers produced by GSL splines than Wm5 splines.
Wich does not imply that Eigen splines are more 'correct' than Wm5
splines.

ii) Is it a problem to update the boost version, require a recent boost
version, respectively?

iii) Would also be solved with a boost update.

A general question: is the way we provide python bindings the only
possible way? In the current setup every change to the API hast to be
done twice, once in the C++-code and once in the pxd-files. Considering
the adaption of tests the introduced workload is even higher. That will
most likely prevent people from doing greater changes or will increase
the workload for the python bindings maintainer or break the bindings. I
must agree I have never looked at generating python bindings but is
there no way of a fully automated, maybe controlled at a higher level
than API level, way of doing this? Or are we stuck with double work?

Regards
Christian

On Wed, 2014-01-29 at 05:20 -0800, Hannes Roest wrote:

Hi

I have now just tried to build it on my Ubuntu 12.04 system and using
as many
system libraries as possible. I noticed several issues:

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)
My currently installed boost does not have the following files

boost/random/uniform_int_distribution.hpp
boost/random/uniform_real_distribution.hpp: No such file or directory
boost/random/discrete_distribution.hpp: No such file or directory

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

  * boost::random::mt19937_64 has only been recently renamed and
    moved into the boost::random namespace. The 64 option has only
    been recently added and I am not sure but maybe we can just
    mt19937 and be happy with it, see
    http://www.boost.org/doc/libs/155_0/doc/html/boost_random/reference.html#boost_random.reference.generators
  * cauchy_distribution
  * normal_distribution

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/OpenMS@cba3185


Finally, after I got a library compiled, also I had some issues with
pyOpenMS.
It seems the Cython works and produces a cpp file but then the
compilation
fails. For sure these inclues were missing

-I/home/hr/openmsall/contrib_builds/contrib/include/WildMagic/
-I/home/hr/openmsall/contrib_builds/contrib/include/eigen3
-I/usr/include/libsvm/

also the SILACAnalyzer.pxd files would have to be removed for this to
work, in
the ./pxds and the ./addons folder. I fixed those issues in the
following commits

hroest/OpenMS@8f5a914
hroest/OpenMS@4d61c85

but pyOpenMS is still not compiling, quite a few things do not seem to
work:

  * TransformationModelBSpline - did you remove it?
  * OpenMS::MSSim::simulate - change API ?
  * OpenMS::Math::GaussFitter::GaussFitResult::GaussFitResult -
    change API ?
  * OpenMS::TransformationModelLinear::getParameters - change
    API ?
  * OpenMS::IsobaricIsotopeCorrector::correctIsotopicImpurities -
    change API ?
  * OpenMS::IsobaricIsotopeCorrector::IsobaricIsotopeCorrector -
    change API?
  * OpenMS::UniqueIdGenerator::setSeed - change API?
  * class OpenMS::UniqueIdGenerator’ has no member named ‘getInfo’
    - change API?
  * class OpenMS::OptimizePick’ has no member named
    ‘getMaxAbsError’ - change API?
  * class OpenMS::OptimizePick’ has no member named
    ‘getMaxRelError’ - change API? [...]

note that every change in API or class members needs to be accompanied
with a
change in the corresponding pxd file, otherwise it cant work. Can you
maybe
look into those?

—
Reply to this email directly or view it on GitHub.

@hroest

hroest commented Jan 29, 2014

Copy link
Copy Markdown
Contributor

Hi Christian

i) well this is an Ubuntu specific issue and can be solved with compiling Eigen
by oneself - even debian has it so I think it should not affect the debian
packages. I dont think there is much gained by redoing any of your work and
switching to Wm5 splines.

ii) this is an issue of backward compatibility and there are many systems where
upgrading boost is not an option - think computing clusters. Also I think
breaking backwards compatibility should be an active decision and not something
done "by chance". Also boost is a rather big library that is no fun to
compile so whenever we can, I think we should support people using their
distributions boost. Specifically if the functionality is there and all we have
to do is use the backwards-compatible option instead of the option that breaks
backwards compatibility. It will make every users life easier. For example, all
RHEL systems will use boost 1.41 and qt 4.6 for the near future
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/ (which
means until 2020 when support runs out).

iii) same as above

PyOpenMS: yes, you can try to generate the bindings yourself but it is quite a
pain and complete automation is quite difficult. there is even some
functionality to do so when you look at

tools/PythonExtensionChecker.py --generate_pxd_for

however there is no fully automated tool yet but if you know one, you are
welcome to try. Usually such tools involve gcc-xml or doxygen to parse the C++
header files and there is quite a bit of work involved in parsing that output.
In general I dont know of an easy alternative that would not involve double
work. But of course automating more of the process is always a good option and
if you think you can help, sure, why not.

Also, an API by definition is in general something that is exposed to the
outside and should not be changed :-)

@mcmenace

Copy link
Copy Markdown
Author

Hallo Hannes,

ii) I see your point on backward compatibility and will have a look at
it. Currently we ship the contrib with boost 1.52, so I thought that is
what we require. From

http://ftp.mi.fu-berlin.de/OpenMS/release-documentation/html/install_mac.html

"As of OpenMS 1.10 compiling OpenMS with the Apple GCC 4.2 compiler can
lead to errors due to the update of BOOST to version 1.52."

Supporting boost 1.42 compatibility will most likely be a problem. Is
the rest of OpenMS 1.42 compatible?

iii) see above ;)

Regards
Christian

@hroest

hroest commented Jan 29, 2014

Copy link
Copy Markdown
Contributor

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.

@mcmenace

Copy link
Copy Markdown
Author

Hi Hannes,

first of all thanks for checking the boost version OpenMS is still
compatible to. I agree that we should keep backward compatibility if it
is not a big obstacle. I will look at my boost usage again. We should
document the boost compatibility somewhere (wiki? coding guidelines?) so
that new OpenMS developers will have an eye on backward compatibility.
Can you do the documentation or tell me where to do so?

Regards
Christian

On Wed, 2014-01-29 at 15:43 -0800, Hannes Roest wrote:

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.

—
Reply to this email directly or view it on GitHub.

@timosachsenberg

Copy link
Copy Markdown
Contributor

I think the wiki is a good place to document this as every developer should start there.

@mcmenace

Copy link
Copy Markdown
Author

i) We stick with Eigen splines.

ii) I can get around all issues except for
boost/random/discrete_distribution.hpp. In
src/openms/source/SIMULATION/IonizationSimulation.C we need a
distribution where we can assign our own probabilities:

discrete_distribution<Size, double> ddist (weights.begin(),
weights.end());

If anyone knows a way around using discrete_distribution from boost

1.47 please let me know. Otherwise we need to request boost >1.47.

iii) boost::random::mt19937_64 was introduced in 1.47. I could change
it to boost::random::mt19937 which would work but requests to touch a
number of files and tests. If we agree an boost >1.47 I would like to
spare the work.

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:

Hi

I have now just tried to build it on my Ubuntu 12.04 system and using
as many
system libraries as possible. I noticed several issues:

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)
My currently installed boost does not have the following files

boost/random/uniform_int_distribution.hpp
boost/random/uniform_real_distribution.hpp: No such file or directory
boost/random/discrete_distribution.hpp: No such file or directory

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

  * boost::random::mt19937_64 has only been recently renamed and
    moved into the boost::random namespace. The 64 option has only
    been recently added and I am not sure but maybe we can just
    mt19937 and be happy with it, see
    http://www.boost.org/doc/libs/155_0/doc/html/boost_random/reference.html#boost_random.reference.generators
  * cauchy_distribution
  * normal_distribution

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/OpenMS@cba3185


Finally, after I got a library compiled, also I had some issues with
pyOpenMS.
It seems the Cython works and produces a cpp file but then the
compilation
fails. For sure these inclues were missing

-I/home/hr/openmsall/contrib_builds/contrib/include/WildMagic/
-I/home/hr/openmsall/contrib_builds/contrib/include/eigen3
-I/usr/include/libsvm/

also the SILACAnalyzer.pxd files would have to be removed for this to
work, in
the ./pxds and the ./addons folder. I fixed those issues in the
following commits

hroest/OpenMS@8f5a914
hroest/OpenMS@4d61c85

but pyOpenMS is still not compiling, quite a few things do not seem to
work:

  * TransformationModelBSpline - did you remove it?
  * OpenMS::MSSim::simulate - change API ?
  * OpenMS::Math::GaussFitter::GaussFitResult::GaussFitResult -
    change API ?
  * OpenMS::TransformationModelLinear::getParameters - change
    API ?
  * OpenMS::IsobaricIsotopeCorrector::correctIsotopicImpurities -
    change API ?
  * OpenMS::IsobaricIsotopeCorrector::IsobaricIsotopeCorrector -
    change API?
  * OpenMS::UniqueIdGenerator::setSeed - change API?
  * class OpenMS::UniqueIdGenerator’ has no member named ‘getInfo’
    - change API?
  * class OpenMS::OptimizePick’ has no member named
    ‘getMaxAbsError’ - change API?
  * class OpenMS::OptimizePick’ has no member named
    ‘getMaxRelError’ - change API? [...]

note that every change in API or class members needs to be accompanied
with a
change in the corresponding pxd file, otherwise it cant work. Can you
maybe
look into those?

—
Reply to this email directly or view it on GitHub.

@mcmenace

mcmenace commented Feb 6, 2014

Copy link
Copy Markdown
Author

any opinions?

@timosachsenberg

Copy link
Copy Markdown
Contributor

Hi,
i) stick with Eigen splines 👍

for me boost >= 1.49 is ok but I have no strong opinion on this

@cbielow

cbielow commented Feb 19, 2014

Copy link
Copy Markdown
Contributor

Does it build for VS2013? There is also at least one SP 2013 out.
Would be dealbreaker if not...

timosachsenberg [email protected] schrieb:

Eigen 3.2 doesn't build on VS 2012 sp4 (cl version 17.00.61030). There
is a fix up to sp3 in the current eigen development branch (see
https://bitbucket.org/eigen/eigen/src/4206f0c33abe98e6d28d0fd660623d0279273cee/cmake/EigenDetermineVSServicePack.cmake?at=default)
I think we shouldn't proceed until this is resolved.


Reply to this email directly or view it on GitHub:
#651 (comment)

Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

@hroest

hroest commented Feb 19, 2014

Copy link
Copy Markdown
Contributor

I didn't want.to hold you up, I thought that with my last.comment things
were clear. Everything builds on my.side including pyopenms. However the
windows build issues are worrisome, can we apply the patch during the cmake
build?

H

sent from my smartphone -- you may keep any typos you find.
On Feb 19, 2014 6:34 PM, "cbielow" [email protected] wrote:

Does it build for VS2013? There is also at least one SP 2013 out.
Would be dealbreaker if not...

timosachsenberg [email protected] schrieb:

Eigen 3.2 doesn't build on VS 2012 sp4 (cl version 17.00.61030). There
is a fix up to sp3 in the current eigen development branch (see

https://bitbucket.org/eigen/eigen/src/4206f0c33abe98e6d28d0fd660623d0279273cee/cmake/EigenDetermineVSServicePack.cmake?at=default
)
I think we shouldn't proceed until this is resolved.


Reply to this email directly or view it on GitHub:
#651 (comment)

Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
gesendet.

—
Reply to this email directly or view it on GitHubhttps://github.com//pull/651#issuecomment-35525082
.

@timosachsenberg

Copy link
Copy Markdown
Contributor

I don't have 2013 installed. Anyone?

@mcmenace

Copy link
Copy Markdown
Author

@hannes: Ok. Was not sure if you are all through.

@aiche

aiche commented Feb 20, 2014

Copy link
Copy Markdown
Contributor

Does it build for VS2013? There is also at least one SP 2013 out.
Would be dealbreaker if not...

VS 2013 (fresh install) works.

@aiche

aiche commented Feb 20, 2014

Copy link
Copy Markdown
Contributor

Does it build for VS2013? There is also at least one SP 2013 out.
Would be dealbreaker if not...

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.

@timosachsenberg

Copy link
Copy Markdown
Contributor

The change in current Eigen development version did not work on my VS configuration.

changing EigenDetermineVSServicePack.cmake to:

include(CMakeDetermineVSServicePack)

# The code is almost identical to the CMake version. The only difference is that we remove
# _DetermineVSServicePack_FastCheckVersionWithCompiler which lead to errors on some systems.
function(EigenDetermineVSServicePack _pack)
    if(NOT DETERMINED_VS_SERVICE_PACK OR NOT ${_pack})
        if(DETERMINED_VS_SERVICE_PACK)
            if(_cl_version)
                # Call helper function to determine VS version
                _DetermineVSServicePackFromCompiler(_sp "${_cl_version}")

                # temporary fix, until CMake catches up
                if (NOT _sp)
                    if(${_cl_version} VERSION_EQUAL "17.00.50727.1")
                        set(_sp "vc110")
                    elseif(${_cl_version} VERSION_EQUAL "17.00.51106.1")
                        set(_sp "vc110sp1")
                    elseif(${_cl_version} VERSION_EQUAL "17.00.60315.1")
                        set(_sp "vc110sp2")
                    elseif(${_cl_version} VERSION_EQUAL "17.00.60610.1")
                        set(_sp "vc110sp3")
                    endif()
                endif()

                if(_sp)
                    set(${_pack} ${_sp} CACHE INTERNAL
                        "The Visual Studio Release with Service Pack")
                endif()
            endif()
        endif()
    endif()
endfunction()

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.

@aiche

aiche commented Mar 4, 2014

Copy link
Copy Markdown
Contributor

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.

@mcmenace mcmenace closed this Mar 7, 2014
@mcmenace mcmenace reopened this Mar 7, 2014
@mcmenace

mcmenace commented Mar 7, 2014

Copy link
Copy Markdown
Author

clicked the wrong button. Anyone still having problems with VS builds?

@timosachsenberg

Copy link
Copy Markdown
Contributor

Only will have time to test this next week

@aiche

aiche commented Mar 11, 2014

Copy link
Copy Markdown
Contributor

@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

@aiche aiche added this to the Release 1.12 milestone Mar 11, 2014
@timosachsenberg

Copy link
Copy Markdown
Contributor

works with patch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the newline

@mcmenace

Copy link
Copy Markdown
Author

;) Will do!

@mcmenace

Copy link
Copy Markdown
Author

Merged with current develop. All unit test working on Win64, MacOS, Linux.

Ready to merge!

@aiche

aiche commented Mar 20, 2014

Copy link
Copy Markdown
Contributor

travis error is unrelated;
Should we inform the list and request another public review (deadline maybe tomorrow evening)?

@hroest

hroest commented Mar 20, 2014

Copy link
Copy Markdown
Contributor

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.

@hroest

hroest commented Mar 20, 2014

Copy link
Copy Markdown
Contributor

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

-- BUILD_TYPE: WILDMAGIC (one of: ALL;SEQAN;LIBSVM;XERCESC;BOOST;GSL;COINOR;BZIP2;ZLIB;GLPK;EIGEN;WILDMAGIC)
-- BUILD_TYPE: EIGEN (one of: ALL;SEQAN;LIBSVM;XERCESC;BOOST;GSL;COINOR;BZIP2;ZLIB;GLPK;EIGEN;WILDMAGIC)
-- BUILD_TYPE: SEQAN (one of: ALL;SEQAN;LIBSVM;XERCESC;BOOST;GSL;COINOR;BZIP2;ZLIB;GLPK;EIGEN;WILDMAGIC)

If so, how long does this take more or less?

@aiche

aiche commented Mar 20, 2014

Copy link
Copy Markdown
Contributor

Should be faster or comparable to the GSL build which we did before.

Conflicts:
	src/openms/source/TRANSFORMATIONS/RAW2PEAK/OptimizePick.cpp
aiche added a commit that referenced this pull request Mar 25, 2014
[INTERNAL,API,FEATURE] removal of the GSL
@aiche
aiche merged commit 1262e3d into OpenMS:develop Mar 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants