Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
monkins1010 authored Oct 13, 2018
1 parent 3aaa57b commit f27fab5
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#ifdef WIN32
# define _WINSOCK_DEPRECATED_NO_WARNINGS
# include <winsock2.h>
//# include <winsock2.h>
#endif

#include <stdio.h>
Expand Down Expand Up @@ -124,7 +124,7 @@ static void gpustatus(int thr_id)
char buf[512]; *buf = '\0';
char* card;

cuda_gpu_info(cgpu);

cgpu->gpu_plimit = device_plimit[cgpu->gpu_id];

#ifdef USE_WRAPNVML
Expand Down Expand Up @@ -272,8 +272,8 @@ static void gpuhwinfos(int gpu_id)
if (cgpu == NULL)
return;

cuda_gpu_info(cgpu);
cgpu->gpu_plimit = device_plimit[cgpu->gpu_id];

cgpu->gpu_plimit = 200;

#ifdef USE_WRAPNVML
cgpu->has_monitoring = true;
Expand Down Expand Up @@ -355,8 +355,7 @@ static void syshwinfos()
static char *gethwinfos(char *params)
{
*buffer = '\0';
for (int i = 0; i < cuda_num_devices(); i++)
gpuhwinfos(i);

syshwinfos();
return buffer;
}
Expand Down Expand Up @@ -597,7 +596,7 @@ static size_t base64_encode(const uchar *indata, size_t insize, char *outptr, si
return len;
}

#include "compat/curl-for-windows/openssl/openssl/crypto/sha/sha.h"
#include "openssl/sha.h"

/* websocket handshake (tested in Chrome) */
static int websocket_handshake(SOCKETTYPE c, char *result, char *clientkey)
Expand Down Expand Up @@ -1344,7 +1343,7 @@ void api_set_throughput(int thr_id, uint32_t throughput)
{
if (thr_id < MAX_GPUS && thr_info) {
struct cgpu_info *cgpu = &thr_info[thr_id].gpu;
cgpu->intensity = throughput2intensity(throughput);
cgpu->intensity = 100;
if (cgpu->throughput != throughput) cgpu->throughput = throughput;
}
// to display in bench results
Expand Down

0 comments on commit f27fab5

Please sign in to comment.