Update 2.1.0 again - #203
Conversation
…nda-forge-pinning 2023.11.06.18.45.06
|
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
|
Thanks Mark! 🙏 It appears this is due to a change introduced in PyTorch 2.1.0's own CTK detection logic. Unfortunately this check is problematic In the Conda case, we implement a splayed layout. This means build tools (like those listed in It looks like @ax3l ran into this issue in the HPC SDK use case and proposed a fix ( pytorch/pytorch#108932 ). Idk if that will work for us In terms of our needs here, maybe just patching the check out altogether would be reasonable to get the build working Perhaps this would be a good opportunity to discuss with @peterbell10 whether we can come up with a better check in PyTorch that works for splayed layout use cases |
|
ok lets try again, i took a brute force approach because we can do a bit of meta building |
|
It now fails with: |
|
Thanks Mark! 🙏 Think that refers to this check As noted under the Am guessing PyTorch doesn't use NVTX 2 (as this check was new in that PR). Meaning that this was purely a build configuration check So think we can remove those lines as well |
|
can i remove it too? |
jakirkham
left a comment
There was a problem hiding this comment.
Hmm...think you make a good point
In looking through the code see some references to NVTX 2
We could override where PyTorch looks for NVTX, but maybe it is best to point PyTorch to where the bulk of the CTK content is in the native compilation case
It's possible this will need tweaking further in the build, but hopefully this unblocks configuration
Co-authored-by: jakirkham <jakirkham@gmail.com>
…nda-forge-pinning 2023.11.06.18.45.06
|
ok well i pushed my changes, feel free to push anything if you can. going to slee.... |
|
Thanks Mark! 🙏 Have a good night |
Closes #108931, closes #108932, see also conda-forge/pytorch-cpu-feedstock#203 Currently we compare `CUDA_INCLUDE_DIRS` and expect exact equality with `CUDAToolkit_INCLUDE_DIR` however this fails in the presense of symbolic links or for split installs where there are multiple include paths. Given that, it makes sense to loosen the requirement to just version equality under the assumption that two installs of the same version should still be compatible. Pull Request resolved: #113174 Approved by: https://github.com/malfet
|
It looks like Peter added a fix upstream ( pytorch/pytorch#113174 ). Thanks Peter! 🙏 Maybe we can give that a try |
|
it doesn't address the nvtools issue |
|
There are two upsteam PRs that solve the nvtools issue; I am not sure which one is preferable. See pytorch/pytorch#101135 and PRs pytorch/pytorch#97582 and pytorch/pytorch#106763 |
|
ok builds are incoming: My test was to use import torch
a = torch.randn(1024 * 1024 * 1024, device='cuda')
a + 1and watch the memory on my cuda device grow using nvtop |
| skip: true # [cuda_compiler_version == "10.2"] | ||
| skip: true # [cuda_compiler_version == "11.0"] | ||
| skip: true # [cuda_compiler_version == "11.1"] | ||
| skip: true # [cuda_compiler_version != "12.0"] |
There was a problem hiding this comment.
Guessing this is a temporary measure to reign in builds offline. Is that right?
There was a problem hiding this comment.
yes. I can add a note about it. but I'm not thrilled about using 8OSX CPUs for 8-12 hours for this.
There was a problem hiding this comment.
Do you mean the CI CPUs? If so, can't we stop the Azure builds manually? Or do you need help with local builds?
There was a problem hiding this comment.
I don't know how to stop the build manually. I just feel that somebody will remember to enable the osx builds.....
|
Nice work Mark! 🥳 @peterbell10 do the patches here look upstreamable to you? Or are there similar approaches that upstream could take that would alleviate the need for these? |
Closes pytorch#108931, closes pytorch#108932, see also conda-forge/pytorch-cpu-feedstock#203 Currently we compare `CUDA_INCLUDE_DIRS` and expect exact equality with `CUDAToolkit_INCLUDE_DIR` however this fails in the presense of symbolic links or for split installs where there are multiple include paths. Given that, it makes sense to loosen the requirement to just version equality under the assumption that two installs of the same version should still be compatible. Pull Request resolved: pytorch#113174 Approved by: https://github.com/malfet

@jakirkham the same error happened again.
The CI should show it too:
Checklist
0(if the version changed)conda-smithy(Use the phrase@conda-forge-admin, please rerenderin a comment in this PR for automated rerendering)