Skip to content
New issue

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

Remove TH_BINARY_BUILD? #330

Open
mgorny opened this issue Jan 23, 2025 · 2 comments
Open

Remove TH_BINARY_BUILD? #330

mgorny opened this issue Jan 23, 2025 · 2 comments
Labels
question Further information is requested

Comments

@mgorny
Copy link
Contributor

mgorny commented Jan 23, 2025

Comment:

I'm wondering if we can remove TH_BINARY_BUILD from the build scripts.

I've tried to find its origin, but it seems to have been added as a blank "sync with AnacondaRecipes". FWICS @danpetry removed it recently: AnacondaRecipes/pytorch-feedstock@d972b30

FWICS it does three things:

  1. It blocks using cufile — which we patch out right now, so we could get rid of the patch if we removed it.
  2. It enables "special linking" to blas — which apparently means repeating the library three times. I really have no clue why they did that, and going through history, it seems that it was like that from day one. At the time, that was the only option; however, when moving stuff around, they've added the "else" condition that links BLAS only once.
  3. It adds some BLAS-related undefined symbol hack.

All things considered, I think it may be worth a try.

@danpetry
Copy link
Contributor

Yeah, the description of this variable seems to be "Is it a binary build"? Which is confusing. I couldn't figure out what it was really for conceptually and removed it and things seemed to be ok. Actually it was removed quite a while ago, that commit is re-instating previous changes after a sync with conda-forge.

For whatever it's worth, pytorch set it in their build scripts

I guess the best approach, rather than keeping it around for unknown reasons, would be to remove it and then watch out for cufile/blas related issues and add it back if needed?

@mgorny
Copy link
Contributor Author

mgorny commented Jan 24, 2025

I think it roughly meant "this is our official portable build for binary distribution".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants