Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Suppressing messages

roger567
New Contributor I
1,040 Views

I am getting a lot of messages like this during compilation:

C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\pstl\include\pstl/execution:96: [Parallel STL message]: "The <Parallel STL> execution policies are defined in the namespace pstl::execution"

How can I suppress these as hundreds are appearing?

It doesn't seem to be susceptible to /Qdiag-disable:96 as a compiler option.

I am using Intel Parallel Studio XE 2018 Update 3 in VS 2017.

Thanks

0 Kudos
8 Replies
Viet_H_Intel
Moderator
1,040 Views

 

Can you try /W0 to see if it works?

Thanks,

Viet 

0 Kudos
roger567
New Contributor I
1,040 Views

Thanks Viet, but it doesn't stop them.

 

0 Kudos
roger567
New Contributor I
1,040 Views

I searched the installation directories for the text and edited the execution file in 
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\pstl\include\pstl

This contained the lines:

#if __PSTL_CPP17_EXECUTION_POLICIES_PRESENT
__PSTL_PRAGMA_MESSAGE_POLICIES("The <Parallel STL> execution policies are defined in the namespace pstl::execution")
#else

so I commented out the second line and the madness has stopped.

0 Kudos
Judith_W_Intel
Employee
1,040 Views

 

I would ask or report this to the TBB forum instead of the compiler forum since the error is coming from the library.

https://software.intel.com/en-us/forums/intel-threading-building-blocks/

Judy

 

0 Kudos
roger567
New Contributor I
1,040 Views

Hi Judy,

I would not have guessed that this ISO/IEC TS 19570:2015 implementation counted as part of TBB.

It seems like a standard C++ extension to me, and therefore a compiler issue, but Intel's byzantine inner workings are beyond me.

0 Kudos
Judith_W_Intel
Employee
1,040 Views

 

I would ask or report this to the TBB forum instead of the compiler forum since the error is coming from the library.

https://software.intel.com/en-us/forums/intel-threading-building-blocks/

Judy

 

0 Kudos
Olga_M_Intel
Employee
1,040 Views

Roger567 wrote:

I would not have guessed that this ISO/IEC TS 19570:2015 implementation counted as part of TBB.

It seems like a standard C++ extension to me, and therefore a compiler issue, but Intel's byzantine inner workings are beyond me.

You can find information about Intel implementation of Parallel STL at https://software.intel.com/en-us/get-started-with-pstl

0 Kudos
Mikhail_D_Intel
Employee
1,040 Views

Hi Roger,

1) Yes, right now you can re-define the macro __PSTL_PRAGMA_MESSAGE_POLICIES(x) in "nothing" in the file ...include\pstl\internal\pstl_config.h

2) In coming  version there is a user control macro "PSTL_USAGE_WARNINGS",  it is zero by default. So, the all messages that you mentioned are suppressed. 

0 Kudos
Reply