wordspace.openmp  R Documentation 
Control whether multicore processing is used by wordspace functions (if available) and how many threads are run in parallel. See "Details" below for more information.
wordspace.openmp(threads = NULL)
threads 
if specified, number of parallel threads to be used for multicore processing 
The wordspace
package has experimental support for multicore processing using OpenMP on some platforms.
So far, only the dist.matrix
function uses multicore processing (for all distance measures except cosine
).
Even where supported, OpenMP is not enabled by default and has to be activated explicitly with wordspace.openmp(threads=N)
, where N
is
the number of parallel threads to be used.
Call wordspace.openmp()
without arguments to find out whether OpenMP is supported on your platform
and obtain information about the maximum number of threads available as well as the current setting.
Note that multithreading of other R packages and functions (such as optimised matrix algebra in the BLAS library) is never affected by this function.
If threads
is unspecified or NULL
, a data frame with a single row and the following information is returned:
available 

max 
maximum number of threads that can be used (0 if not available) 
threads 
currently selected number of threads (defaults to 1 if not available) 
Stephanie Evert (https://purl.org/stephanie.evert)
dist.matrix
wordspace.openmp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.