-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sh
More file actions
52 lines (41 loc) · 1.93 KB
/
config.sh
File metadata and controls
52 lines (41 loc) · 1.93 KB
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
46
47
48
49
50
51
52
#!/bin/bash
#
# Copyright 2026 Huawei Technologies Co., Ltd.
#
# 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.
#
# PaHiS - Configuration Template
# This file contains all required environment variables for the system
# Copy this to config_{HW_MODEL}.sh and customize for your system
# ===== Required Variables =====
# Hardware model name (used to identify topology files and results)
export HW_MODEL="YOUR_SYSTEM_NAME"
# Root directory of the PaHiS repository
# This will be automatically set to the absolute path of this config file's directory
export ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Path to ALP GraphBLAS repository (optional - only needed for full functionality)
export ALP_PATH="/path/to/ALP"
# ===== Directory Configuration =====
# Build directory containing compiled benchmark executables
# This is set by CMake during build process
export HW_BUILD_DIR="build"
# ===== Optional Variables =====
# Matrix directory for benchmark input files (default: ${HW_BUILD_DIR}/matrices)
export MATRIX_DIR="${MATRIX_DIR:-${HW_BUILD_DIR}/matrices}"
# Data directory for benchmark output files (default: ${HW_BUILD_DIR}/benchmarks)
export DATADIR="${DATADIR:-${HW_BUILD_DIR}/benchmarks}"
# ===== Usage Instructions =====
# 1. Copy this file: cp config.sh config_${HW_MODEL}.sh
# 2. Edit config_${HW_MODEL}.sh with your system-specific values
# 3. Source it before running benchmarks: source config_${HW_MODEL}.sh
# 4. Run benchmarks: python3 runner.py