-
Notifications
You must be signed in to change notification settings - Fork 112
Add support for --split-compile and --jobserver in build.sh #626
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?
Changes from all commits
1f4a0e0
970ccc4
a111bf6
a7ed7a7
e0d89ac
bce1494
da9e76f
3159ab1
14d9f4e
0aeb417
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,15 @@ | ||||||||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION. All rights reserved. | ||||||||
| # SPDX-License-Identifier: Apache-2.0 | ||||||||
|
|
||||||||
| # Makefile | ||||||||
|
|
||||||||
| LIBCUOPT_BUILD_DIR ?= cpp/build | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Default If users run Proposed fix-LIBCUOPT_BUILD_DIR ?= cpp/build
+MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
+LIBCUOPT_BUILD_DIR ?= $(MAKEFILE_DIR)/build📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||
| VERBOSE_FLAG ?= | ||||||||
| PARALLEL_LEVEL ?= | ||||||||
|
|
||||||||
| .PHONY: all ninja-build | ||||||||
|
|
||||||||
| all: ninja-build | ||||||||
|
|
||||||||
| ninja-build: | ||||||||
| cmake --build $(LIBCUOPT_BUILD_DIR) $(VERBOSE_FLAG) $(if $(PARALLEL_LEVEL),-j$(PARALLEL_LEVEL),) | ||||||||
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.
Instead of needing to directly invoke
make, you could explicitly select that in thecmakeconfigure step above if it's important, like this:That'd allow you to continue to just use
cmake --buildinstead of invoking the preferred build tool yourself.Would you consider that?
Uh oh!
There was an error while loading. Please reload this page.
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 use Ninja as the default generator; this step is only necessary in order to create a make jobserver that ninja can hook into (as a jobserver client). This workaround is (to the best of my knowledge) necessary to get nvcc's jobserver support to play nice with Ninja, which is a jobsever client itself