Ignore:
Timestamp:
Nov 10, 2016, 1:42:37 PM (3 years ago)
Author:
lindanl
Message:

editd for GPU.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IDISA/CudaDriver.h

    r5151 r5212  
    101101  // Retrieve device data
    102102
    103   ulong * matchRslt = (ulong *) malloc(outputSize);
     103  ulong * matchRslt;
     104  int ret = posix_memalign((void**)&matchRslt, 32, outputSize);
     105  if (ret) {
     106    std::cerr << "Cannot allocate memory for output.\n";
     107    exit(-1);
     108  }
    104109  checkCudaErrors(cuMemcpyDtoH(matchRslt, devBufferOutput, outputSize));
    105110  if (CountOnly){
Note: See TracChangeset for help on using the changeset viewer.