From 5fd73374b30672dff416f6ea2fcfaaa520057a6e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 15 Jul 2011 01:08:23 +1000 Subject: [PATCH] Get the device number from the thread id, not the other way around. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 06b9ffb5..b5e5cbd6 100644 --- a/main.c +++ b/main.c @@ -1925,7 +1925,7 @@ static bool active_device(int thr_id) if (thr_id < gpu_threads) { if (thr_id > nDevs) return false; - if (!gpu_devices[thr_id]) + if (!gpu_devices[dev_from_id(thr_id)]) return false; } else if (thr_id > gpu_threads + num_processors) return false;