#pragma once #include "xmrstak/backend/globalStates.hpp" #include #include #include #include #include namespace xmrstak { struct iBackend { enum BackendType : uint32_t { UNKNOWN = 0, CPU = 1u, AMD = 2u, NVIDIA = 3u }; static std::string getName(const BackendType type) { std::vector backendNames = { "UNKNOWN", "CPU", "AMD", "NVIDIA" }; return backendNames[static_cast(type)]; } std::atomic iHashCount; std::atomic iTimestamp; uint32_t iThreadNo; BackendType backendType = UNKNOWN; iBackend() : iHashCount(0), iTimestamp(0) { } }; } // namepsace xmrstak