qc_get_languages qc_set_options navigation bar

Table of Contents

qc_get_num_cpus

Gets the number of CPUs on the current (host) machine.

Syntax

num_cpus = qc_get_num_cpus;  % Get the number of CPUs
    

Description

Returns the number of CPUs on the current (host) machine.

Parameters

This function has no parameters.

Outputs

num_cpus

The number of CPUs on success and a negative error code on failure. See qc_error and qc_get_error_message for handling error codes.

Examples

num_cpus = qc_get_num_cpus; % Returns the number of CPUs.
    

See Also

 

navigation bar