Disable Warning: calling a __host__ function from a __host__ __device__


I’m having a lot of warnings due to using Thrust 1.6 of the form

“calling a host function from a host device function is not allowed”

with NVCC 4.1 on Linux amd64. These warning came up with NVCC 3 I think and are
are already known for a long time:


There seems to be no easy way to get rid of this warnings in a correct way
as they are related to an interplay of Thrust <-> STL containers.

For me this warnings are very anoying and I am wondering if there is / could be
a switch for nvcc for disabling displaying this specific warning. It
would be great if such a feature could be added to the compilere!

Greets Janick