https://github.com/pkufool/cpp_neon_play
A cpp arm neon playground for beginners.
https://github.com/pkufool/cpp_neon_play
arm cpp11 learning-by-doing neon tutorial-code
Last synced: about 1 year ago
JSON representation
A cpp arm neon playground for beginners.
- Host: GitHub
- URL: https://github.com/pkufool/cpp_neon_play
- Owner: pkufool
- License: mit
- Created: 2019-09-09T15:33:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T07:04:27.000Z (about 2 years ago)
- Last Synced: 2025-01-28T15:22:57.206Z (about 1 year ago)
- Topics: arm, cpp11, learning-by-doing, neon, tutorial-code
- Language: C++
- Homepage: http://neon.kingway.fun/
- Size: 1.5 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Cpp neon play
A cpp arm neon playground for beginners.
* A simple editor developed with [flask](https://github.com/pallets/flask) and [codemirror](https://codemirror.net/) with which one can run neon instrucments any time and any where with a browser only.
* Plenty of examples that help you to learn arm SIMD from scratch。
### Structure
```bash
.
├── README.md
├── codelab
│ ├── codelab.txt # example list
│ ├── neon_product.cc # example code
│ └── neon_sum.cc
├── neon_service.py # editor backend service
├── requirements.txt
├── run_service.sh # start script
├── static
│ ├── codemirror
│ ├── fonts
│ ├── index.css
│ ├── index.js
│ ├── jquery-3.3.1.min.js
│ ├── main.js # editor frontend
│ └── vue.js
└── templates
└── index.html # editor page
```
### Set up your own browser editor
To set up your own C/S architecture editor, you need a server runs on arm cpu that with python installed.
* Install requirements
```
pip install -r requirements.txt
```
* Run server
```
bash run_service.sh
```
You can custom your server with:
```
--port # http listen port
--memory # max memory usage for single program(in bytes)
--timeout # max time execute for single program(in seconds)
```
**if you don't have a arm cpu, feel free to use the one deployed on my cell phone (http://neon.kingway.fun/)**
### Examples
All the examples are listed in the codelab folder with `.cc` extension, `codelab.txt` is a text file lists the file names and display labels.
* [Array Sum]()
* [Dot Product]()
* [Maximum Element]()
* [Minimum Element]()
* [AddVecVec]()