Ignore:
Timestamp:
May 19, 2017, 12:58:48 PM (2 years ago)
Author:
lindanl
Message:

Add NVPTX driver.

File:
1 edited

Legend:

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

    r5425 r5458  
    5656
    5757  // Get kernel function
    58   checkCudaErrors(cuModuleGetFunction(&function, cudaModule, "GPU_Main"));
     58  checkCudaErrors(cuModuleGetFunction(&function, cudaModule, "Main"));
    5959
    6060  // Device data
     
    101101   
    102102  checkCudaErrors(cuMemAlloc(&devBufferInput, startPoints[numOfGroups]));
    103   // checkCudaErrors(cuMemsetD8(devBufferInput,0,startPoints[numOfGroups]));
     103  checkCudaErrors(cuMemsetD8(devBufferInput,0,startPoints[numOfGroups]));
    104104  checkCudaErrors(cuMemAlloc(&devStartPoints, sizeof(ulong) * (numOfGroups + 1)));
    105105  checkCudaErrors(cuMemAlloc(&devBufferSizes, sizeof(ulong) * numOfGroups));
     
    131131  void *KernelParams[] = { &devBufferInput, &devStartPoints, &devBufferSizes, &devBufferOutput};
    132132
    133   // std::cout << "Launching kernel\n";
     133  // std::cerr << "Launching kernel\n";
    134134
    135135  CUevent start;
     
    144144                                 blockSizeX, blockSizeY, blockSizeZ,
    145145                                 0, NULL, KernelParams, NULL));
    146   // std::cout << "kernel success.\n";
     146  // std::cerr << "kernel success.\n";
    147147
    148148  cuEventCreate(&stop, CU_EVENT_BLOCKING_SYNC);
     
    151151
    152152  cuEventElapsedTime(&elapsedTime, start, stop);
    153   printf("GPU Kernel time : %f ms\n" ,elapsedTime);
     153  // printf("GPU Kernel time : %f ms\n" ,elapsedTime);
    154154
    155155  // Retrieve device data
Note: See TracChangeset for help on using the changeset viewer.