Developer Guide and Reference

ID 767253
Date 10/31/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

pthread

Tells the compiler to use the pthread library for multithreading support.

Syntax

Linux:

-pthread

Windows:

None

Arguments

None

Default

OFF

The compiler does not use the pthread library for multithreading support.

Description

Tells the compiler to use pthread library for multithreading support. This option can also be spelled as -pthreads.

Linking in with the pthread library is also set by the following options:

  • -fiopenmp (for OpenMP)

  • -qmkl

  • -debug=parallel

  • -fortlib

NOTE:

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

IDE Equivalent

None

Alternate Options

None