Skip to content

Commit

Permalink
* Add HyTeG Workload
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Abelt committed Oct 6, 2023
1 parent 85c986c commit ef967ef
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions varats/varats/projects/cpp_projects/hyteg.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import typing as tp

Check failure on line 1 in varats/varats/projects/cpp_projects/hyteg.py

View workflow job for this annotation

GitHub Actions / pylint

[pylint] varats/varats/projects/cpp_projects/hyteg.py#L1 <114>

Missing module docstring (missing-module-docstring)
Raw output
varats/varats/projects/cpp_projects/hyteg.py:1:0: C0114: Missing module docstring (missing-module-docstring)

import benchbuild as bb
from benchbuild.command import WorkloadSet, Command, SourceRoot
from benchbuild.utils.cmd import make, cmake, mkdir
from benchbuild.utils.revision_ranges import SingleRevision
from benchbuild.utils.settings import get_number_of_jobs
from experiment.workload_util import WorkloadCategory, RSBinary

Check failure on line 8 in varats/varats/projects/cpp_projects/hyteg.py

View workflow job for this annotation

GitHub Actions / mypy

[mypy] varats/varats/projects/cpp_projects/hyteg.py#L8

error: Cannot find implementation or library stub for module named "experiment.workload_util" [import]
Raw output
varats/varats/projects/cpp_projects/hyteg.py:8:1: error: Cannot find implementation or library stub for module named "experiment.workload_util"  [import]

Check failure on line 8 in varats/varats/projects/cpp_projects/hyteg.py

View workflow job for this annotation

GitHub Actions / mypy

[mypy] varats/varats/projects/cpp_projects/hyteg.py#L8

note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Raw output
varats/varats/projects/cpp_projects/hyteg.py:8:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

Check failure on line 8 in varats/varats/projects/cpp_projects/hyteg.py

View workflow job for this annotation

GitHub Actions / pylint

[pylint] varats/varats/projects/cpp_projects/hyteg.py#L8 <401>

Unable to import 'experiment.workload_util' (import-error)
Raw output
varats/varats/projects/cpp_projects/hyteg.py:8:0: E0401: Unable to import 'experiment.workload_util' (import-error)
from plumbum import local

from varats.paper.paper_config import PaperConfigSpecificGit
Expand All @@ -18,7 +20,7 @@
class HyTeg(VProject):

Check failure on line 20 in varats/varats/projects/cpp_projects/hyteg.py

View workflow job for this annotation

GitHub Actions / pylint

[pylint] varats/varats/projects/cpp_projects/hyteg.py#L20 <115>

Missing class docstring (missing-class-docstring)
Raw output
varats/varats/projects/cpp_projects/hyteg.py:20:0: C0115: Missing class docstring (missing-class-docstring)
NAME = 'HyTeg'
GROUP = 'cpp_projects'
DOMAIN = ProjectDomains.CPP_LIBRARY
DOMAIN = ProjectDomains.TEST

SOURCE = [
PaperConfigSpecificGit(
Expand All @@ -32,7 +34,15 @@ class HyTeg(VProject):
FeatureSource()
]

WORKLOADS = {}
WORKLOADS = {
WorkloadSet(WorkloadCategory.EXAMPLE): [
Command(
SourceRoot("HyTeG/build/apps/profiling") /
RSBinary('ProfilingApp'),
label='ProfilingApp'
)
]
}

@staticmethod
def binaries_for_revision(
Expand Down Expand Up @@ -69,7 +79,7 @@ def compile(self) -> None:
"-DHYTEG_BUILD_DOC=OFF"
)

with local.cwd(hyteg_source / "build" / "apps"):
with local.cwd(hyteg_source / "build" / "apps" / "profiling"):
bb.watch(make)("-j", get_number_of_jobs(bb_cfg()))

def recompile(self) -> None:
Expand Down

0 comments on commit ef967ef

Please sign in to comment.