triton
triton copied to clipboard
Cannot import name 'libdevice' from 'triton.language'
I try the example from https://triton-lang.org/main/getting-started/tutorials/07-extern-functions.html#. And I get an error as follow.
The triton version I use is Triton2.3.0 under the python3.10.
Note: This problem seems to be resolved on main
(triton-3.0.0
)
(I was able to repro this issue on 2.2.0
)
Thank you, @alat-rights. I use a nightly build, and it works smoothly.
Good to hear.
I think it would be good to write unit tests for all of the tutorial code, so that Triton devs can catch these regressions.
@mazhaojia123 @alat-rights The tutorials code are implicitly tied to the repo node that Triton is built and installed from for that version. I don't think there is any backwards compatibility guarantee. So you can clone a release branch and run that version of the tutorial that matches the Triton release you have installed, or run Triton nightly with tip of main branch or close to it.