IBM Support

How to specify threads in Parallel CPLEX

Question & Answer


Question

In Parallel CPLEX, is there a limit to the number of threads I can specify?

Answer

Yes, there are limits. If you are licensed for running parallel optimizers, you can specify a global thread limit (CPX_PARAM_THREADS). If successful, CPLEX will use the specified number of threads for the appropriate optimizer.

For users of CPLEX 12.1 and earlier, you cannot set a value greater than the number of parallel threads allowed in your license. Versions 12.2 and later have no license based restrictions on the number of parallel threads.

For versions 12.4 and earlier, you cannot set a value that is larger than the number of cores on your machine.

In either of these cases, CPLEX will report an error (Error 1015: Parameter value too big.) and will leave the setting unchanged.

CPLEX 12.5 permits setting an arbitrary number of threads. However, this was done primarily to aid in application development and troubleshooting, Setting a thread value larger than the number of cores incurs additional overhead that reduces the chances of improved performance.

[{"Product":{"code":"SSSA5P","label":"IBM ILOG CPLEX Optimization Studio"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Parallel CPLEX","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.2;9.1.3;9.1.2;9.1;9.0;8.1;8.0;7.5;7.1;7.0;12.4;12.3;12.2;12.1;12.0;11.2.1;11.2;11.1.1;11.1;11.0.1;11.0;10.3;10.2.1;10.2;10.1.1;10.1;10.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSSA5P","label":"IBM ILOG CPLEX Optimization Studio"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF017","label":"Mac OS"}],"Version":"12.2","Edition":"All Editions","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Historical Number

cplex/FAQ/177

Document Information

Modified date:
16 June 2018

UID

swg21400093