NCPUS: Wrapper function to both makeCluster() and detecCore()...

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/NCPUS.R

Description

The function set up a cluster of 'nchips' cpu's on the local host.

Usage

1
NCPUS(nchips = FALSE)

Arguments

nchips

is the number of cpu's on the local pc

Details

The use of this function is depreceted. Use makeCluster() instead. The function is here for compatibility with the version 2013.08.20 of the library.

Value

The function returns a structure useful to establish a connection to the cluster of cpu's.

Note

The definition and connection to the cpu cluster can be established also by using the makeCluster() native function of the parallel package.

Author(s)

Stefano M. Pagnotta and Michele Ceccarelli

See Also

makeCluster, detectCores

Examples

1
2
3
4
5
6
# to count how many cpu's are on the localhost, run
detectCores()

# we suggest to set a cluster of maximal dimension -1 to leave a cpu to control the system
aMakeCluster <- makeCluster(2)
stopCluster(aMakeCluster)

geneSignatureFinder documentation built on May 2, 2019, 2:32 p.m.