Browse Source

nvml warning fix and disable scrypt gpu test

master
Tanguy Pruvot 10 years ago
parent
commit
98f2f8c745
  1. 1
      nvml.cpp
  2. 6
      util.cpp

1
nvml.cpp

@ -363,6 +363,7 @@ int nvml_reset_clocks(nvml_handle *nvmlh, int dev_id)
return -1; return -1;
} }
gpu_clocks_changed[dev_id] = 0; gpu_clocks_changed[dev_id] = 0;
return 1;
} }
int nvml_get_gpucount(nvml_handle *nvmlh, int *gpucount) int nvml_get_gpucount(nvml_handle *nvmlh, int *gpucount)

6
util.cpp

@ -1770,9 +1770,9 @@ void do_gpu_tests(void)
//memcpy(buf, zrtest, 80); //memcpy(buf, zrtest, 80);
//scanhash_zr5(0, (uint32_t*)buf, tgt, zrtest[19]+1, &done); //scanhash_zr5(0, (uint32_t*)buf, tgt, zrtest[19]+1, &done);
struct timeval tv; //struct timeval tv;
memset(buf, 0, sizeof buf); //memset(buf, 0, sizeof buf);
scanhash_scrypt_jane(0, (uint32_t*)buf, tgt, NULL, 1, &done, &tv, &tv); //scanhash_scrypt_jane(0, (uint32_t*)buf, tgt, NULL, 1, &done, &tv, &tv);
memset(buf, 0, sizeof buf); memset(buf, 0, sizeof buf);
scanhash_x11(0, (uint32_t*)buf, tgt, 1, &done); scanhash_x11(0, (uint32_t*)buf, tgt, 1, &done);

Loading…
Cancel
Save