Skip to content

Commit

Permalink
Cuda memory catch (#115)
Browse files Browse the repository at this point in the history
Added a try catch  so that in case of OOM errors on GPU it tries to clear gpu memory and continue when doing hyperparameter tuning.
  • Loading branch information
egillax authored Apr 29, 2024
1 parent f343e72 commit b95d31a
Show file tree
Hide file tree
Showing 14 changed files with 385 additions and 201 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R_CDM_check_hades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
shell: Rscript {0}
run: |
python_packages <-
c("polars", "tqdm", "connectorx", "pyarrow", "scikit-learn")
c("polars", "tqdm", "connectorx", "pyarrow", "pynvml")
library(reticulate)
virtualenv_create("r-reticulate", Sys.which("python"))
Expand Down
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Config/reticulate:
list(package = "polars"),
list(package = "tqdm"),
list(package = "connectorx"),
list(package = "pyarrow")
list(package = "pyarrow"),
list(package = "pynvml")
)
)
Loading

0 comments on commit b95d31a

Please sign in to comment.