-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Rebuild for CUDA 12 #4
Rebuild for CUDA 12 #4
Conversation
…nda-forge-pinning 2023.05.31.19.00.54
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 ( |
@conda-forge-admin, please re-render |
…nda-forge-pinning 2023.05.31.22.15.24
...compiler_version12cuda_compilercuda-nvcccuda_compiler_version12.0cxx_compiler_version12.yaml
Show resolved
Hide resolved
Need to add a conditional for cuda 12 so that arch 35 is dropped (and 90 is added?). |
Here's the current CI error:
This indicates that this line likely needs changes for CUDA 12 libmagma-feedstock/recipe/build.sh Lines 7 to 8 in ef6963b
Could do something like this to pass relevant GPU architectures based on CUDA version used According to this doc Edit: Seems we posted the same thing. Sorry didn't see your comment until posting. In any event maybe the added detail is helpful 🙂 |
That's a good hint! I'm not very proficient in bash, so I didn't know you could do matching with wildcards like that! I use Wikipedia to look up and make choices about which archs to build for because they have very good tables. |
For CUDA 12 the following errors from CMake:
I don't think cublas would have been removed from the cudatoolkit, but maybe the name changed or these targets are missing from exported the CMake files? |
@jakirkham, is the transition to CUDA 12 also the transition to the new CUDA packages? i.e. I now need to depend on the |
Yeah exactly Think we need something like this. Though probably can be simplified significantly Would start with just - libcublas-dev # [cuda_compiler_version == "12.0"] |
CUDA 12 library headers are moved, and thus no longer found by the compiler. Wait on this PR until we figure out whether the solution is elsewhere or requires modifying this recipe. |
Yeah we add these headers to host compiler's include path ( Do we have a sense of where |
It looks like y'all are adding these include paths to the This is subtlety that should be noted. |
@jakirkham According to the logs, a prefix with CUDA headers is being added, but it's incomplete.
The problem is that |
But both $PREFIX and $BUILD_PREFIX are added in the activation script you linked... |
This package is sorting compiler options into different categories: CXXFLAGS, CFLAGS, NVCCFLAGS, and INCLUDE_DIRECTORIES. I just need to insure that each gets the appropriate flags. |
recipe/build.sh
Outdated
export CUDA_ARCH_LIST="sm_60;sm_80" | ||
export CUDAARCHS="60-virtual;80-virtual" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export CUDA_ARCH_LIST="sm_60;sm_80" | |
export CUDAARCHS="60-virtual;80-virtual" | |
export CUDA_ARCH_LIST="sm_60" | |
export CUDAARCHS="60-virtual" |
Still only enough time for one arch on Travis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could try cross-compiling if that is helpful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does CUDA 11 support cross-compile? If not, I need to wait for the second migrator for arm/ppc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep it does. Several packages are already building for CUDA 11 using cross-compilation. For example nccl
uses cross-compilation
It also will be supported for CUDA 12 (once work on the other archs wraps up)
Co-authored-by: jakirkham <jakirkham@gmail.com>
recipe/recipe-scripts-license.txt
Outdated
@@ -0,0 +1,27 @@ | |||
BSD-3-Clause license |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting was this meant to be added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conda-smithy added it, and I don't oppose it, so yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I guess it's redundant.
Thanks Daniel! 🙏 This is pretty impressive work 👏 We're looking into the compiler flag issue ( conda-forge/cuda-nvcc-feedstock#18 ) (as Bradley noted over there) |
@conda-forge-admin, please re-render |
Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you, but it looks like there was nothing to do. This message was generated by GitHub actions workflow run https://github.com/conda-forge/libmagma-feedstock/actions/runs/5156798505. |
@jakirkham, on powerpc, the linking step fails because gcc is trying to link with the x86 cuda runtime instead of the powerpc runtime. Arm is fine though. Compare the end of the linking line for ARM:
with powerpc
Paths to |
Yeah CUDA 12 on other architectures needs a bit more work. Hence we paused that migrator That said, would go ahead and file this as an issue on the cuda-nvcc feedstock and we can take a look |
This is for CUDA 11, not CUDA 12. |
Hi! This is the friendly conda-forge automerge bot! Commits were made to this PR after the |
…nda-forge-pinning 2023.06.02.15.08.09
Ah ok. Sorry for the confusion Think we might want to change these lines then If you would like to start a PR, would be happy to review 🙂 |
Hi! This is the friendly conda-forge automerge bot! I considered the following status checks when analyzing this PR:
Thus the PR was passing and merged! Have a great day! |
One of the jobs timed out. Restarting to see if it was just a transient issue |
It probably timed out because I've been playing with the number of target CUDA archs. Jobs time out when the list is too long. |
Maybe Think it was a Windows job fwiw Saw a few odd things in CI recently. So it could also be some other issue |
The Windows job appears to be failing on |
This PR has been triggered in an effort to update cuda120.
Notes and instructions for merging this PR:
Please note that if you close this PR we presume that the feedstock has been rebuilt, so if you are going to perform the rebuild yourself don't close this PR until the your rebuild has been merged.
If this PR was opened in error or needs to be updated please add the
bot-rerun
label to this PR. The bot will close this PR and schedule another one. If you do not have permissions to add this label, you can use the phrase@conda-forge-admin, please rerun bot
in a PR comment to have theconda-forge-admin
add it for you.This PR was created by the regro-cf-autotick-bot. The regro-cf-autotick-bot is a service to automatically track the dependency graph, migrate packages, and propose package version updates for conda-forge. Feel free to drop us a line if there are any issues! This PR was generated by https://github.com/regro/cf-scripts/actions/runs/5137011166, please use this URL for debugging.