Skip to content

Allo FPGA Weekly Test #28

Allo FPGA Weekly Test

Allo FPGA Weekly Test #28

Workflow file for this run

# Copyright Allo authors. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
name: "Allo FPGA Weekly Test"
on:
schedule:
# Run weekly at Sunday 1:00 AM UTC.
# This corresponds to Saturday 8:00 PM EST and Saturday 9:00 PM EDT.
- cron: '0 1 * * 0'
workflow_dispatch: # Allow manual triggering from GitHub Actions UI
jobs:
fpga_test:
runs-on: [brg-zhang-xcel]
container:
image: chhzh123/allo:latest
options: >-
-v /opt/xilinx/Vitis:/opt/xilinx/Vitis
-v /opt/xilinx/Vitis_HLS:/opt/xilinx/Vitis_HLS
-v /opt/xilinx/Vivado:/opt/xilinx/Vivado
-v /opt/xilinx/platforms:/opt/xilinx/platforms
env:
XILINXD_LICENSE_FILE: 2100@en-license-05.coecis.cornell.edu
VITIS: /opt/xilinx/Vitis/2023.2
HLS_INCLUDE: /opt/xilinx/Vitis_HLS/2023.2/include
XDEVICE: /opt/xilinx/platforms/xilinx_u280_gen3x16_xdma_1_202211_1/xilinx_u280_gen3x16_xdma_1_202211_1.xpfm
XILINX_VITIS: /opt/xilinx/Vitis/2023.2
XILINX_VIVADO: /opt/xilinx/Vivado/2023.2
XILINX_HLS: /opt/xilinx/Vitis_HLS/2023.2
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
steps:
- name: Install git and setup locale in container
run: |
apt-get update && apt-get -y install git locales
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen
locale-gen en_US.UTF-8
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Build Allo
shell: bash
run: |
source activate allo
export LLVM_BUILD_DIR=/root/llvm-project/build
python3 -m pip install -v -e .
- name: Run Feather GEMM
shell: bash
run: |
source activate allo
export LLVM_BUILD_DIR=/root/llvm-project/build
export PATH=/opt/xilinx/Vitis/2023.2/bin:/opt/xilinx/Vivado/2023.2/bin:/opt/xilinx/Vitis_HLS/2023.2/bin:$PATH
cd examples/feather
python gemm.py