Skip to content

Building from source caused uint issue + suggested fix #951

@EnragedAntelope

Description

@EnragedAntelope

Hi,
I was on torchao 0.1. When I used pip install --upgrade torchao, it kept me on 0.1 for some reason.

So I built from source, but wanted to let you know I encountered this error initially:

D:\ao\torchao\csrc\cuda\sparse_marlin\base.h(47): error: identifier "uint" is undefined

  using FragM = Vec<uint, 1>;
                    ^

I asked Claude to review, and it gave me a working solution:


1. Contact the package maintainers:
If this is a public package, you could report this issue to the maintainers of the torchao package. They might need to update their code to use unsigned int instead of uint, or properly include the necessary header that defines uint.

2. Modify the source code:
Open the file D:\ao\torchao\csrc\cuda\sparse_marlin\base.h
Find line 47 (or thereabouts)
Change uint to unsigned int

Just making you aware in case that change should be made for all.

Thank you!

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