Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carv-ics-forth/arax-onednn-riscv
https://github.com/carv-ics-forth/arax-onednn-riscv
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/carv-ics-forth/arax-onednn-riscv
- Owner: CARV-ICS-FORTH
- Created: 2023-04-03T13:52:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-04T16:44:13.000Z (over 1 year ago)
- Last Synced: 2023-08-04T19:54:45.428Z (over 1 year ago)
- Language: C++
- Size: 380 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create server/client vms/images
`./riscv.sh server`
`./riscv.sh client`One booted, login to each vm, user & pass:ubuntu, you will be promted to change password.
(Due to qemu, booting will be slow,# Enable ssh
`sudo systemctl enable ssh`
`sudo systemctl start ssh`# Clone dependencies
After that, on the host, run `./clone_deps.sh server` and `./clone_deps.sh client`.
This will clone repos localy and then scp sources and configuration files to the VMs.
You will be asked for the VM password 7-8 times.
(If you recreate the VM images, you might have to delete on host keys from ~/.ssh/known_hosts)# Build
In each VM, call `bash prep.sh`, this will build arax and OneDnn.
# Run
## Install IVSHMEM module
Insert the ivsheme kernel module:
`sudo modprobe uio_ivshmem`
## IVSHMEM permisions
Use `sudo chmod 777 /dev/uio0` to allow controller and applications to mmap the shared segment.
## Start Controller
`arax_controller conf.json`
Controller should start and print:
```
cpu:CPU:0 :: Initialization successful
cpu:CPU:0 :: Ready
```## Run example
To test the setup we can run a OneDnn example:
`~/OneDnn/build/tests/getting_started`It should run and print 'Example passed on CPU.'