Skip to content

Use lld for builds if available - #2809

Merged
bmhowe23 merged 3 commits into
NVIDIA:mainfrom
bmhowe23:pr-lld
Apr 14, 2025
Merged

bmhowe23 merged 3 commits into
NVIDIA:mainfrom
bmhowe23:pr-lld

Conversation

@bmhowe23

@bmhowe23 bmhowe23 commented Apr 14, 2025 •

Copy link
Copy Markdown
Collaborator

Using lld instead of ld improves my link times when I make one small change and simply type ninja to rebuild. For example, some links would take ~10 seconds, and this improved it to ~2 seconds. This did not help full-up builds in any significant way during my testing, but the improvement during the incremental builds still makes this worthwhile in my opinion.

Signed-off-by: Ben Howe <bhowe@nvidia.com>
@github-actions

Copy link
Copy Markdown

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions Bot pushed a commit that referenced this pull request Apr 14, 2025
Signed-off-by: Ben Howe <bhowe@nvidia.com>
github-actions Bot pushed a commit that referenced this pull request Apr 14, 2025
@github-actions

Copy link
Copy Markdown

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

@bmhowe23 bmhowe23 closed this Apr 14, 2025
github-actions Bot pushed a commit that referenced this pull request Apr 14, 2025
github-actions Bot pushed a commit that referenced this pull request Apr 14, 2025
bmhowe23 added a commit to bmhowe23/cuda-quantum that referenced this pull request Apr 21, 2025
…rts it

Some environments (like our manylinux build environment that is based
off of AlmaLinux) don't support things like `-fuse-ld=ld`. That is -
even if `ld` is the system linker, the compiler doesn't support being
told `-fuse-ld=ld`. This change omits setting CMake variables for cases
like that, while still allowing the lld linker to be used in
environments that support it.

Signed-off-by: Ben Howe <bhowe@nvidia.com>
bmhowe23 added a commit that referenced this pull request Apr 21, 2025
…#2828)

Some environments (like our manylinux build environment that is based
off of AlmaLinux) don't support things like `-fuse-ld=ld`. That is -
even if `ld` is the system linker, the compiler doesn't support being
told `-fuse-ld=ld`. This change omits setting CMake variables for cases
like that, while still allowing the lld linker to be used in
environments that support it.

Signed-off-by: Ben Howe <bhowe@nvidia.com>
@bettinaheim bettinaheim added build The issue related to the CUDA Quantum build no release notes Don't list this PR in the release notes labels May 5, 2025
@bettinaheim bettinaheim added this to the release 0.11.0 milestone May 5, 2025
annagrin pushed a commit to annagrin/cuda-quantum that referenced this pull request Jun 17, 2025
Signed-off-by: Anna Gringauze <agringauze@nvidia.com>
annagrin pushed a commit to annagrin/cuda-quantum that referenced this pull request Jun 17, 2025
…rts it (NVIDIA#2828)

Some environments (like our manylinux build environment that is based
off of AlmaLinux) don't support things like `-fuse-ld=ld`. That is -
even if `ld` is the system linker, the compiler doesn't support being
told `-fuse-ld=ld`. This change omits setting CMake variables for cases
like that, while still allowing the lld linker to be used in
environments that support it.

Signed-off-by: Ben Howe <bhowe@nvidia.com>
Signed-off-by: Anna Gringauze <agringauze@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build The issue related to the CUDA Quantum build no release notes Don't list this PR in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants