Skip to content

Commit 43bf80b

Browse files
Update benchmarks.yml
1 parent 57c1673 commit 43bf80b

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

.github/workflows/benchmarks.yml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -48,41 +48,42 @@ jobs:
4848
# working-directory: xla
4949
# continue-on-error: true
5050
# run: bazel test -c opt --config=cuda //xla/service/gpu/tests:gpu_atomic_test
51-
xla-gpu-ci:
52-
runs-on: linux-x86-g2-48-l4-4gpu # Or another suitable GPU runner
51+
52+
build-xla-gpu:
53+
runs-on: linux-x86-g2-48-l4-4gpu # Use a GPU-enabled runner
5354
container:
54-
image: "gcr.io/tensorflow-testing/nosla-cuda12.3-cudnn9.1-ubuntu20.04-manylinux2014-multipython:latest"
55+
image: nvidia/cuda:12.0-base-ubuntu20.04-devel # Choose appropriate CUDA version and base image
56+
options: --gpus all --privileged # Might need privileged mode, use with caution
5557

5658
steps:
57-
- name: Checkout XLA with submodules
59+
- name: Checkout XLA
5860
uses: actions/checkout@v3
5961
with:
60-
repository: openxla/xla
62+
repository: openxla/xla # Replace with your fork if needed
6163
path: xla
62-
submodules: recursive
63-
64-
- name: Install Docker
65-
run: |
66-
apt-get update -y
67-
apt-get install -y \
68-
ca-certificates \
69-
curl \
70-
gnupg \
71-
lsb-release
7264

73-
## Add this line to import the Docker GPG key:
74-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
65+
- name: Install dependencies
66+
working-directory: xla
67+
run: |
68+
sudo apt-get update -y
69+
sudo apt-get install -y python3 python3-dev python3-pip # Add other required packages
7570
76-
echo \
77-
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
78-
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
71+
- name: Install Python dependencies
72+
working-directory: xla
73+
run: |
74+
python3 -m pip install --upgrade pip
75+
pip3 install wheel setuptools numpy # Add other required Python packages
7976
80-
apt-get update -y
81-
apt-get install -y docker-ce docker-ce-cli containerd.io
82-
# Add any necessary Docker configuration here, if required
77+
- name: Configure Bazel
78+
working-directory: xla
79+
run: |
80+
echo "build --action_env PYTHON_BIN_PATH=\"/usr/bin/python3\"" >> ~/.bazelrc
81+
echo "build --python_path=\"/usr/bin/python3\"" >> ~/.bazelrc
82+
# Add other Bazel configuration options if needed
8383
84-
- name: Pull Docker image
85-
run: docker run --name xla_gpu -w /xla -it -d --rm -v $PWD:/xla tensorflow/build:latest-python3.9 bash
84+
- name: Build XLA with GPU support
85+
working-directory: xla
86+
run: bazel build -c opt --config=cuda //xla/...
8687

8788

8889

0 commit comments

Comments
 (0)