Skip to content

Commit

Permalink
Enable info logging on test-cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
outtanames committed Jan 24, 2024
1 parent 018b743 commit 728abba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ test: ## Basic CPU testing with mkdocs-build

test-cpu: ## Basic CPU testing
CUDA_VISIBLE_DEVICES="" \
pytest -sv tests
pytest --log-cli-level=INFO -sv tests

test-gpu: ## Basic GPU testing with single GPU
CUDA_VISIBLE_DEVICES="0" \
Expand Down
6 changes: 5 additions & 1 deletion nos/common/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,11 @@ def load_profile_catalog(self) -> "ModelSpecMetadataCatalog":
if not NOS_PROFILE_CATALOG_PATH.exists():
raise FileNotFoundError(f"Model metadata catalog not found, path={NOS_PROFILE_CATALOG_PATH}.")

print("Loading profiling catalog from ", NOS_PROFILE_CATALOG_PATH, "...")
import logging

logger = logging.getLogger(__name__)
debug_str = "Loading profiling catalog from " + str(NOS_PROFILE_CATALOG_PATH)
logger.info(debug_str)

# Read the catalog
df = pd.read_json(str(NOS_PROFILE_CATALOG_PATH), orient="records")
Expand Down

0 comments on commit 728abba

Please sign in to comment.