- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am migrating to the latest compiler version (13) and I get some warnings that I didn't get before. One of these is:
ifort: command line remark #10010: option '-pthread' is deprecated and will be removed in a future release. See '-help deprecated'
I don't find the '-pthread' option in the list of options, neither do I find it in the deprecated options list http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/fortran-mac/GUID-41D11B5D-FB46-44D4-9A85-F2303AFDF3E0.htm
So what's the status of '-pthread' and if it will be deprecated which option will take over its functionallity? Or how do I get rid of the remark?
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Interesting - this was never a supported option for Fortran. For Intel C++ it tells the compiler to use the pthreads library for multithread support, though I am not entirely sure what is meant by this, as typically OpenMP is used for the multithread (-parallel) support. I suggest you simply remove the option from your Fortran builds.
I have inquiries into the developers to see why it is even triggering a deprecated message, as it's not deprecated for C++.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok - for Fortran, use "-reentrancy threaded" as the replacement. Its history for Fortran is not the same as the current C++ option, and was removed from the compiler a VERY long time ago.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I use "-reentrancy threaded" it complains that "-reentrancy" is not a recognized option and file "threaded" is not found. When I use "-pthread" I get "ifort: command line remark #10010: option '-pthread' is deprecated and will be removed in a future release. See '-help deprecated'" and when I type "ifort -help deprecated" it tells me to use "-reentrancy threaded". So it doesn't like any of the two.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you please show me the log of the terminal session showing the ifort command and the output? Also please add -V. For example, here's what I see:
[sblionel@f90srv34 ~/project]$ ifort -V -c -reentrancy threaded t.f90
Intel(R) Fortran Compiler XE for applications running on IA-32, Version 13.0.1.117 Build 20121010
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
Intel(R) Fortran 13.0-2074
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Those options are obsolete. If you want standards checking against Fortran 90 or 95, use -std90 or -std95.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page