pthread

Tells the compiler to use the pthread library for multithreading support. This is a deprecated option that may be removed in a future release.

Syntax

Linux:

-pthread

Windows:

None

Arguments

None

Default

ON

The compiler uses the pthread library for multithreading support.

Description

Tells the compiler to use pthread library for multithreading support.

Note

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

None

Alternate Options

Linux: -reentrancy threaded

Windows: /reentrancy:threaded