mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
[ROCM] Add TENSORFLOW_ROCM_COMMIT parameter to ROCM ci build
This commit is contained in:
parent
500f8b7f9c
commit
0783f8982d
@ -19,6 +19,15 @@ ROCM_TF_FORK_REPO="https://github.com/ROCmSoftwarePlatform/tensorflow-upstream"
|
||||
ROCM_TF_FORK_BRANCH="develop-upstream"
|
||||
rm -rf /tmp/tensorflow-upstream || true
|
||||
git clone -b ${ROCM_TF_FORK_BRANCH} ${ROCM_TF_FORK_REPO} /tmp/tensorflow-upstream
|
||||
if [ ! -v TENSORFLOW_ROCM_COMMIT ]; then
|
||||
echo "The TENSORFLOW_ROCM_COMMIT environment variable is not set, using top of branch"
|
||||
elif [ ! -z "$TENSORFLOW_ROCM_COMMIT" ]
|
||||
then
|
||||
echo "Using tensorflow-rocm at commit: $TENSORFLOW_ROCM_COMMIT"
|
||||
cd /tmp/tensorflow-upstream
|
||||
git checkout $TENSORFLOW_ROCM_COMMIT
|
||||
cd -
|
||||
fi
|
||||
|
||||
python3 ./build/build.py --enable_rocm --rocm_path=${ROCM_PATH} --bazel_options=--override_repository=org_tensorflow=/tmp/tensorflow-upstream
|
||||
pip3 install --use-feature=2020-resolver --force-reinstall dist/*.whl # installs jaxlib (includes XLA)
|
||||
|
@ -105,6 +105,7 @@ echo "Running '${POSITIONAL_ARGS[*]}' inside ${DOCKER_IMG_NAME}..."
|
||||
docker run ${KEEP_IMAGE} --name ${DOCKER_IMG_NAME} --pid=host \
|
||||
-v ${WORKSPACE}:/workspace \
|
||||
-w /workspace \
|
||||
-e TENSORFLOW_ROCM_COMMIT=${TENSORFLOW_ROCM_COMMIT} \
|
||||
${ROCM_EXTRA_PARAMS} \
|
||||
"${DOCKER_IMG_NAME}" \
|
||||
${POSITIONAL_ARGS[@]}
|
||||
|
Loading…
x
Reference in New Issue
Block a user