Browse Source

allium: add missing device cpu flag for linux

pull/5/head
Tanguy Pruvot 7 years ago
parent
commit
b8190e4aa7
  1. 4
      lyra2/allium.cu

4
lyra2/allium.cu

@ -95,7 +95,11 @@ extern "C" int scanhash_allium(int thr_id, struct work* work, uint32_t max_nonce
{ {
int dev_id = device_map[thr_id]; int dev_id = device_map[thr_id];
cudaSetDevice(dev_id); cudaSetDevice(dev_id);
if (opt_cudaschedule == -1 && gpu_threads == 1) {
cudaDeviceReset();
cudaSetDeviceFlags(cudaDeviceScheduleBlockingSync);
CUDA_LOG_ERROR(); CUDA_LOG_ERROR();
}
int intensity = (device_sm[dev_id] >= 500 && !is_windows()) ? 17 : 16; int intensity = (device_sm[dev_id] >= 500 && !is_windows()) ? 17 : 16;
if (device_sm[device_map[thr_id]] == 500) intensity = 15; if (device_sm[device_map[thr_id]] == 500) intensity = 15;

Loading…
Cancel
Save