forked from tactcomplabs/xbgas-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
executable file
·69 lines (50 loc) · 2.67 KB
/
README
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
xBGAS-RUNTIME
--------------------------------------------------------------------------------
I. Overview
--------------------------------------------------------------------------------
The xBGAS Runtime Library is designed for SST simulation and enables OpenSHMEM-like functionality for xBGAS-enabled RISC-V architectures. Written in a combination of C and Assembly, it provides high-performance SHMEM operations, including “Get”, “Put” and "Collectives" functionality, for other libraries and users.
II. Requirements
--------------------------------------------------------------------------------
To run and simulate xBGAS applications, the following components are required::
- SST: http://sst-simulator.org/
- REV-xBGAS: https://github.com/artlands/rev-xbgas
To build the xBGAS runtime library, you will need:
- xBGAS RISC-V GNU Compiler Toolchain: https://github.com/artlands/riscv-gnu-toolchain-xbgas
- CMake 2.6+
Environment Variables: Ensure the following are set before building:
- $REV: Path to the REV-xBGAS development directory (for system call linking).
- $RISCV: Path to the xBGAS GNU compiler toolchain.
- $XBGAS_RUNTIME: Target installation directory for the xBGAS runtime library.
III. Compiling
--------------------------------------------------------------------------------
To compile the xBGAS runtime library, follow these steps:
$> git clone https://github.com/artlands/rev-xbgas-runtime.git
$> cd xbgas-runtime
$> mkdir build
$> cd build
$> cmake ../
$> make -j
Optional CMake Build Arguments:
- -DCMAKE_BUILD_TYPE=Debug : Build with debug symbols.
- -DCMAKE_BUILD_TYPE=Release : Optimized release build (default).
- -DBUILD_DOCUMENTATION=ON : Generate documentation (requires Doxygen). Build with "make doc"
IV. Installation
--------------------------------------------------------------------------------
Once compiled, install the library, headers, and documentation using:
$> make install
V. Testing
--------------------------------------------------------------------------------
The xBGAS runtime library includes a built-in test harness within the CMake infrastructure.
To build and run tests, include the following CMake argument:
- -DBUILD_ALL_TESTING=ON : Enable all tests.
Alternatively, enable specific test blocks using the following options:
- -DBUILD_INIT_TESTING=ON : xBGAS runtime initialization/close tests
- -DBUILD_ALLOC_TESTING=ON : Allocation and free tests
- -DBUILD_PUT_TESTING=ON : Put tests
- -DBUILD_GET_TESTING=ON : Get tests
- -DBUILD_AMO_TESTING=ON : Atomic memory operation tests
Once built, run the tests with:
$> make test
--------------------------------------------------------------------------------
EOF