Skip to content

Locating libTritonCPURuntime.so only works for Python < 3.12 #76

@int3

Description

@int3

Just noticed that this breaks on 3.12 with an uncaught StopIteration:

_triton_C_dir = importlib.resources.files(triton._C).joinpath("")

Apparently I am using unsupported behavior, per python/cpython#106614

I think the right fix is to use importlib.resources.as_file(), though I think that causes the shared lib to get copied on disk. It would also require some refactoring. As I understand, there are other issues blocking us on 3.12 for now, so I don't think this is the highest pri, but let me know if it's blocking you and I'll fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions