Changeset 5521 for icGREP/icgrep-devel


Ignore:
Timestamp:
Jun 20, 2017, 4:11:03 PM (2 years ago)
Author:
lindanl
Message:

fix ThreadNum?.

File:
1 edited

Legend:

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

    r5486 r5521  
    6464
    6565
    66 static cl::opt<int> ThreadNumOption("thread-num", cl::init(2),
     66static cl::opt<int, true> ThreadNumOption("thread-num", cl::location(ThreadNum), cl::init(2),
    6767                                          cl::desc("Number of threads used for segment pipeline parallel"), cl::value_desc("positive integer"));
    6868
     
    174174    }
    175175
    176     ThreadNum = (PipelineParallel || SegmentPipelineParallel) ? 2 : 1;
    177 
    178176    ObjectCacheDir = ObjectCacheDirOption;
    179177    IROutputFilename = IROutputFilenameOption;
Note: See TracChangeset for help on using the changeset viewer.