CSE - Parallel Finite State Machines with Convergence Set Enumeration.

MICRO(2018)

引用 4|浏览19
暂无评分
摘要
Finite State Machine (FSM) is known to be "embarrassingly sequential" because the next state depends on the current state and input symbol. Enumerative FSM breaks the data dependencies by cutting the input symbols into segments and processing all segments in parallel. With unknown starting state (except the first segment), each segment needs to calculate the state transitions, i.e., state→state, for all states, each one is called an enumeration path. The current software and hardware implementations suffer from two drawbacks: 1) large amount of state→state computation overhead for the enumeration paths; and 2) the optimizations are restricted by the need to correctly performing state→state and only achieve limited improvements. This paper proposes CSE, a Convergence Set based Enumeration based parallel FSM. Unlike prior approaches, CSE is based on a novel computation primitive set(N)→set(M), which maps N states to M states without giving the specific state→state mappings (which state is mapped to which). The set(N)→set(M) has two key properties: 1) if M is equal to 1, i.e., all N states are mapped to the same state, the state→state for all the N states are computed; 2) using one-hot encoding, the hardware implementation cost of state→state is the same as set(N)→set(M). The convergence property ensures that M is always less than N. The key idea of CSE is to partition the original all S states into n state sets CS1,CS2,...,CSn, i.e., convergence sets. Using set(N)→set(M) to process each CSi, if the states converge to a single state, then we have successfully computed the enumeration path for each state in CSi; otherwise, we may need to re-execute the stage when the outcome of the previous stage falls in CSi. CSE is realized by two techniques: convergence set prediction, which generates the convergence sets with random input based profiling that maximizes the probability of each CSi converging to one state; global re-execution algorithm, which ensures the correctness by re-executing the non-converging stages with known input state. Essentially, CSE reformulates the enumeration paths as set-based rather than singleton-based. We evaluate CSE with 13 benchmarks. It achieved on average 2.0x/2.4x and maximum 8.6x/2.7x speedup compared to Lookback Enumeration (LBE) and Parallel Automata Processor (PAP), respectively.
更多
查看译文
关键词
Finite State Machine,Accelerator,Parallelism,Speculation
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要