Ignore:
Timestamp:
Jul 5, 2017, 1:51:04 PM (23 months ago)
Author:
lindanl
Message:

Use exsiting PTX file.

File:
1 edited

Legend:

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

    r5486 r5550  
    4343static cl::opt<bool> MultiGrepKernels("enable-multigrep-kernels", cl::desc("Construct separated kernels for each regular expression"));
    4444static cl::opt<int> REsPerGroup("re-num", cl::desc("Number of regular expressions processed by each kernel."), cl::init(1));
     45
     46static cl::opt<std::string> PTXFile("ptx", cl::desc("compiled PTX file."), cl::init(""));
     47
    4548static std::vector<std::string> allFiles;
    46 
    4749static re::ModeFlagSet globalFlags = 0;
    4850
     
    191193               
    192194        if (codegen::NVPTX) {
    193             grepEngine.grepCodeGen_nvptx(REs, grep::Mode, UTF_16);
     195            if(PTXFile=="")
     196                grepEngine.grepCodeGen_nvptx(REs, grep::Mode, UTF_16);
    194197            for (unsigned i = 0; i != allFiles.size(); ++i) {
    195                 grepEngine.doGrep(allFiles[i]);
     198                grepEngine.doGrep(allFiles[i], PTXFile);
    196199            }
    197200            return 0;
Note: See TracChangeset for help on using the changeset viewer.