-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CACHE_VERSION: v1 | ||
|
||
name: Regress Olympia on MacOS | ||
jobs: | ||
build_test_job: | ||
strategy: | ||
# Strategy is a matrix of debug and release builds/regression | ||
matrix: | ||
os: [macos-12] | ||
BUILD_TYPE: [Debug] | ||
COMPILER: [clang] | ||
|
||
name: MacOS-${{ matrix.BUILD_TYPE }}-${{matrix.COMPILER}} | ||
runs-on: ${{ matrix.os }} | ||
|
||
# Set up a global environment variable for build scripts | ||
env: | ||
OLYMPIA_BUILD_TYPE: ${{ matrix.BUILD_TYPE }} | ||
COMPILER: ${{ matrix.COMPILER }} | ||
|
||
steps: | ||
|
||
# Get Olympia | ||
- name: Checkout Olympia | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
# Get Sparta | ||
- name: Checkout Sparta | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: sparcians/map | ||
path: map | ||
ref: map_v2.0.13 | ||
|
||
# Setup Conda and build environment | ||
- name: Grab Python v3.8 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8 | ||
|
||
# Cache the conda dependencies to | ||
- name: Cache conda deps | ||
uses: actions/cache@v3 | ||
with: | ||
key: ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-conda-${{ hashFiles('.github/workflows/conda/macos_env.yml') }} | ||
path: /usr/share/miniconda/envs/riscv_perf_model # Default path for conda | ||
|
||
# Setup CCache to cache builds | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache-${{ github.ref_name }} | ||
restore-keys: | | ||
${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache-master | ||
${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache | ||
- name: Setup Conda Environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
channels: conda-forge,defaults | ||
channel-priority: true | ||
activate-environment: riscv_perf_model | ||
environment-file: .github/workflows/conda/macos_env.yml | ||
|
||
# Build | ||
- name: Build & Regress | ||
run: ./.github/actions/build/entrypoint.sh | ||
|
||
# Save error logs, etc | ||
- name: Save artifacts | ||
if: failure() | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: ErrorLogs-${{matrix.BUILD_TYPE}}-${{matrix.COMPILER}} | ||
path: ${{matrix.BUILD_TYPE}}/test/ | ||
|
||
#- name: CTest | ||
# # Run CTests without Valgrind tests otherwise the runtime will be TOO long | ||
# if: ${{ env.DABBLE_BUILD_TYPE == 'release' }} && ${{ env.VALGRIND == 'false' }} | ||
# uses: ./.github/actions/ctest # Uses an action.yml in directory |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
include: big_core.yaml | ||
top.cpu.core0: | ||
decode: | ||
params: | ||
num_to_decode: 8 | ||
fusion_enable: false | ||
fusion_debug: false | ||
fusion_enable_register: 0xFFFFFFFF | ||
fusion_max_latency: 8 | ||
fusion_match_max_tries: 1023 | ||
fusion_max_group_size: 8 | ||
fusion_summary_report: fusion_summary.txt | ||
fusion_group_definitions: [ arches/fusion/dhrystone.json ] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"fusiongroups" : [ | ||
{ "name" : "uf039", "uids" : ["0xd","0xa"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf038", "uids" : ["0x3","0xe"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf037", "uids" : ["0x20","0x4"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf036", "uids" : ["0x9","0x2d"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf035", "uids" : ["0x18","0xe"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf034", "uids" : ["0x20","0x18"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf033", "uids" : ["0xe","0xd","0xa"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf032", "uids" : ["0x10","0x10"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf031", "uids" : ["0x18","0x20"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf030", "uids" : ["0x22","0x26"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf029", "uids" : ["0x26","0x34"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf028", "uids" : ["0x21","0x20"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf027", "uids" : ["0x34","0x35"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf026", "uids" : ["0x2d","0x22"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf025", "uids" : ["0x2e","0x2d"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf024", "uids" : ["0x2e","0x21"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf023", "uids" : ["0xd","0xa","0x22"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf022", "uids" : ["0x26","0x34","0x9"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf021", "uids" : ["0xa","0x22","0x26"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf020", "uids" : ["0x18","0x20","0x4"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf019", "uids" : ["0x22","0x26","0x34"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf018", "uids" : ["0x2e","0x21","0x20"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf017", "uids" : ["0x21","0x20","0x18"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf016", "uids" : ["0x20","0x18","0x20"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf008", "uids" : ["0xd","0x35"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf007", "uids" : ["0xa","0x22"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf005", "uids" : ["0xe","0xd"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf004", "uids" : ["0xe","0x34"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf003", "uids" : ["0x34","0x9"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf002", "uids" : ["0x2e","0x35"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf001", "uids" : ["0x35","0x35"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf213", "uids" : ["0x2e","0x2e"], "tx" : "dfltXform_" }, | ||
{ "name" : "uf000", "uids" : ["0x35","0x2e"], "tx" : "dfltXform_" } | ||
] | ||
} |