Skip to content

Commit

Permalink
Fix: SYS_ADMIN warning in PLO tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung committed Jul 12, 2024
1 parent f46b160 commit 5526da2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/optimizer/test_power_limit_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pytest
import pandas as pd

from zeus.device.gpu import get_gpus
from zeus.optimizer.power_limit import (
GlobalPowerLimitOptimizer,
HFGlobalPowerLimitOptimizer,
Expand Down Expand Up @@ -157,6 +158,9 @@ def test_power_limit_optimizer(
# Test JIT profiling
############################

# Disable `SYS_ADMIN` capability check.
get_gpus()._disable_sys_admin_warning = True

plo = GlobalPowerLimitOptimizer(
monitor,
optimum_selector=ZeusCost(
Expand Down

0 comments on commit 5526da2

Please sign in to comment.