CPXXgetnumcores and CPXgetnumcores

This routine returns the number of logical cores of the machine where the code is being run.

int  CPXXgetnumcores( CPXCENVptr env, int * numcores_p )

int  CPXgetnumcores( CPXCENVptr env, int * numcores_p )

Description

This routine returns the number of logical cores of the machine where the code is being run.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
numcores_p

Return

The routine returns 0 (zero) if successful and nonzero if an error occurs.