Software Archive
Read-only legacy content
17060 Discussions

Windows Pthreads

Boyd_Edmondson
Beginner
335 Views

I tried to use Intel Parallel Inspector (IPI) on Windows, but I am using pthreads and IPI does not know about pthreads on Windows and therefore gives a lot of warnings about potential data race conditions.

Is there a way for me to inform IPI the lock and unlock functions of the pthreads library so IPI knows that proper lock/unlock is done so IPI will not give false warnings?

I suppressed the warnings, but after suppressing hundreds of warnings, I am not confident that proper checking is being done (perhaps legitimate errors are being suppressed do to the requirement to suppress at such a low level).

0 Kudos
3 Replies
Kirill_R_Intel
Employee
335 Views
Hello Boyd,

Pthreads on Windows are not supported. You may report a feature request in premier.intel.com.
How do you build your pthread application? What compiler do you use? GCC on Windows like Cygwin is unsupported configuration.

Regards,
Kirill
0 Kudos
jimdempseyatthecove
Honored Contributor III
335 Views
Boyd,

IPI may be using the function signature for it's supported lock and unlock (e.g. that from TBB).
If you are not using TBB in your application, then try lifting its lock/unlock functions, extract the body of the function and replace it with the pthreads equivalent. Thus creating a lock/unlock function signature the same as for TBB (but performing your particular lock request).

Jim Dempsey
0 Kudos
Boyd_Edmondson
Beginner
335 Views
Thank you for the clever suggestion.

I have also submitted an example project to Intel to see if they might be able to provide support for Windows Pthreads.
0 Kudos
Reply