Skip to content

Conversation

@carterbox
Copy link
Member

@carterbox carterbox commented Dec 30, 2025

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

@carterbox carterbox requested review from a team, jakirkham and leofang as code owners December 30, 2025 19:17
@conda-forge-admin
Copy link
Contributor

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 (recipe/meta.yaml) and found it was in an excellent condition.

Copy link
Member

@jakirkham jakirkham left a 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

Comment on lines +10 to +36
# 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
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

3 participants