Commit 7aaf1b6a0772bcbc4e4dd1bcab77dd7d79b29275

nelisky 2012-05-03T09:35:59

Specifying threads on multi fpga boards extra cgpu

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/driver-ztex.c b/driver-ztex.c
index 855e9f0..24a2a1b 100644
--- a/driver-ztex.c
+++ b/driver-ztex.c
@@ -87,8 +87,9 @@ static void ztex_detect(void)
 			ztex_slave = calloc(1, sizeof(struct libztex_device));
 			memcpy(ztex_slave, ztex_devices[i]->dev, sizeof(struct libztex_device));
 			ztex->device_ztex = ztex_slave;
-			ztex_slave->root = ztex_devices[i]->dev;
+			ztex->threads = 1;
 			ztex_slave->fpgaNum = j;
+			ztex_slave->root = ztex_devices[i]->dev;
 			add_cgpu(ztex);
 		}