View source: R/Rclusterpp.hclust.R
Rclusterpp.setThreads | R Documentation |
Sets the number of threads used by the OpenMP based parallelism in hierarchical clustering.
Rclusterpp.setThreads(threads = 1)
threads |
Desired number of threads. NULL will set number of threads to number of processors. |
Simple wrapper for omp_set_num_threads
when OpenMP is available,
otherwise behaves as a NOOP. When threads==NULL
, the number of
processors will be determined via omp_get_num_procs
and number of
threads set to that value. Note on modern Intel processors with
hyperthreading, this number is typically the number of hyperthread cores, and
thus typically two times the number of physcal cores. Setting the threading
that high is not always advantageous. Note that number of threads can also be
set via the OMP_NUM_THREADS
environment variable.
Integer number of threads
Michael Linderman
# Set to one thread Rclusterpp.setThreads(1) # Set to number of threads equal to number of processors Rclusterpp.setThreads()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.