Skip to content

Commit

Permalink
UPDATE 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
davidycliao committed Nov 3, 2023
1 parent f3e2651 commit 5000e59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.Ruserdata
docs
inst/doc
files/directories
14 changes: 7 additions & 7 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ check_device <- function(device) {
message("MPS is used on Mac M1/M2.")
return(pytorch$device(device))
} else {
warning("MPS requires macOS 12.3 or higher. Falling back to CPU.",
"\nTo use MPS, ensure the following requirements are met:",
"\n- Mac computers with Apple silicon or AMD GPUs",
"\n- macOS 12.3 or later",
"\n- Python 3.7 or later",
"\n- Xcode command-line tools installed (xcode-select --install)",
"\nMore information: https://developer.apple.com/metal/pytorch/")
warning("MPS requires macOS 12.3 or higher. Falling back to CPU.\\cr
To use MPS, ensure the following requirements are met:\\cr
- Mac computers with Apple silicon or AMD GPUs\\cr
- macOS 12.3 or later\\cr
- Python 3.7 or later\\cr
- Xcode command-line tools installed (xcode-select --install)\\cr
More information: https://developer.apple.com/metal/pytorch/")

Check warning on line 166 in R/utils.R

View check run for this annotation

Codecov / codecov/patch

R/utils.R#L160-L166

Added lines #L160 - L166 were not covered by tests
message("Using CPU.")
return(pytorch$device("cpu"))
}
Expand Down

0 comments on commit 5000e59

Please sign in to comment.