Fixed a bug in allocation of GPU buffers. Those buffers which were not
authorLukasz Wesolowski <wesolwsk@talent.cs.uiuc.edu>
Thu, 14 Jan 2010 23:28:49 +0000 (17:28 -0600)
committerLukasz Wesolowski <wesolwsk@talent.cs.uiuc.edu>
Thu, 14 Jan 2010 23:28:49 +0000 (17:28 -0600)
marked for transfer to the GPU. such as output buffers, were not being
allocated.

src/arch/cuda/hybridAPI/cuda-hybrid-api.cu

index bb783b82317cb08a2aca8c293544944672cd58c0..27253616ba8e63491b2328bf870260ce88a519f2 100644 (file)
@@ -194,10 +194,6 @@ void allocateBuffers(workRequest *wr) {
       int index = bufferInfo[i].bufferID; 
       int size = bufferInfo[i].size; 
 
-      if (bufferInfo[i].transferToDevice == 0) {
-       continue; 
-      }
-
       // if index value is invalid, use an available ID  
       if (index < 0 || index >= NUM_BUFFERS) {
        int found = 0;