Revision f12339cf
Added by david.sorber about 3 years ago
| software/read_test/src/URingExecDriver.cc | ||
|---|---|---|
|
#include "URingExecDriver.h"
|
||
|
#include "Utilities/ChunkConstants.h"
|
||
|
#include "Utilities/FileUtils.h"
|
||
|
#include "Utilities/SearchLynxConfiguration.h"
|
||
|
#include "Utilities/BufferAllocator.h"
|
||
|
|
||
|
|
||
|
BlackLynx::SearchLynx::URingExecDriver::URingExecDriver(
|
||
|
const std::string& inputFile,
|
||
|
uint32_t numReaderThreads)
|
||
|
: ExecDriver(inputFile, numReaderThreads),
|
||
|
uint32_t numReaderThreads,
|
||
|
uint32_t chunkSize)
|
||
|
: ExecDriver(inputFile, numReaderThreads, chunkSize),
|
||
|
m_ioCounter(0)
|
||
|
{
|
||
|
// Init the ring
|
||
| ... | ... | |
|
{
|
||
|
// Open the file
|
||
|
fd = ::open(r_inputFile.c_str(), O_RDONLY | O_DIRECT);
|
||
|
// fd = ::open(r_inputFile.c_str(), O_RDONLY);
|
||
|
if (fd < 0)
|
||
|
{
|
||
|
BlnxLog(error) << "Unable to open file: " << r_inputFile;
|
||
Clean up read test code. Add liburing 2.4 as external source.