Ignore:
Timestamp:
Apr 22, 2017, 4:03:25 PM (2 years ago)
Author:
nmedfort
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/interface.h

    r5411 r5418  
    77#define KERNEL_INTERFACE_H
    88
    9 #include <string>  // for string
    10 #include <vector>  // for vector
     9#include <llvm/IR/Constants.h>
     10#include <string>
     11#include <vector>
     12
    1113namespace IDISA { class IDISA_Builder; }
    12 //namespace llvm { class ConstantInt; }
    13 #include <llvm/IR/Constants.h>
    14 namespace llvm { class Function; }
    15 namespace llvm { class Module; }
    16 namespace llvm { class PointerType; }
    17 namespace llvm { class StructType; }
    18 namespace llvm { class Type; }
    19 namespace llvm { class Value; }
    20 
    2114
    2215// Processing rate attributes are required for all stream set bindings for a kernel.
     
    10497    virtual void initializeInstance() = 0;
    10598
    106     virtual void terminateInstance() = 0;
     99    virtual void finalizeInstance() = 0;
    107100
    108101    void setInitialArguments(std::vector<llvm::Value *> args);
     
    128121    virtual void setProcessedItemCount(const std::string & name, llvm::Value * value) const = 0;
    129122
     123    virtual llvm::Value * getConsumedItemCount(const std::string & name) const = 0;
     124
     125    virtual void setConsumedItemCount(const std::string & name, llvm::Value * value) const = 0;
     126
    130127    virtual llvm::Value * getTerminationSignal() const = 0;
    131128
     
    139136
    140137    llvm::Function * getDoSegmentFunction() const;
    141 
    142     llvm::Function * getAccumulatorFunction(const std::string & accumName) const;
    143138
    144139    llvm::Function * getTerminateFunction() const;
Note: See TracChangeset for help on using the changeset viewer.