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

Can't compile static #877

Open
theaddonn opened this issue Jul 12, 2024 · 3 comments
Open

Can't compile static #877

theaddonn opened this issue Jul 12, 2024 · 3 comments

Comments

@theaddonn
Copy link

I tried linking it statically via setting the env var LIBTORCH_STATIC to 1, but I got the error when trying to compile it:

LINK : fatal error LNK1356: cannot find library `dnnl_graph.lib' specified to be whole archived

What can I do to get torch linked statically?

@cantor-set
Copy link

@theaddonn Were you able to fix this issue? I am encountering the same problem. So far, I have

  • Compiled torchlib
  • Compiled asmjit
  • Compiled OneDNN

Stuck on the error asking for that library dnnl_graph which is a cpp header on the third party folder of torch, I am not able to compile it independently.

Not sure if relevant, I am seeing this error on Apple Silicon M1.

@theaddonn
Copy link
Author

@cantor-set no, I sadly couldn't. Please, if you find out how. Contact me please

@cantor-set
Copy link

I tried this on Linux. Same result. Static build seems to be broken.

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

No branches or pull requests

2 participants