tenstorrent / tt-metal

:metal: TT-NN operator library, and TT-Metalium low level kernel programming model.
Apache License 2.0
478 stars 78 forks source link

Binary Bitwise ops #13582

Open KalaivaniMCW opened 1 month ago

KalaivaniMCW commented 1 month ago

Op Requirement : ElemwiseBinary/ELEMWISE_BINARY_BITWISEAND ElemwiseBinary/ELEMWISE_BINARY_BITWISEOR ElemwiseBinary/ELEMWISE_BINARY_BITWISEXOR

Unary bitwise ops were implemented https://github.com/tenstorrent/tt-metal/pull/9437 , https://github.com/tenstorrent/tt-metal/pull/9436 using their respective operators ( ~ , & , | ) But the same method cannot be used in binary.

ref: https://tenstorrent.slack.com/archives/C07NTNN3QSK/p1727452697738579

amahmudTT commented 1 month ago

@KalaivaniMCW this is needed for all the architectures right ?

KalaivaniMCW commented 1 month ago

@KalaivaniMCW this is needed for all the architectures right ?

@amahmudTT at present, bitwise ops are supported for Wormhole and Blackhole, not Grayskull.

rtawfik01 commented 1 month ago

@ttmtrajkovic fyi. They want to implement binary bitwise operations, which would require copying tiles from each SrcA & B into the dest. Values in SrcA would be bit operated on by values in SrcB.