Skip to content
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

D5.11: Refactor and Optimise the existing combinatorics Sage code using the new developed Pythran and Cython features. #109

Closed
minrk opened this issue Sep 8, 2015 · 38 comments

Comments

@minrk
Copy link
Contributor

minrk commented Sep 8, 2015

Computer experimentations in discrete mathematics, in particular enumerative and algebraic combinatorics, require high performance computing. The search spaces are often huge and the best algorithmic strategy for the exploration or problem spaces is not evident and often depend on
the answer to the question being probed. Let us cite the following description from~Maier et al. (Europar 2014):

Some discrete mathematical problems are embarrassingly parallel, and this
has been exploited for years even at Internet scale, \emph{e.g.} the “Great
Internet Mersenne Prime Search”. Many parallel algebraic computations
exhibit high degrees of irregularity, at multiple levels, with numbers and
sizes of tasks varying enormously (up to 5 orders of magnitude). They tend
to use complex user-defined data structures, exhibit highly dynamic memory
usage and complex control flow, often exploiting recursion. They make
little, if any, use of floating-point operations. This combination of
characteristics means that symbolic computations are not well suited to
conventional HPC paradigms with their emphasis on iteration over floating
point arrays.

This deliverable is about experimentations in combinatorics that involve low-level optimization and parallelization, as well as the integration of these techniques in the computer algebra system Sage.

@bpilorget
Copy link
Contributor

bpilorget commented Jan 11, 2018

#121 was merged into this deliverable after 3rd amendment to the contract

@nthiery
Copy link
Contributor

nthiery commented Aug 23, 2018

@videlec, @hivert, @ClementPernet : where do we stand with this deliverable?

@nthiery
Copy link
Contributor

nthiery commented Aug 25, 2018

This deliverable is the culminating point of T5.6: HPC infrastructure for Combinatorics (M1-M36)
It follows up D5.1 (#107): Turn the Python prototypes for tree exploration into production code, integrate to Sage, and subsumes D5.8 (#121): Explore the possibility to interface smoothly Pythran , Cython and Cilk++ which was merged into it.

Therefore the report would naturally give an overview of ODK's work in the area of high performance combinatorics, with two main directions:

  • Refactoring and optimizing Sage's combinatorics code
  • Exploring various technologies for high performance computations in combinatorics (e.g. Pythran, cppyy, Cilk, Spark, SIMD CPU instructions, GPU)

@hivert will take the lead for the latter part of the report.

@videlec: please confirm that you take the lead for the former part.

@nthiery
Copy link
Contributor

nthiery commented Aug 25, 2018

I created a stub report: https://github.com/OpenDreamKit/OpenDreamKit/blob/master/WP5/D5.11/report.tex

There just remains to fill it in :-)

@ClementPernet
Copy link
Contributor

@hivert :: could you feed me with some status update on this task. Even if the delivery is scheduled for next year, we need to write a status update in D1.5 (issue #21 ) of this fall's report. This is urgent (we need to write this update by thursday Aug. 30th).
Best would be if you could edit the report of D1.5 with these updates.

@videlec
Copy link
Contributor

videlec commented Aug 29, 2018

@nthiery thanks Nicolas. I will complete the report for "Refactoring and optimizing Sage's combinatorics code" (which is essentially Cython related). I can take the lead. Sorry for not responding before, I am at a conference.

@nthiery
Copy link
Contributor

nthiery commented Aug 29, 2018 via email

@serge-sans-paille
Copy link
Contributor

@ClementPernet is it ok if I make a short review of the master version of this deliverable today?

@ClementPernet
Copy link
Contributor

@serge-sans-paille : thanks for proposing this. Sure please do. @videlec is also editing a part of the deliverable in the mean time, so maybe first focus on the other parts or try to synch with him to review it afterwards.

@hivert
Copy link
Contributor

hivert commented Aug 30, 2018

@videlec: Thanks for polishing what I wrote on the report. I wasn't meant to be finished and I planned to edit it more this afternoon but lot's of it is already done by you. I have more to add on the outreach of the work (invitation to seminar, my HPCombi code starting to be used by lib-semgroup itself used both by gap and Sage). To avoid conflict, cas you call me on the phone at my office (01601956599) to synchronize ?

@embray
Copy link
Collaborator

embray commented Aug 30, 2018

@hivert Let me know if you would like me to do any proofreading as well. I would go ahead and do it now but from the sound of it I should probably wait until a bit more editing is done.

@videlec
Copy link
Contributor

videlec commented Aug 30, 2018

@hivert sorry for the large rewrite of your part. I tried to simplify a lot the introductory part.

My time zone is GMT-4 (so now is early morning). I will not work on the report before 16:30pm (Paris time). Feel free to do any edit in the mean time.

I also have some edits to do regarding Cythonization in Sage.

@hivert
Copy link
Contributor

hivert commented Aug 30, 2018

@videlec : is wasn't meant that much as an introductory... Anyway thanks for the work !

@videlec
Copy link
Contributor

videlec commented Aug 30, 2018

@hivert: not everything you wrote is an introduction! Feel free to revert as much as you want if it does not fit. And remember that it is not a scientific report. Emphasis has to be put on results. The "rules" in the mail of Nicolas are of good help

  • Context setting
    • what is the problem that is being addressed?
    • Why should we care about the deliverable?
    • what is the thing that has been created?
  • Have an executive summary on the first page (just half a page).
    • why does this deliverable exist? (context)
    • have you achieved everything you set out to do?
    • what would be / are the next steps?
  • Stating the obvious: for example if people (outside the project) are excited about it
  • Provide introduction to topics, even for people not too familiar with the field
  • Comment on other good (software) practices you may use without thinking about it (version control, testing, continuous integration, distribution)
  • Comment on the testing that has been done, even if not automatic. If there is a prototype / demonstrator, explain it in more detail.
  • Work relating to sustainability, should be mentioned, even if implicit (for example growing a community through workshops will help to make the project more sustainable).
  • Anything with impact should be mentioned

@ClementPernet
Copy link
Contributor

@hivert : could you edit a short paragraph summarizing the status of this deliverable in the report of D1.5
OpenDreamKit/WP1/D1.5/WP5.tex
https://github.com/OpenDreamKit/OpenDreamKit/blob/master/WP1/D1.5/WP5.tex#L170
or simply post a paragraph here which I could copy/past.
Thanks.

@hivert
Copy link
Contributor

hivert commented Aug 30, 2018

@ClementPernet: I'm not the best one to do that because most of my work was actually done on D5.8 which was merged with this one. I'd rather wait for @videlec input.

@hivert
Copy link
Contributor

hivert commented Aug 30, 2018

@videlec: I'm mostly done with writing my part (I still need some rereading). However due to the big git problem I've pushed to a new branch namely https://github.com/OpenDreamKit/OpenDreamKit/tree/D5.11 Please pull, complete at will. Since the title of the deliverable concern more your part than mine, I leave it to you to write the introduction and the conclusion. Please ask for some input if needed.

@videlec
Copy link
Contributor

videlec commented Aug 30, 2018

@hivert: thanks. looking at it now.

@videlec
Copy link
Contributor

videlec commented Aug 30, 2018

@hivert cilk++ is officially deprecated by Intel in favor of TBB. Though there is the Cilk Hub initiative: http://cilk.mit.edu/. Do you want to add a word about this?

@hivert
Copy link
Contributor

hivert commented Aug 30, 2018

I might a a word but it's the first time I'm hearing about it. It seems quite new.

@videlec
Copy link
Contributor

videlec commented Aug 31, 2018

It is now very late for me. I am basically done. I will reread to provide better phrasing. Any proofreading welcome at this stage.

@serge-sans-paille
Copy link
Contributor

Just pushed a small review of the spelling / phrasing.

@hivert
Copy link
Contributor

hivert commented Aug 31, 2018

@ClementPernet I've just contributed a small page to the overall WP5 report describing the result for HPC-combi. Please reread and comment.

@embray
Copy link
Collaborator

embray commented Aug 31, 2018

@hiver @nthiery I have pushed my edits to the report.

@embray
Copy link
Collaborator

embray commented Aug 31, 2018

Hold on...merge conflicts...wtf

@embray
Copy link
Collaborator

embray commented Aug 31, 2018

Ok fixed!

@hivert
Copy link
Contributor

hivert commented Aug 31, 2018

Thanks to @serge-sans-paille and @embray for the rereading.

@hivert
Copy link
Contributor

hivert commented Aug 31, 2018

@videlec: Unless you have something more to to, this deliverable is ready to go !!! Can you confirm that its Ok for you ?

@videlec
Copy link
Contributor

videlec commented Aug 31, 2018

@hivert I am ok. Are you doing the submission?

@hivert
Copy link
Contributor

hivert commented Aug 31, 2018

@videlec : no ! That's the role of the big boss ! I'm telling him we are ready.

@ClementPernet
Copy link
Contributor

@hivert : I checked your report on the WP5 section of D1.5. Looks good to me. I just see that D5.1 is still being mentionned although it has already been delivered. I assume this is to put the remaning things in context. Maybe you could state it more clearly.

@nthiery
Copy link
Contributor

nthiery commented Aug 31, 2018

Report submitted; thanks @hivert and @videlec for the sprint :-)
I am looking forward more refactoring in the combinatorics code!

@nthiery
Copy link
Contributor

nthiery commented Aug 31, 2018

Please edit the first entry of this issue to look like, e.g., that of #64, including in particular a copy of the introduction.

@nthiery
Copy link
Contributor

nthiery commented Aug 31, 2018

I am also looking forward the dissemination of all the insight in this report, e.g. in the form of a blog post, or maybe a paper some day?

@hivert
Copy link
Contributor

hivert commented Aug 31, 2018

@ClementPernet : Is WP5 now better ?

@ClementPernet
Copy link
Contributor

@hivert : yes. Everything is now fine with me on the WP5 part of D1.5

@IzabelaFaguet IzabelaFaguet added the FormatCheck Checked the format of the issue description label Dec 7, 2018
@nthiery
Copy link
Contributor

nthiery commented Aug 23, 2019

For the record, this deliverable was approved on March 14th of 2019. Closing!
Thanks everyone :-)

@nthiery nthiery closed this as completed Aug 23, 2019
@nthiery
Copy link
Contributor

nthiery commented Aug 26, 2019

Suggestion: please prepare a demo in notebook format; see #289.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants