-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into common-dims
- Loading branch information
Showing
244 changed files
with
16,767 additions
and
11,999 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 |
---|---|---|
|
@@ -55,6 +55,7 @@ jobs: | |
-DMIGRAPHX_ENABLE_GPU=On \ | ||
-DMIGRAPHX_ENABLE_CPU=On \ | ||
-DMIGRAPHX_ENABLE_FPGA=On \ | ||
-DMIGRAPHX_ENABLE_MLIR=On \ | ||
-DBUILD_DEV=On \ | ||
-DROCM_ENABLE_GH_ANNOTATIONS=On \ | ||
-DCLANG_TIDY_DEPEND_ON_TARGET=Off \ | ||
|
@@ -169,6 +170,71 @@ jobs: | |
git config --global --add safe.directory /data | ||
python3 tools/format.py origin/${{ github.event_name == 'pull_request' && github.base_ref || 'develop' }} | ||
sles: | ||
runs-on: ROCM-Ubuntu | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# In this step, this action saves a list of existing images, | ||
# the cache is created without them in the post run. | ||
# It also restores the cache if it exists. | ||
- name: Docker layer cache | ||
uses: jpribyl/[email protected] | ||
with: | ||
key: docker-layer-caching-migraphx-sles-${{hashFiles('hip-clang.docker', '**/*requirements.txt', '**/install_prereqs.sh', 'rbuild.ini')}} | ||
restore-keys: | ||
docker-layer-caching-migraphx-sles- | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
|
||
- name: Build the Docker image | ||
run: docker build . --file tools/docker/sles.docker --tag migraphx-sles | ||
|
||
- name: Restore cache files for ccache | ||
uses: actions/cache/restore@v3 | ||
id: ccache_restore | ||
with: | ||
path: ${{ github.workspace }}/ccache | ||
key: ccache-sles-${{ github.ref }} | ||
restore-keys: ccache-sles- | ||
|
||
- name: Build migraphx | ||
shell: bash -c "docker run -i -v=$GITHUB_WORKSPACE:/data -w /data migraphx-sles bash < {0}" | ||
run: | | ||
set -e | ||
export CCACHE_COMPRESSLEVEL=10 | ||
export CCACHE_DIR=/data/ccache | ||
export CCACHE_NOHASHDIR=true | ||
export CCACHE_BASEDIR=/data | ||
export CCACHE_MAXSIZE=1 | ||
mkdir build | ||
cd build | ||
CXX=/opt/rocm/llvm/bin/clang++ CC=/opt/rocm/llvm/bin/clang cmake \ | ||
-DBUILD_DEV=On \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache \ | ||
.. | ||
make -j$(nproc) tests driver | ||
- name: Clear ccache cache before saving | ||
if: ${{ steps.ccache_restore.outputs.cache-hit }} | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
set +x | ||
gh extension install actions/gh-actions-cache --pin v1.0.1 | ||
gh actions-cache delete ${{ steps.ccache_restore.outputs.cache-matched-key }} --confirm | ||
- name: Save cache files for ccache | ||
uses: actions/cache/save@v3 | ||
if: always() | ||
with: | ||
path: ${{ github.workspace }}/ccache | ||
key: ccache-sles-${{ github.ref }} | ||
|
||
pyflakes: | ||
runs-on: ubuntu-20.04 | ||
|
||
|
@@ -274,11 +340,10 @@ jobs: | |
# This path is specific to Ubuntu | ||
path: ${{ github.workspace }}/cget | ||
# Look to see if there is a cache hit for the corresponding requirements file | ||
key: ${{ matrix.os }}-cget-4-${{ hashFiles('requirements.txt', 'dev-requirements.txt') }} | ||
key: ${{ matrix.os }}-cget-4-${{ hashFiles('requirements.txt', 'dev-requirements.txt', 'rbuild.ini') }} | ||
restore-keys: ${{ matrix.os }}-cget-4- | ||
|
||
- name: Install dependencies | ||
if: steps.deps_cache.outputs.cache-hit != 'true' | ||
run: rbuild prepare -d cget -s gh | ||
|
||
- name: Restore cache files for ccache | ||
|
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
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 |
---|---|---|
|
@@ -77,6 +77,9 @@ ADD dev-requirements.txt /dev-requirements.txt | |
ADD requirements.txt /requirements.txt | ||
ADD rbuild.ini /rbuild.ini | ||
|
||
# Temporarily install a new cmake until switching to ubuntu 22.04 | ||
RUN pip3 install cmake==3.22.1 | ||
|
||
COPY ./tools/install_prereqs.sh / | ||
RUN /install_prereqs.sh /usr/local / && rm /install_prereqs.sh | ||
RUN test -f /usr/local/hash || exit 1 | ||
|
@@ -98,6 +101,9 @@ RUN cget -p $PREFIX install facebook/[email protected] -X subdir -DCMAKE_DIR=build/cma | |
RUN cget -p $PREFIX install [email protected] -DENABLE_TESTING=OFF | ||
RUN cget -p /opt/cmake install kitware/[email protected] | ||
|
||
# Install MLIR | ||
ADD mlir-requirements.txt /mlir-requirements.txt | ||
RUN cget -p /usr/local install -f /mlir-requirements.txt | ||
|
||
COPY ./test/onnx/.onnxrt-commit / | ||
|
||
|
@@ -113,9 +119,6 @@ RUN git clone --single-branch --branch ${ONNXRUNTIME_BRANCH} --recursive ${ONNXR | |
|
||
ADD tools/build_and_test_onnxrt.sh /onnxruntime/build_and_test_onnxrt.sh | ||
|
||
# Use the /opt/cmake install because LLVM/MLIR need cmake >= 3.20 | ||
RUN env PATH=/opt/cmake/bin:$PATH cget -p /usr/local install ROCmSoftwarePlatform/rocMLIR@1ad9d6df32acc6d29d58e8ed6710e36746d0a4d6 -DBUILD_FAT_LIBROCKCOMPILER=On | ||
|
||
ENV MIOPEN_FIND_DB_PATH=/tmp/miopen/find-db | ||
ENV MIOPEN_USER_DB_PATH=/tmp/miopen/user-db | ||
ENV LD_LIBRARY_PATH=$PREFIX/lib | ||
|
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
Oops, something went wrong.