-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build LLVM and LLVM-MCAD inside Docker | ||
on: | ||
push: | ||
#schedule: | ||
# # Run nightly at 08:00 UTC (aka 00:00 Pacific, aka 03:00 Eastern) | ||
# - cron: '0 8 * * *' | ||
|
||
permissions: | ||
contents: read # Default everything to read-only | ||
|
||
env: | ||
WORKSPACE_PATH: ${{ github.workspace }} | ||
|
||
jobs: | ||
build: | ||
# We need to run self-hosted because the GitHub runners run out of disk space. | ||
runs-on: [self-hosted, linux] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
path: 'LLVM-MCA-Daemon' | ||
- name: install dependencies | ||
run: sudo ./docker/setup-deps.sh | ||
- name: build LLVM | ||
run: ./docker/setup-llvm.sh | ||
- name: build LLVM-MCA-Daemon | ||
run: ./docker/setup-build.sh | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,19 @@ set -e | |
export DEBIAN_FRONTEND=noninteractive | ||
|
||
if [ -z "${WORKSPACE_PATH}" ]; then | ||
WORKSPACE_PATH=/work/LLVM-MCA-Daemon | ||
WORKSPACE_PATH=/work | ||
fi | ||
|
||
# Run ./setup-deps.sh before this to install dependencies needed to build LLVM | ||
|
||
# Applying the patches requires that our git user has an identity. | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Workflow" | ||
|
||
git clone https://github.com/llvm/llvm-project.git llvm | ||
cd llvm | ||
git am < ${WORKSPACE_PATH}/patches/add-identifier-to-mca-instruction.patch | ||
git am < ${WORKSPACE_PATH}/patches/start-mapping-e500-itenerary-model-to-new-schedule.patch | ||
git am < ${WORKSPACE_PATH}/patches/abstract-memory-group.patch | ||
git am ${WORKSPACE_PATH}/LLVM-MCA-Daemon/patches/*.patch | ||
mkdir build && cd build | ||
cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/opt/llvm-main \ | ||
cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=${WORKSPACE_PATH}/llvm-install \ | ||
-DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_COMPILER=clang++-14 \ | ||
-DLLVM_USE_LINKER=lld-14 -DLLVM_ENABLE_ASSERTIONS=ON \ | ||
-DLLVM_TOOL_LLVM_MCA_BUILD=ON \ | ||
|