optimizeCoreGx: A helper method to find the best multithreading configuration...

View source: R/optimizeCoreGx.R

optimizeCoreGxR Documentation

A helper method to find the best multithreading configuration for your computer

Description

A helper method to find the best multithreading configuration for your computer

Usage

optimizeCoreGx(sample_data, set = FALSE, report = !set)

Arguments

sample_data

TreatmentResponseExperiment

set

logical(1) Should the function modify your R environment with the predicted optimal settings? This changes the global state of your R session!

report

logical(1) Should a data.frame of results be returned by number of threads and operation be returned? Defaults to !set.

Value

If set=TRUE, modifies data.table threads via setDTthreads(), otherwise displays a message indicating the optimal number of threads. If report=TRUE, also returns a data.frame of the benchmark results.

Examples


  data(merckLongTable)
  optimizeCoreGx(merckLongTable)



bhklab/CoreGx documentation built on March 14, 2024, 3:04 a.m.