compiler finds both std::to_address and cuda::std::to_address

  Kiến thức lập trình

I’m trying to build the Nvidia Minkowski Engine, so i did the following:
”’
git clone https://github.com/NVIDIA/MinkowskiEngine.git
cd MinkowskiEngine
python setup.py install
”’

However, I get this error:
error: more than one instance of overloaded function “std::__to_address” matches the argument list:
function template “_Tp *cuda::std::__4::__to_address(_Tp *) noexcept” (declared at line 277 of /usr/local/cuda-12.4/targets/x86_64-linux/include/cuda/std/detail/libcxx/include/__memory/pointer_traits.h)
function template “_Tp *std::__to_address(_Tp *) noexcept” (declared at line 156 of /usr/include/c++/9/bits/ptr_traits.h)

So there seems to be two definitions of the function std::to_address, the cuda::std::to_address and the std::to_address. However, the ‘to_address’ function itself doesn’t appear anywhere in the code.

How can i solve this?

New contributor

Megapiot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT