Support std::complex for hip-clang

Tá an tiomantas seo le fáil i:
Yaxun (Sam) Liu
2018-06-28 22:33:46 -04:00
tiomanta ag Yaxun Sam Liu
tuismitheoir dd1ae05f1f
tiomantas a8dc1257df
D'athraigh 4 comhad le 631 breiseanna agus 268 scriosta
+10
Féach ar an gComhad
@@ -440,6 +440,16 @@ extern const __device__ __attribute__((weak)) __hip_builtin_gridDim_t gridDim;
#include <hip/hcc_detail/math_functions.h>
// Support std::complex.
#pragma push_macro("__CUDA__")
#define __CUDA__
#include <__clang_cuda_math_forward_declares.h>
#include <__clang_cuda_complex_builtins.h>
#include <cuda_wrappers/algorithm>
#include <cuda_wrappers/complex>
#undef __CUDA__
#pragma pop_macro("__CUDA__")
#endif
#endif // HIP_HCC_DETAIL_RUNTIME_H
Tá difríocht comhad cosc orthu toisc go bhfuil sé ró-mhór Difríocht Luchtaigh