More than one instance of overloaded function
问题 I am trying to compile a library that uses CUDA, on an Ubuntu system using CUDA 8.0 and clang 3.8. The library includes Eigen headers in several *.cu files, which apparently includes the cmath header, causing an ambiguity in the CUDA headers. /usr/local/cuda-8.0/include/cuda_fp16.h(3068): error: more than one instance of overloaded function "isinf" matches the argument list: function "std::isinf(float)" function "isinf(float)" argument types are: (float) CUDA defines its own __device__ _