Fixed compile issues for amd
This commit is contained in:
parent
a23ec89873
commit
72aa8f1cc0
2 changed files with 9 additions and 5 deletions
|
@ -21,8 +21,9 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <3rdparty/rapidjson/stringbuffer.h>
|
#include <3rdparty/rapidjson/stringbuffer.h>
|
||||||
#include <3rdparty/rapidjson/prettywriter.h>
|
#include <3rdparty/rapidjson/prettywriter.h>
|
||||||
#include <version.h>
|
|
||||||
#include <api/NetworkState.h>
|
#include "version.h"
|
||||||
|
#include "api/NetworkState.h"
|
||||||
|
|
||||||
#include "CCClient.h"
|
#include "CCClient.h"
|
||||||
#include "App.h"
|
#include "App.h"
|
||||||
|
@ -141,7 +142,7 @@ void CCClient::updateNetworkState(const NetworkState& network)
|
||||||
m_self->m_clientStatus.setAvgTime(network.avgTime());
|
m_self->m_clientStatus.setAvgTime(network.avgTime());
|
||||||
|
|
||||||
#ifdef TYPE_AMD_GPU
|
#ifdef TYPE_AMD_GPU
|
||||||
m_clientStatus.setHashFactor(0);
|
m_self->m_clientStatus.setHashFactor(0);
|
||||||
m_self->m_clientStatus.setHugepagesEnabled(false);
|
m_self->m_clientStatus.setHugepagesEnabled(false);
|
||||||
m_self->m_clientStatus.setHugepages(false);
|
m_self->m_clientStatus.setHugepages(false);
|
||||||
m_self->m_clientStatus.setTotalPages(0);
|
m_self->m_clientStatus.setTotalPages(0);
|
||||||
|
|
|
@ -15,17 +15,20 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
#include <3rdparty/rapidjson/stringbuffer.h>
|
#include <3rdparty/rapidjson/stringbuffer.h>
|
||||||
#include <3rdparty/rapidjson/prettywriter.h>
|
#include <3rdparty/rapidjson/prettywriter.h>
|
||||||
|
|
||||||
|
#include "ControlCommand.h"
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#ifdef TYPE_AMD_GPU
|
#ifdef TYPE_AMD_GPU
|
||||||
#include "common/log/Log.h"
|
#include "common/log/Log.h"
|
||||||
#else
|
#else
|
||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ControlCommand.h"
|
|
||||||
|
|
||||||
ControlCommand::ControlCommand()
|
ControlCommand::ControlCommand()
|
||||||
: m_command(Command::START)
|
: m_command(Command::START)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue