Skip to content
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

Refactor native build to a shell script #2677

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Dec 10, 2024

Fixes #2598. Refactors the native build into a shell script capable of being run standalone. The shell script is configured to log its commands to make it easier to see in a buildlog how cmake is being invoked across the phases of the native build.

@jlowe jlowe added the build label Dec 10, 2024
@jlowe jlowe requested a review from gerashegalov December 10, 2024 15:52
@jlowe jlowe self-assigned this Dec 10, 2024
@jlowe
Copy link
Member Author

jlowe commented Dec 10, 2024

build

jihoonson
jihoonson previously approved these changes Dec 10, 2024
@gerashegalov
Copy link
Collaborator

This LGTM mostly.

Ideally I would like to be able to tell the external engineer a single command to rerun in the Docker container.

I put forward my suggestions as a PR to your PR branch for consideration
https://github.com/jlowe/spark-rapids-jni/pull/1/files?diff=unified&w=1

The idea is that we reproduce the native build with a single command after dropping into the build Docker container

$ ./build/run-in-docker 

Run

$ REUSE_ENV=true ./build/buildcpp.sh 

This instruction appears in the log, we can also document it in the dev documentation.

build/buildcpp.sh Show resolved Hide resolved
build/buildcpp.sh Show resolved Hide resolved
@jlowe
Copy link
Member Author

jlowe commented Dec 11, 2024

build

Copy link
Collaborator

@gerashegalov gerashegalov left a comment

Choose a reason for hiding this comment

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

LGTM

build/buildcpp.sh Show resolved Hide resolved
@@ -451,12 +448,15 @@
<env key="CUDF_PATH" value="${cudf.path}"/>
<env key="CUDF_PIN_PATH" value="${cudf.pin.path}"/>
<env key="CUDF_USE_PER_THREAD_DEFAULT_STREAM" value="${CUDF_USE_PER_THREAD_DEFAULT_STREAM}"/>
<env key="FROM_MAVEN" value="true"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] Make the native build process readable for devs without Maven experience
3 participants