Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RRO-src/files/OSX/Rprofile.site
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ if(Sys.info()["sysname"] == "Darwin"){
hw.ncpu <- system('sysctl hw.ncpu', intern = TRUE)
ncores <- sub("hw.ncpu: ", "", hw.ncpu)
msg <- "Multithreaded BLAS/LAPACK libraries detected. Using %s cores for math algorithms."
message(sprintf(msg, ncores))
if (!quiet) message(sprintf(msg, ncores))
invisible(NULL)
})
} else if(load_if_installed("RevoUtilsMath")){
local({
ncores <- RevoUtilsMath::getMKLthreads()
msg <- "Multithreaded BLAS/LAPACK libraries detected. Using %d cores for math algorithms."
message(sprintf(msg, ncores))
if (!quiet) message(sprintf(msg, ncores))
invisible(NULL)
})
}