source: icGREP/icgrep-devel/icgrep/kernels/stdout_kernel.h @ 5418

Last change on this file since 5418 was 5418, checked in by nmedfort, 2 years ago

Removed non-functional CUDA code from icgrep and consolidated grep and multigrep mode into a single function; allowed segment parallel pipeline to utilize process as its initial thread; modified MMapSourceKernel to map and perform mmap directly and advise the OS to drop consumed data streams.

File size: 826 bytes
Line 
1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
5#ifndef STDOUT_KERNEL_H
6#define STDOUT_KERNEL_H
7
8#include "kernel.h"
9
10namespace IDISA { class IDISA_Builder; }
11
12namespace kernel {
13
14class StdOutKernel : public SegmentOrientedKernel {
15public:
16    StdOutKernel(IDISA::IDISA_Builder * iBuilder, unsigned codeUnitWidth); 
17private:
18    void generateDoSegmentMethod() override final;
19private:
20    const unsigned mCodeUnitWidth;
21   
22};
23
24
25class FileSink : public SegmentOrientedKernel {
26public: 
27    FileSink(IDISA::IDISA_Builder * iBuilder, unsigned codeUnitWidth);
28protected:
29    void generateInitializeMethod() override final;
30    void generateDoSegmentMethod() override final;
31private:
32    const unsigned mCodeUnitWidth;
33   
34};
35}
36
37
38
39#endif
Note: See TracBrowser for help on using the repository browser.