pengzhao-intel commented on a change in pull request #14824: Refactor
ImageRecordIter
URL: https://github.com/apache/incubator-mxnet/pull/14824#discussion_r279192163
##########
File path: src/io/iter_image_recordio_2.cc
##########
@@ -133,15 +134,14 @@ inline void ImageRecordIOParser2<DType>::Init(
record_param_.InitAllowUnknown(kwargs);
batch_param_.InitAllowUnknown(kwargs);
normalize_param_.InitAllowUnknown(kwargs);
- prefetch_param_.InitAllowUnknown(kwargs);
n_parsed_ = 0;
overflow = false;
rnd_.seed(kRandMagic + record_param_.seed);
int maxthread, threadget;
#pragma omp parallel
{
// be conservative, set number of real cores
- maxthread = std::max(omp_get_num_procs() / 2 - 1, 1);
+ maxthread = std::max(omp_get_num_procs(), 1);
Review comment:
Does this get the # of logic cores?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services