MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / TextParserBase

Method TextParserBase

src/data/text_parser.h:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28class TextParserBase : public ParserImpl<IndexType, DType> {
29 public:
30 explicit TextParserBase(InputSplit *source,
31 int nthread)
32 : bytes_read_(0), source_(source) {
33 int maxthread = std::max(omp_get_num_procs() / 2 - 4, 1);
34 nthread_ = std::min(maxthread, nthread);
35 }
36 virtual ~TextParserBase() {
37 delete source_;
38 }

Callers

nothing calls this directly

Calls 1

omp_get_num_procsFunction · 0.85

Tested by

no test coverage detected