-
-
Notifications
You must be signed in to change notification settings - Fork 19
NEW: Add tegra variant for CUDA 12.9 #151
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
base: main
Are you sure you want to change the base?
Conversation
|
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 ( |
jakirkham
left a comment
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.
Thanks Daniel! 🙏
Had one comment below
Otherwise LGTM
| # Convert CUDAARCHS to NVCC_GENCODE if available | ||
| if [[ -n "${CUDAARCHS}" ]]; then | ||
| NVCC_GENCODE="" | ||
| IFS=';' read -ra ARCHS <<< "$CUDAARCHS" | ||
| for arch_spec in "${ARCHS[@]}"; do | ||
| # Remove any leading/trailing whitespace | ||
| arch_spec=$(echo "$arch_spec" | xargs) | ||
|
|
||
| # Parse architecture number and suffix (e.g., "87-real", "101f-virtual") | ||
| if [[ "$arch_spec" =~ ^([0-9]+)([a-z]*)-(real|virtual)$ ]]; then | ||
| arch_num="${BASH_REMATCH[1]}" | ||
| arch_suffix="${BASH_REMATCH[2]}" | ||
| code_type="${BASH_REMATCH[3]}" | ||
|
|
||
| # Build the full architecture string with suffix if present | ||
| full_arch="${arch_num}${arch_suffix}" | ||
|
|
||
| if [[ "$code_type" == "real" ]]; then | ||
| NVCC_GENCODE="${NVCC_GENCODE} -gencode=arch=compute_${full_arch},code=sm_${full_arch}" | ||
| elif [[ "$code_type" == "virtual" ]]; then | ||
| NVCC_GENCODE="${NVCC_GENCODE} -gencode=arch=compute_${arch_num},code=compute_${arch_num}" | ||
| fi | ||
| fi | ||
| done | ||
| # Trim leading space | ||
| export NVCC_GENCODE="${NVCC_GENCODE# }" | ||
| fi |
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.
Discussed this block with Daniel offline, our plan is to move this into the nvcc feedstock as another variable
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.
Upstream relevant code for choosing NVCC_GENCODE:
https://github.com/NVIDIA/nccl/blob/1e0c869c39bb33f1034cb9920bd2a8a8406f04a3/makefiles/common.mk#L34
Checklist
0(if the version changed)conda-smithy(Use the phrase@conda-forge-admin, please rerenderin a comment in this PR for automated rerendering)