set.thread.count: openMP Thread Count

Description Usage Arguments Author(s) Examples

Description

This methods allows you to set the number of cores currently accessible to openMP

Usage

1
set.thread.count(thread_count)

Arguments

thread_count

number of OPENMP threads to be used

Author(s)

Nicolas De Jay, Simon Papillon-Cavanagh, Benjamin Haibe-Kains

Examples

1
2
3
4
5
6
7
# Access to number of available threads
threads <- get.thread.count()
# Force a single threaded openMP job
set.thread.count(1)

# Revert back to all accessible threads
set.thread.count(threads)

Example output

Loading required package: survival
Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

[1] 1
[1] 1

mRMRe documentation built on Nov. 17, 2017, 6:33 a.m.