Skip to content

add function to build specific gpu-arches [REVIEW] #766

Merged
rapids-bot[bot] merged 8 commits intorapidsai:branch-25.04from
nvrohanv:rohanv/feat/build-for-specific-gpu-arch
Apr 1, 2025
Merged

add function to build specific gpu-arches [REVIEW] #766
rapids-bot[bot] merged 8 commits intorapidsai:branch-25.04from
nvrohanv:rohanv/feat/build-for-specific-gpu-arch

Conversation

@nvrohanv
Copy link
Copy Markdown
Contributor

@nvrohanv nvrohanv commented Mar 15, 2025

This PR adds in functions to the root level build.sh so that you can specify which GPU architectures you want to build for. Currently the only options were to build for the current system or for all systems. It also adds this option into examples/build.sh in addition to fixing bugs with the clean command.

A --gpu-arch option is added that is meant to be used to provide which architectures to build for e.g. ./build.sh bench-ann --gpu-arch="80-real;90-real"

@nvrohanv nvrohanv requested a review from a team as a code owner March 15, 2025 00:00
@nvrohanv nvrohanv requested a review from msarahan March 15, 2025 00:00
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Mar 15, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@nvrohanv nvrohanv requested a review from a team as a code owner March 17, 2025 20:53
@nvrohanv nvrohanv marked this pull request as draft March 17, 2025 22:44
@nvrohanv nvrohanv marked this pull request as ready for review March 17, 2025 22:45
@nvrohanv nvrohanv changed the title add function to build specific gpu-arches [REVIEW] add function to build specific gpu-arches [REVIEW] Mar 17, 2025
@bkarsin bkarsin added non-breaking Introduces a non-breaking change Build improvement Improves an existing functionality labels Mar 20, 2025
Comment thread build.sh
if hasArg --allgpuarch && [[ -n $(echo $ARGS | { grep -E "\-\-gpu\-arch" || true; } ) ]]; then
echo "Error: Cannot specify both --gpu-arch and --allgpuarch"
echo "Use either:"
echo " --gpu-arch=\"80-real;90-real\" (for specific architectures)"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add a link or reference about different architecture numbers and real vs. virtual? Some users may not know where to find this info.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added in instructions and a link in the help message for the main command. the example build.sh seems more barebone and doesn't have a help message so didn't add anything there, but presumably someone would've used the main build.sh first.

@gforsyth
Copy link
Copy Markdown
Contributor

/ok to test

Copy link
Copy Markdown
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

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

Very useful. Great to see users can't specify both allgpuarch and gpuarchs. Thanks!

Copy link
Copy Markdown
Contributor

@lowener lowener left a comment

Choose a reason for hiding this comment

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

LGTM

@gforsyth
Copy link
Copy Markdown
Contributor

gforsyth commented Apr 1, 2025

/ok to test

@gforsyth
Copy link
Copy Markdown
Contributor

gforsyth commented Apr 1, 2025

/ok to test

@gforsyth gforsyth removed the request for review from msarahan April 1, 2025 16:21
@gforsyth
Copy link
Copy Markdown
Contributor

gforsyth commented Apr 1, 2025

/merge

@rapids-bot rapids-bot Bot merged commit af3a4ac into rapidsai:branch-25.04 Apr 1, 2025
66 checks passed
@nvrohanv nvrohanv deleted the rohanv/feat/build-for-specific-gpu-arch branch April 15, 2025 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants