Skip to content

Introduction of massive RAMBO in standalone_mg7.#5

Merged
stloufra merged 5 commits into
feat-madmatrixfrom
feat-madmatrix-rambo
Jun 15, 2026
Merged

Introduction of massive RAMBO in standalone_mg7.#5
stloufra merged 5 commits into
feat-madmatrixfrom
feat-madmatrix-rambo

Conversation

@stloufra

Copy link
Copy Markdown
Contributor

For now Host only, if MGONGPUCPP_GPUIMPL momenta buffer copy from host to device
Uses its own internal RNG - to be decided if to be kept
New flag in check_sa perf -r [c|ml] (classic or massless)
Default for both modes is massive (classic)
New get_meta option in umami to retrieve masses from CPPProcess

stloufra added 4 commits June 11, 2026 17:57
Additional key, error and case to obtain masses in get_meta()
Same as in standalone_cpp, will need vectorization in future.
Copy of it to dir.
Same as the massless RAMBO, for now internal RNG and not splitted
into the inital and final state particles sampling
New flag -r [c|ml] (classic, massless)
Flag only for perf - matrix always massive
Massive
	host only so for now copy to device
	self RNG inside

Massless
	kept for back compability for now
	RNG outside (we pass buffer with rnd numbers)
@stloufra stloufra requested a review from Qubitol June 11, 2026 20:48
@stloufra stloufra self-assigned this Jun 11, 2026
<< "Usage:\n"
<< " " << argv0 << " [matrix] [-v|--verbose]\n"
<< " " << argv0 << " perf [-v|--verbose] [-f|--flavor <int>]"
<< " " << argv0 << " perf [-v|--verbose] [-f|--flavor <int>] [-r|--rambo [c]|ml]"

@Qubitol Qubitol Jun 15, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Given the default is classic and it makes total sense, I would just add a flag --rambo-massless which works as a switch.

#include "MemoryAccessRandomNumbers.h"
#include "MemoryAccessWeights.h"
#include "MemoryBuffers.h"
#include "classic_rambo.h" // inline classic (massive) RAMBO, ported from standalone_cpp

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we can call it just rambo.h given it is the sane default, while the other becomes massless_rambo.h?

@Qubitol Qubitol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just some general comments on namings. It looks good for the rest. Given now we have a proper rambo implementation, I would make it default all the way through (including the name) and treat the massless rambo as a special case.

naming changed to rambo.h and massless_rambo.h
flag instead of switch (--rambo-massless)
@stloufra stloufra force-pushed the feat-madmatrix-rambo branch from e24b940 to 6f599e8 Compare June 15, 2026 12:22
@stloufra stloufra merged commit 1dbe28a into feat-madmatrix Jun 15, 2026
60 of 152 checks passed
@stloufra stloufra deleted the feat-madmatrix-rambo branch June 15, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants