Skip to content

Matrix operations intrisincs #437

Answered by jjfumero
andrii0lomakin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Laa , matrix types are mapped to 1D flat arrays in OpenCL/PTX/SPIR-V. When using matrix types that contains vector types e.g., Matrix2DFloat4, the TornadoVM JIT compiler generates vector float4 instructions for all matrix elements.

At the moment (May 2024), TornadoVM does not generate any tensor instructions. Here I am assuming you refer to Intel AMX, or NVIDIA Tensor types. It is in our plans to add this, but not immediate plans at the moment. If you would like to work on this, contributions are welcome.

Regarding memory hierarchy., I am assuming you refer to shared memory (or local memory in OpenCL). The Parallel Loop API (@parallel) does not optimize this. We had a PoC but we haven…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
5 replies
@andrii0lomakin
Comment options

@jjfumero
Comment options

@andrii0lomakin
Comment options

@jjfumero
Comment options

@andrii0lomakin
Comment options

Answer selected by andrii0lomakin
Comment options

You must be logged in to vote
6 replies
@andrii0lomakin
Comment options

@stratika
Comment options

@andrii0lomakin
Comment options

@andrii0lomakin
Comment options

@stratika
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants