🌱 Stage 1

paralell computing

paralell

data dependency

statement S, T,

define S δ TS \,\delta\, T: TT depends on SS, SS must be executed before TT

S δ TS\,\delta\,T if and only if one of the cases are true.

xx is a variable

  1. flow dependency: S δf TS\,\delta^f\,T, if x∈OUT(S)x \in OUT(S), and x∈IN(T)x \in IN(T). and xx is readed in TT

    S: x = a + b

    T: y = x

    Read after wrtie.

  2. reverse dependency: S δa TS\,\delta^a\,T, if x∈IN(S)x \in IN(S) and x∈OUT(T)x \in OUT(T). and SS read xx before TT write to xx

    S: r = x

    T: x = a + b

    Write after read.

  3. output dependency: S δo TS\,\delta^o\,T, if x∈OUT(S)x \in OUT(S) and x∈OUT(T)x \in OUT(T). SS write to xx before TT write to xx.

    S: x = a

    T: x = b

    Write after write.

💬 评论加载中...