This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
speculator.env
45 lines (35 loc) · 1.71 KB
/
speculator.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 2021 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPEC_H points to the main folder of speculator
export SPEC_H="$HOME/speculator"
# SPEC_B points to the build directory
export SPEC_B="$HOME/speculator_build"
# SPEC_I points to the install directory
export SPEC_I="$HOME/speculator_install"
alias speculator="sudo --preserve-env=SPEC_I \
--preserve-env=SPEC_B \
--preserve-env=SPEC_H \
$SPEC_I/speculator_mon"
alias spec_configure="cmake $SPEC_H -B$SPEC_B -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$SPEC_I"
alias spec_build_ninja="ninja -C $SPEC_B install"
alias spec_build_make="make -C $SPEC_B install"
alias spec_cleanup_install="rm -rf $SPEC_I/*"
alias spec_cleanup_build="rm -rf $SPEC_B/*"
alias spec_cleanup_all="spec_cleanup_build && spec_cleanup_install"
alias spec_all="spec_configure && spec_build_make"
alias spec_all_ninja="spec_configure -G \"Ninja\" && spec_build_ninja"
alias spec_run_all="sudo --preserve-env=SPEC_I \
--preserve-env=SPEC_B \
--preserve-env=SPEC_H $SPEC_I/scripts/run_test.py"
alias spec_aggregate="$SPEC_I/scripts/post-processing.py -l $SPEC_I/results"