Fix attribute order THRUST_NODISCARD
And add memory_resource.h for hip
MODIFY
.gitignore
.gitignore
@@ -56,3 +56,5 @@ CTestTestfile.cmake
build
# End of https://www.gitignore.io/api/c++,cmake
+
+.vscode
\ No newline at end of file

MODIFY
thrust/device_allocator.h
thrust/device_allocator.h
@@ -68,8 +68,7 @@ public:
{
}
- __host__
- THRUST_NODISCARD
+ THRUST_NODISCARD __host__
virtual pointer do_allocate(std::size_t bytes, std::size_t alignment = THRUST_MR_DEFAULT_ALIGNMENT) THRUST_OVERRIDE
{
return pointer(m_upstream->do_allocate(bytes, alignment).get());

Fix attribute order THRUST_NODISCARD

And add memory_resource.h for hip