Ignore:
Timestamp:
Oct 14, 2016, 6:53:44 AM (3 years ago)
Author:
cameron
Message:

CreateAtomicLoadAcquire?, CreateAtomicStoreRelease? with NVPTX overrides

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/p2s_kernel.cpp

    r5185 r5192  
    236236        Value * ssStructPtr = getStreamSetStructPtr(self, mStreamSetOutputs[i].ssName);
    237237        Value * producerPosPtr = mStreamSetOutputBuffers[i]->getProducerPosPtr(ssStructPtr);
    238         iBuilder->CreateAlignedStore(i16UnitsGenerated, producerPosPtr, sizeof(size_t))->setOrdering(AtomicOrdering::Release);
    239     }
    240     iBuilder->CreateRetVoid();
    241     iBuilder->restoreIP(savePoint);
    242 }
    243    
    244    
    245 }
     238        iBuilder->CreateAtomicStoreRelease(i16UnitsGenerated, producerPosPtr);
     239    iBuilder->CreateRetVoid();
     240    iBuilder->restoreIP(savePoint);
     241}
     242   
     243   
     244}
Note: See TracChangeset for help on using the changeset viewer.