Changeset 5352


Ignore:
Timestamp:
Feb 28, 2017, 11:44:49 AM (2 years ago)
Author:
lindanl
Message:

Add some error messages.

File:
1 edited

Legend:

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

    r5345 r5352  
    6868
    6969  if(LFPositions.size() < numOfGroups){
    70     std::cerr << "Line Breaks less than " << numOfGroups << std::endl;
     70    std::cerr << "Number of line Breaks:" << LFPositions.size() << std::endl;
     71    std::cerr << "Number of GPU groups:" << numOfGroups << std::endl;
     72    std::cerr << "Line breaks must be more than GPU groups. Use -group-num option to change the group size." << std::endl;
    7173    exit(-1);
    7274  }
     
    99101   
    100102  checkCudaErrors(cuMemAlloc(&devBufferInput, startPoints[numOfGroups]));
     103  // checkCudaErrors(cuMemsetD8(devBufferInput,0,startPoints[numOfGroups]));
    101104  checkCudaErrors(cuMemAlloc(&devStartPoints, sizeof(ulong) * (numOfGroups + 1)));
    102105  checkCudaErrors(cuMemAlloc(&devBufferSizes, sizeof(ulong) * numOfGroups));
Note: See TracChangeset for help on using the changeset viewer.