Skip to content

Commit

Permalink
[π˜€π—½π—Ώ] changes introduced through rebase
Browse files Browse the repository at this point in the history
Created using spr 1.3.4

[skip ci]
  • Loading branch information
boomanaiden154 committed Dec 31, 2024
1 parent c86c782 commit a7809f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gematria/datasets/pipelines/benchmark_cpu_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

import abc
import typing_extensions
from typing_extensions import override
from collections.abc import Iterable
import os
import re
Expand Down Expand Up @@ -63,11 +63,11 @@ class NoSchedulingBenchmarkScheduler(BenchmarkScheduler):
performs no verification.
"""

@typing_extensions.override
@override
def setup_and_get_benchmark_core(self) -> int | None:
return None

@typing_extensions.override
@override
def verify(self):
pass

Expand Down Expand Up @@ -122,7 +122,7 @@ def _get_aux_core_and_hyperthread_pair(
'Expected a pair of neighboring hyperthreads in the CPU mask.'
)

@typing_extensions.override
@override
def setup_and_get_benchmark_core(self) -> int | None:
cpu_mask = os.sched_getaffinity(0)

Expand All @@ -137,7 +137,7 @@ def setup_and_get_benchmark_core(self) -> int | None:

return hyperthread_pair[0]

@typing_extensions.override
@override
def verify(self):
cpu_mask = list(os.sched_getaffinity(0))
if self._cpu_mask != cpu_mask:
Expand Down

0 comments on commit a7809f3

Please sign in to comment.