mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 20:06:05 +00:00

This commit introduces new CI scripts and environment files for running Bazel CPU presubmits. * Adds a ci directory at the root of the repository to store these files. * Environment files are located in ci/envs and define new JAXCI_ environment variables to control CI build behavior. * The build script sources these environment files and set up the build environment before running the build commands. PiperOrigin-RevId: 695957540
37 lines
1.7 KiB
Bash
37 lines
1.7 KiB
Bash
# Copyright 2024 The JAX Authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
# ==============================================================================
|
|
# This file contains all the default values for the "JAXCI_" environment
|
|
# variables used in the CI scripts. These variables are used to control the
|
|
# behavior of the CI scripts such as the Python version used, path to JAX/XLA
|
|
# repo, if to clone XLA repo, etc.
|
|
|
|
# The path to the JAX git repository.
|
|
export JAXCI_JAX_GIT_DIR=$(pwd)
|
|
|
|
# Controls the version of Hermetic Python to use. Use system default if not
|
|
# set.
|
|
export JAXCI_HERMETIC_PYTHON_VERSION=${JAXCI_HERMETIC_PYTHON_VERSION:-$(python3 -V | awk '{print $2}' | awk -F. '{print $1"."$2}')}
|
|
|
|
# Set JAXCI_XLA_GIT_DIR to the root of the XLA git repository to use a local
|
|
# copy of XLA instead of the pinned version in the WORKSPACE. When
|
|
# JAXCI_CLONE_MAIN_XLA=1, this gets set automatically.
|
|
export JAXCI_XLA_GIT_DIR=${JAXCI_XLA_GIT_DIR:-}
|
|
|
|
# If set to 1, the builds will clone the XLA repository at HEAD and set its
|
|
# path in JAXCI_XLA_GIT_DIR.
|
|
export JAXCI_CLONE_MAIN_XLA=${JAXCI_CLONE_MAIN_XLA:-0}
|
|
|
|
# Allows overriding the XLA commit that is used.
|
|
export JAXCI_XLA_COMMIT=${JAXCI_XLA_COMMIT:-} |