coreNum {Emcdf}R Documentation

CPU core number

Description

This function reports the total core number in CPU on the machine.

Usage

coreNum()

Details

This function is a wrapper for the C++ function std::thread::hardware_concurrency(); If core number is not detected, 0 will be returned. See "See Also" for details.

Value

an integer indicating the total number of cores in CPU.

See Also

http://www.cplusplus.com/reference/thread/thread/hardware_concurrency/

Examples


num = coreNum()


[Package Emcdf version 0.1.2 Index]