Initial support for xgmi sdma queues

Change-Id: I1aee379c7b9eede5f4b913cf2f9af3abb32e5baa


[ROCm/ROCR-Runtime commit: 8864c188b4]
This commit is contained in:
Ramesh Errabolu
2019-07-24 19:28:24 -05:00
parent 5e5b7fac71
commit 08e994db50
9 changed files with 170 additions and 69 deletions
@@ -58,6 +58,19 @@ template <typename T> class lazy_ptr {
explicit lazy_ptr(std::function<T*()> Constructor) { Init(Constructor); }
lazy_ptr(lazy_ptr&& rhs) {
obj = std::move(rhs.obj);
func = std::move(rhs.func);
}
lazy_ptr& operator=(lazy_ptr&& rhs) {
obj = std::move(rhs.obj);
func = std::move(rhs.func);
}
lazy_ptr(lazy_ptr&) = delete;
lazy_ptr& operator=(lazy_ptr&) = delete;
void reset(std::function<T*()> Constructor = nullptr) {
obj.reset();
func = Constructor;
@@ -122,7 +135,6 @@ template <typename T> class lazy_ptr {
}
}
DISALLOW_COPY_AND_ASSIGN(lazy_ptr);
};
#endif // HSA_RUNTIME_CORE_UTIL_LAZY_PTR_H_