Git Product home page Git Product logo

Comments (3)

cloudcores avatar cloudcores commented on May 22, 2024

Surely it's possible and doable, all you need is a table to append those default modifiers back, and updating result of CuInsParser.parse accordingly. You may even get all distinct bit fields of those groups of modifiers!

However, due to variaries of SASS instructions, this usually means quite amount of human work. Since most end users does not care about encodings and weights, current approach is a reliable way to assemble those back. IMHO, the only benificial scenario for doing this is you need to make a simulator according to binary encodings.

If you really need this, you may check current weight matrix for instructions that may have default modifiers. But be cautious for those dummy modifiers with zero weights, such as IADD in IMAD. And there are some modifiers always appears simultaneously.

from cuassembler.

gongxiaozhang avatar gongxiaozhang commented on May 22, 2024

Thanks for reply. We do working on a simulator of the Volta arch indeed.
What about this assumption ?
(1)Firstly,If the weight matrix contains negative number,then the instruction should have only one default modifier.
(2)Secondly,IF an Instance of that instruction does not contain any modifer which corresponding to a negetive weight value,it should include the default modifier.
IF both,based on current weight matrix, we update the value V (dimension + 1), then solve the weight matrix(dimension + 1) for a second time. If this were possible,we can reduce lots of human work.

from cuassembler.

cloudcores avatar cloudcores commented on May 22, 2024
  1. It's not guaranteed that an instruction have at most ONE default modifier. For example, 'F2I' means 'F2I.S32.F32', and since 'F2I' will use a different opcode for 64bit types, you may consider it also contains a default modifier to specify it's a 32bit conversion.

  2. Default modifier does not mean other weights of same modifier bitfield should be negative, only the difference matters. If the weight of default modifier is the smallest(usually zero), then the weights of modifiers in the same bitfield will also be positive.

In a word, to make the decoding procedure complete and robust, a lot of human work seems not avoidable. Our current system is not aiming this target, thus it will not be trivial to achieve this goal.

from cuassembler.

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.