We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I run the codes in contributed/matmul.py, I encounter the following error:
TypeError: Cannot update immutable parameter Z_DRAM
This is due to using Z as a parameter to matmul, which is decorated with nki.baremetal().
Is there any way to fix this error?
The Optimized matrix multiplication kernel works correctly.
Cannot update immutable parameter Z_DRAM when invoke nl.store(Z_DRAM[m_start:m_end, n_start:n_end], value=Z_SBUF[m1])
Cannot update immutable parameter Z_DRAM
nl.store(Z_DRAM[m_start:m_end, n_start:n_end], value=Z_SBUF[m1])
python contributed/matmul.py
No response
NeuronX Compiler version 2.16.372.0+4a9b2326
Python version 3.10.12 HWM version 2.16.0.372+4a9b2326 NumPy version 1.25.2
The text was updated successfully, but these errors were encountered:
Thanks @dinghongsong for filing the issue. We will take a look and get back to you.
Sorry, something went wrong.
Looks like we need to change the function singature:
@nki.jit def nki_matmul_basic_(lhsT, rhs):
we are not passing the result as parameter anymore. Check here
you can read about that error message and how to fix it here: https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/nki/api/nki.errors.html#err-cannot-update-immutable-parameter
No branches or pull requests
Describe the bug
When I run the codes in contributed/matmul.py, I encounter the following error:
TypeError: Cannot update immutable parameter Z_DRAM
This is due to using Z as a parameter to matmul, which is decorated with nki.baremetal().
Is there any way to fix this error?
Expected Behavior
The Optimized matrix multiplication kernel works correctly.
Current Behavior
Cannot update immutable parameter Z_DRAM
when invoke
nl.store(Z_DRAM[m_start:m_end, n_start:n_end], value=Z_SBUF[m1])
Reproduction Steps
python contributed/matmul.py
Regression Issue
Possible Solution
No response
Additional Information/Context
No response
neuronx-cc version used
NeuronX Compiler version 2.16.372.0+4a9b2326
Framework(s) and their versions used (JAX, PyTorch, etc..)
Python version 3.10.12 HWM version 2.16.0.372+4a9b2326 NumPy version 1.25.2
The text was updated successfully, but these errors were encountered: