Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: IntelLabs/distiller
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: bezorro/distiller
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

There isn’t anything to compare.

IntelLabs:master and bezorro:master are entirely different commit histories.

Showing with 5 additions and 1 deletion.
  1. +5 −1 distiller/apputils/execution_env.py
6 changes: 5 additions & 1 deletion distiller/apputils/execution_env.py
Original file line number Diff line number Diff line change
@@ -77,7 +77,11 @@ def log_git_state():
logger.debug("Active Git branch: %s", branch_name)
logger.debug("Git commit: %s" % repo.head.commit.hexsha)

logger.debug("Number of CPUs: %d", len(os.sched_getaffinity(0)))
try:
num_cpus = len(os.sched_getaffinity(0))
except AttributeError:
num_cpus = os.cpu_count()
logger.debug("Number of CPUs: %d", num_cpus)
logger.debug("Number of GPUs: %d", torch.cuda.device_count())
logger.debug("CUDA version: %s", torch.version.cuda)
logger.debug("CUDNN version: %s", torch.backends.cudnn.version())