Skip to content

ITSMFT: share tracking slab allocation primitives - #15730

Open
mpuccio wants to merge 5 commits into
AliceO2Group:devfrom
mpuccio:itsmft-tracking-precursor
Open

ITSMFT: share tracking slab allocation primitives#15730
mpuccio wants to merge 5 commits into
AliceO2Group:devfrom
mpuccio:itsmft-tracking-precursor

Conversation

@mpuccio

@mpuccio mpuccio commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@mpuccio
mpuccio requested a review from davidrohr as a code owner August 27, 2026 21:21
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 9f24e0b at 2026-08-28 02:26:

## sw/BUILD/QualityControl-latest/log
/sw/SOURCES/QualityControl/v1.195.1/v1.195.1/Modules/ITS/src/ITSTrackTask.cxx:28:10: fatal error: ITStracking/Constants.h: No such file or directory
ninja: build stopped: cannot make progress due to previous errors.

Full log here.

@f3sch f3sch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

PR is mostly noise from bounded_vector to o2::itsmft::tracking::bounded_vector where a using decl. would have sufficed. This is fine I guess. See some comments below.
Changed the header include in AliceO2Group/QualityControl#2687


std::string BoundedMemoryResource::asString() const
{
constexpr double gigabyte = 1024. * 1024. * 1024.;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if we have constants.h here now lets remove this extra

void update(uint64_t key, double scale, size_t emitted, size_t capacityUsed, bool overflowed, bool memoryLimited);
void update(uint64_t key, double scale, size_t requested, size_t granted, size_t emitted,
size_t spilled, bool overflowed, bool memoryLimited);
template <typename Stats>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't see a reason to template this?

float ratio{0.f};
float margin{0.f};
size_t maxEmitted{0};
uint32_t nLowStreak{0};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should not nLowStreak and mAxEmitted also go into Statistics?

Comment on lines 12 to 14
o2_add_test(roflookuptables
SOURCES testROFLookupTables.cxx
COMPONENT_NAME its-tracking

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you are moving the whole class header to the common and both other test but leave roflookuptables test?
should be moved as well.

T* staging;
int32_t* producerOf;
bounded_vector<T>* destination;
} context{mStaging.data(), mProducerOf.data(), &dest};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

personally I don't like these immediate structs, maybe move definition into the detail?

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants