cuda::std::complex is from libcu++. libcu++ makes C++ Standard Library features useable in both host and device code. HIP does not provide something like libcu++. Most functions from std library is not available in device code.