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

Switch to CPU PyTorch #10914

Merged
merged 2 commits into from
Apr 12, 2022
Merged

Switch to CPU PyTorch #10914

merged 2 commits into from
Apr 12, 2022

Conversation

t-vi
Copy link
Contributor

@t-vi t-vi commented Apr 6, 2022

This switches the PyTorch we install use to CPU only.
As discussed in #10758 we see funny things when linking libtorch (which is in general linked to a different version of CUDA than TVM will use) into libtvm.
This also cleans up some of the cuda use in the frontend tests (so hopefully it can run on CPU only but will make use of the GPU if available locally). This is a bit of a tough call, it might make sense to remove all optional CUDA use with the thought that we want local tests to reproduce the CI as closely as possible, if you have comments, I'm all ears.

@masahi
Copy link
Member

masahi commented Apr 6, 2022

@driazati Any idea why the docker image build fails? https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-10914/1/pipeline

@t-vi
Copy link
Contributor Author

t-vi commented Apr 12, 2022

Looks like the CI is happy now. :) Thank you for your help.

@masahi masahi merged commit a508cba into apache:main Apr 12, 2022
@masahi masahi mentioned this pull request Apr 13, 2022
Lucien0 pushed a commit to Lucien0/tvm that referenced this pull request Apr 19, 2022
altanh pushed a commit to altanh/tvm that referenced this pull request Apr 28, 2022
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

Successfully merging this pull request may close these issues.

2 participants