Merge pull request #1140 from scchan/program_state_stage_2-rebase-20190524

migrate more program_state logic from header into shared library (phase II)

[ROCm/hip commit: 7013f87885]
Este commit está contenido en:
Maneesh Gupta
2019-06-05 16:09:01 +05:30
cometido por GitHub
Se han modificado 8 ficheros con 309 adiciones y 269 borrados
+29
Ver fichero
@@ -27,12 +27,36 @@
#include <cstdio>
#include <memory>
#include <mutex>
#include <stdexcept>
#include <string>
#include <sstream>
#include <unordered_map>
#include <utility>
#include <vector>
namespace std {
template<>
struct hash<hsa_agent_t> {
size_t operator()(hsa_agent_t x) const {
return hash<decltype(x.handle)>{}(x.handle);
}
};
template<>
struct hash<hsa_isa_t> {
size_t operator()(hsa_isa_t x) const {
return hash<decltype(x.handle)>{}(x.handle);
}
};
} // namespace std
inline constexpr bool operator==(hsa_agent_t x, hsa_agent_t y) {
return x.handle == y.handle;
}
inline constexpr bool operator==(hsa_isa_t x, hsa_isa_t y) {
return x.handle == y.handle;
}
namespace hip_impl {
[[noreturn]]
@@ -801,4 +825,9 @@ public:
}
}; // class program_state_impl
struct kernarg_impl {
std::vector<std::uint8_t> v;
};
};