Skip to content

Commit

Permalink
Add wandb reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hang-yin committed Oct 2, 2024
1 parent 4258a92 commit 761776b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions omnigibson/utils/profiling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import omnigibson.utils.pynvml_utils as pynvml


# Method copied from: https://github.com/wandb/wandb/blob/main/wandb/sdk/internal/system/assets/gpu.py
def gpu_in_use_by_this_process(gpu_handle: "GPUHandle", pid: int) -> bool:
if psutil is None:
return False
Expand Down
2 changes: 2 additions & 0 deletions omnigibson/utils/pynvml_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# File copied from: https://github.com/wandb/wandb/blob/main/wandb/vendor/pynvml/pynvml.py

#####
#
# Based on nvidia-ml-py version 11.515.48
Expand Down

0 comments on commit 761776b

Please sign in to comment.