“warning: __host__ annotation on a defaulted function is ignored” <- why?
问题 Switching from CUDA 8.0 to CUDA 9.0 RC, I get a warning about: __host__ __device__ ~Foo() = default; The warning is: path/to/Foo.cuh(69): warning: __host__ annotation on a defaulted function("~Foo") is ignored which I didn't use to get before. Should I really be getting this warning? What's wrong with indicating you want the default destructor on both the device and the host side? 回答1: What's wrong with indicating you want the default destructor on both the device and the host side? But that