Giter Site home page Giter Site logo

Comments (6)

rofirrim avatar rofirrim commented on July 18, 2024

Thanks @Hsiangkai for putting this RFC together.

I understand that vcopy_v is needed when we want to copy only VL elements of the vector. My understanding is that a plain C assignment would copy it all (so the vector vehaves like a regular value here).

Regarding a question posed by @zakk0610 during our internal discussion, I understand reinterpret intrinsics will allow converting mask types to/from other integer types of LMUL=1. Also I presume reinterpret casts will allow reinterpretation between different types of the same LMUL (e.g. i32m1 and i64m1), won't it?

from rvv-intrinsic-doc.

kito-cheng avatar kito-cheng commented on July 18, 2024

Oh... in fact SiFive’s Implementation vcopy is same as assignment in C, which is VL aware, the same issue for vector type is pointer dereference vs unit stride load/store, we implement its in VL aware too.

We might need to create a new issue to discuss about the behavior and limitation for vector type.

from rvv-intrinsic-doc.

Hsiangkai avatar Hsiangkai commented on July 18, 2024

If we support C assignment, should we support other C operators for scalable vector types? We should list the supported C operators in the RFC. In addition, what is the operating scope of C operator, VLMAX or vl? In SiFive's implementation, it is vl. The semantics is aligned to intrinsics design without vl argument.

from rvv-intrinsic-doc.

zakk0610 avatar zakk0610 commented on July 18, 2024

I agree we should support " converting mask types to/from other integer types of LMUL=1".
But I could not image why user want to reinterpretation between different types of the same LMUL, it is strange usage.

edited: we could discuss it in https://github.com/sifive/rvv-intrinsic-doc/issues/12

from rvv-intrinsic-doc.

Hsiangkai avatar Hsiangkai commented on July 18, 2024

Oh... in fact SiFive’s Implementation vcopy is same as assignment in C, which is VL aware, the same issue for vector type is pointer dereference vs unit stride load/store, we implement its in VL aware too.

We might need to create a new issue to discuss about the behavior and limitation for vector type.

We could discuss it in https://github.com/sifive/rvv-intrinsic-doc/issues/13.

from rvv-intrinsic-doc.

Hsiangkai avatar Hsiangkai commented on July 18, 2024

We will discuss the RFC in other issues.

from rvv-intrinsic-doc.

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.