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

Resolved issue with environment variables #35

Merged
merged 5 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fmperf/Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def generate_workload(
{
"name": "fmaas-perf",
"image": workload.image,
"imagePullPolicy": "IfNotPresent",
"imagePullPolicy": "Always",
"env": workload.get_env(target, model, outfile),
"command": ["/bin/bash", "-ce"],
"args": workload.get_args(),
Expand Down Expand Up @@ -402,7 +402,7 @@ def evaluate(
"containers": [
{
"name": "fmaas-perf",
"imagePullPolicy": "IfNotPresent",
"imagePullPolicy": "Always",
"image": workload.spec.image,
"env": env,
"command": ["/bin/bash", "-ce"],
Expand Down
4 changes: 2 additions & 2 deletions fmperf/loadgen/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
from fmperf.utils import parse_results
from datetime import datetime
from .collect_energy import collect_metrics, summarize_energy
from fmperf.utils.constants import REQUESTS_DIR, REQUESTS_FILENAME, RESULTS_ALL_FILENAME
from fmperf.utils.constants import REQUESTS_DIR, REQUESTS_FILENAME, RESULTS_FILENAME


def run(result_filename=None):
if result_filename is None:
result_filename = RESULTS_ALL_FILENAME
result_filename = RESULTS_FILENAME

def get_streaming_response_tgis(response):
stop = False
Expand Down
1 change: 1 addition & 0 deletions fmperf/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
REQUESTS_DIR = os.environ.get("REQUESTS_DIR", ".")
REQUESTS_FILENAME = os.environ["REQUESTS_FILENAME"]
RESULTS_ALL_FILENAME = os.environ.get("RESULTS_ALL_FILENAME", None)
RESULTS_FILENAME = os.environ.get("RESULTS_FILENAME", None)
Loading