-
Notifications
You must be signed in to change notification settings - Fork 360
Use shell script to drive jaxlib build #909
base: main
Are you sure you want to change the base?
Conversation
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.
nice cleanup.
let's figure out when we should merge this.
|
||
if [[ "${EDITABLE}" == "1" ]]; then | ||
BUILD_PARAM="${BUILD_PARAM} --editable" | ||
fi |
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.
why don't we do this directly in the flag parsing while loop above?
you then don't need the additional EDITABLE variable.
|
||
if [[ "$DEBUG" == "1" ]]; then | ||
BUILD_PARAM="${BUILD_PARAM} --bazel_options=-c --bazel_options=dbg --bazel_options=--strip=never --bazel_options=--cxxopt=-g --bazel_options=--cxxopt=-O0" | ||
fi |
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.
same for --debug I guess ...
print_var TF_NCCL_VERSION | ||
print_var CC_OPT_FLAGS | ||
|
||
print_var BUILD_PARAM |
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.
BUILD_PARAM is printed twice. get rid of the one above I guess?
@@ -0,0 +1,30 @@ | |||
//usr/bin/env nvcc -odir `mktemp -d` -x cu --run "$0" ${1:+--run-args "${@:1}"} ; exit $? |
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.
is this a new util?
Together with jax-ml/jax#15205, this should eliminate the need to apply the
build_jaxlib/update_build_scripts.patch
each time we rebase. Note the--editable
option will only be usable once alpa is rebased onto JAX 0.4.8.The original
update_build_scripts.patch
file is meant to provide two functionalities: