From 1c0fd9bb4726f28b5ccf4491b8d108b00c884ec3 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 30 Oct 2014 06:26:41 +0000
Subject: [PATCH] im2col slightly faster
---
src/opencl.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/opencl.c b/src/opencl.c
index a2e7366..fc7310c 100644
--- a/src/opencl.c
+++ b/src/opencl.c
@@ -81,7 +81,7 @@
}
int index = getpid()%num_devices;
- index = 0;
+ index = 1;
printf("%d rand, %d devices, %d index\n", getpid(), num_devices, index);
info.device = devices[index];
fprintf(stderr, "Found %d device(s)\n", num_devices);
@@ -141,6 +141,7 @@
void cl_setup()
{
if(!cl.initialized){
+ printf("initializing\n");
cl = cl_init();
}
}
--
Gitblit v1.10.0