Giter VIP home page Giter VIP logo

Comments (5)

meton-robean avatar meton-robean commented on June 2, 2024

循环分类与建模

Selection_118
将循环分成几大类,包含可以全并行的,含有寄存器依赖的,内存依赖的,动态边界的。根据这个新增两种指令:
Selection_119

所以一个创新点是根据循环的分类,自定义两种指令,其实本质是: 不是简单的新加指令,而是从指令的角度去看待,给指令增加一点新的语义信息,可以看做是一种语义标签,来使得后面的加速硬件可以识别循环内那几条特殊标记的指令,从而调度循环加速。

from papernotes.

meton-robean avatar meton-robean commented on June 2, 2024

加速架构

Selection_120

  • 发掘迭代间的并行. 每个Lane负责某次循环迭代的执行,也就是每个lane需要执行某次迭代内的循环内的指令,类似多核的感觉,实际上每个Lane里面也确实就只有一个核通用CPU一样的ALU。

  • 但是其实这种多核加速的加速比大致取决于核的数目,并不高。 好处是每个lane负责一次迭代,就算循环内有分支啥的条件语句啥的也可以想像普通CPU一样执行.

from papernotes.

meton-robean avatar meton-robean commented on June 2, 2024

XLOOP是利用 PyMTL和Pydgin来进行硬件实现和模型仿真

from papernotes.

meton-robean avatar meton-robean commented on June 2, 2024

无依赖可全并行的执行例子

image

from papernotes.

meton-robean avatar meton-robean commented on June 2, 2024

有内存依赖的执行例子

例如 A[ i] = A[i] +A[i-k]

Selection_002

有内存依赖的情况, 某个Lane如果check到在其负责的迭代里面,它需要的那个数在其他lane没有算好送到它这里,那么要终止本次迭代的执行,下一次再重新执行这一次迭代的指令们

from papernotes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.