https://github.com/cwsmith/openarc_sandbox
sandbox for testing openarc
https://github.com/cwsmith/openarc_sandbox
Last synced: 6 days ago
JSON representation
sandbox for testing openarc
- Host: GitHub
- URL: https://github.com/cwsmith/openarc_sandbox
- Owner: cwsmith
- License: bsd-3-clause
- Created: 2018-10-18T20:56:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-04T18:54:39.000Z (over 7 years ago)
- Last Synced: 2025-03-01T00:39:12.256Z (over 1 year ago)
- Language: C
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openarc_sandbox
sandbox for testing openarc
## setup
```
source env.sh
```
## build and test emulation
```
mkdir build-openarc_sandbox-emu
cd !$
make -f $SANDBOX/Makefile SRC=$SANDBOX/reduction emulate
mkdir build-openarc_slidingAvg-emu
cd !$
make -f $SANDBOX/Makefile SRC=$SANDBOX/slidingAvg emulate
mkdir build-openarc_slidingWindow-emu
cd !$
make -f $SANDBOX/Makefile SRC=$SANDBOX/slidingWindow emulate
```
## build on fpga circuit
```
mkdir build-openarc_sandbox-fpga
cd !$
make -f $SANDBOX/Makefile SRC=$SANDBOX/reduction device
mkdir build-openarc_slidingAvg-fpga
cd !$
make -f $SANDBOX/Makefile SRC=$SANDBOX/slidingAvg device
mkdir build-openarc_slidingWindow-fpga
cd !$
make -f $SANDBOX/Makefile SRC=$SANDBOX/slidingWindow device
```
## run on fpga circuit
```
1. Set up
Create a lease with filters ["$fpga.board_model"=="385A"] and ["$node_type"=="fpga"]
Launch an instance with image CC-CentOS7-FPGA
2. Instance environment config
export OPENARC_ARCH=3
export ACC_DEVICE_TYPE=acc_device_not_host
export ACC_DEVICE_NUM=0
export OPENARCCRT_UNIFIEDMEM=0
export OPENARC_FPGA=ARRIA_X
3. Copy the project & run
Append instance ssh key to pulic key list on build node
scp -r username@fpga01.tacc.chameleoncloud.org:build_directory/cetus_output .
cd cetus_output
Run the host code:
./slidingAvg
./reduce_sum
./slidingWindow
```