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

Feature/new modifier implementation #356

Open
wants to merge 37 commits into
base: develop
Choose a base branch
from

Conversation

rfhaque
Copy link
Collaborator

@rfhaque rfhaque commented Aug 27, 2024

New modifier implementation using experiment.py

@github-actions github-actions bot added experiment New or modified experiment ci Involving Project CI & Unit Tests labels Aug 27, 2024
Copy link
Collaborator

@scheibelp scheibelp left a comment

Choose a reason for hiding this comment

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

I have a suggestion on refactoring caliper.Caliper into two classes to make it easier to assemble modifier/spec components.

)
elif self.spec.satisfies("caliper=cuda"):
cuda_support = (
self.spec.satisfies("caliper=cuda") and True
Copy link
Collaborator

Choose a reason for hiding this comment

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

and True looks vestigial

# set package spack specs
package_specs = {}

if not self.spec.satisfies("caliper=none"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I get the impression that some combinations of caliper=... are not allowed. I don't know if we support conflict yet, but FWIW you can raise an exception here for forbidden combinations.

@pearce8 pearce8 mentioned this pull request Oct 21, 2024
from benchpark.experiment import Experiment


class Caliper(Experiment):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the failure at https://github.com/LLNL/benchpark/actions/runs/11446987606/job/31847369138?pr=356 will be resolved if you make it so that caliper does not inherit Experiment (which I think is what you wanted to do). If that doesn't work I'll likely have to investigate it (but that failure in the dry runs does in fact look legitimate, so we'll want to address it before merging this).

Copy link
Collaborator

@scheibelp scheibelp Oct 22, 2024

Choose a reason for hiding this comment

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

This coulda also be addressed by undoing 2a0a077 I think (the part that rearranges the order of declared superclasses)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Involving Project CI & Unit Tests experiment New or modified experiment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants