Project

General

Profile

Support #23665

Add GLPK as ups product

Added by Haiwang Yu 8 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/27/2019
Due date:
% Done:

100%

Estimated time:
Spent time:
Scope:
Internal
Experiment:
MicroBooNE
SSI Package:
Co-Assignees:
Duration:

Description

Our recent WireCell development needs a package called 'GLPK'.
'GNU Linear Programming Kit'
https://www.gnu.org/software/glpk/

It is used in the dE/dx fitting for particle identifications.
Which is import for uBoone next step analysis.

Could you add it as a ups product?
We could help provide building shims if needed.

Thanks,
Haiwang

History

#1 Updated by Kyle Knoepfel 8 months ago

  • Assignee set to Lynn Garren
  • Status changed from New to Feedback

We look forward to receiving the shims.

#2 Updated by Lynn Garren 8 months ago

The buildshims git repository is available. Please let us know if you have any problems accessing it.

git clone ssh://p-build-framework@cdcvs.fnal.gov/cvs/projects/build-framework-glpk-ssi-build

#3 Updated by Lynn Garren 8 months ago

This is strictly a C library, which means we should be able to build it with the native compiler. The gccxml buildshims can be used as an example.

#4 Updated by Lynn Garren 8 months ago

Sorry, fftw is a better example.

#5 Updated by Haiwang Yu 8 months ago

Lynn Garren wrote:

The buildshims git repository is available. Please let us know if you have any problems accessing it.
[...]

Thanks!

I test built a local glpk ups product using this repository on a dune gpvm.
And then build our wcp against the local glpk ups product.
All worked very well!

#6 Updated by Lynn Garren 8 months ago

I am surprised. I didn't check the build script at all. Did you make any modifications?

#7 Updated by Haiwang Yu 8 months ago

Lynn Garren wrote:

I am surprised. I didn't check the build script at all. Did you make any modifications?

Yes, this shim already worked.
But looking at the build_glpk.sh. Some clean up is needed. I am working on it.

Some details:
Seems building glpk is much simpler than fftw. The only parameter to configure is '--prefix'.
Currently there are some non-effective options which needs clean up but doesn't affect the compiled result.
Also some variable names needs to be changed.

#8 Updated by Haiwang Yu 8 months ago

Hi Lynn,

I finished cleanup of the shim scripts and tested locally.
Should I push changes to a feature branch or the master branch?

#9 Updated by Lynn Garren 8 months ago

Please push your changes to the master branch. But first pull my changes (in the ups table file).

#10 Updated by Haiwang Yu 8 months ago

Lynn Garren wrote:

Please push your changes to the master branch. But first pull my changes (in the ups table file).

Thanks!

I pulled your changes and pushed changes for the build_glpk.sh.
I also did Iocal tests before pushing.

#11 Updated by Lynn Garren 8 months ago

I made a few more adjustments. The source code tarball for glpk is now on SciSoft. glpk v4_65 will be included in the upcoming larsoft distribution.

#12 Updated by Lynn Garren 8 months ago

  • Status changed from Feedback to Assigned

#13 Updated by Haiwang Yu 8 months ago

Lynn Garren wrote:

I made a few more adjustments. The source code tarball for glpk is now on SciSoft. glpk v4_65 will be included in the upcoming larsoft distribution.

That would be really great, Thanks!

#14 Updated by Haiwang Yu 8 months ago

Hi Lynn, I noticed the larsoft v08_37_00 seems already included glpk:
https://cdcvs.fnal.gov/redmine/projects/larsoft/wiki/ReleaseNotes083700

But I didn't find it after setup larsoft v08_37_00 or using active list -aK+

Should we wait for the next larsoft release?

#15 Updated by Lynn Garren 8 months ago

  • % Done changed from 0 to 100
  • Status changed from Assigned to Resolved

glpk is in the larsoft v08_37_00 distribution and available on cvmfs. It will not be setup automatically. Whichever package needs the new product will have to add glpk to its dependency list.

#16 Updated by Haiwang Yu 8 months ago

Lynn Garren wrote:

glpk is in the larsoft v08_37_00 distribution and available on cvmfs. It will not be setup automatically. Whichever package needs the new product will have to add glpk to its dependency list.

I tired looking for glpk using ups list -aK+ glpk
And search it here:
/cvmfs/larsoft.opensciencegrid.org/products/
Didn't find it. See the attached screenshot.

Not sure if I missed something?

#17 Updated by Lynn Garren 8 months ago

Apologies, it was built, but was not in the main manifest. That should be fixed going forward. In the meantime, I've installed glpk on cvmfs by hand. Give it a few minutes to show up.

#18 Updated by Haiwang Yu 8 months ago

Lynn Garren wrote:

Apologies, it was built, but was not in the main manifest. That should be fixed going forward. In the meantime, I've installed glpk on cvmfs by hand. Give it a few minutes to show up.

Thank you so much!!

#19 Updated by Lynn Garren 6 months ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF