https://github.com/nihui/ncnn-vulkan-compute-sample
https://github.com/nihui/ncnn-vulkan-compute-sample
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nihui/ncnn-vulkan-compute-sample
- Owner: nihui
- Created: 2020-12-08T14:10:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-18T09:04:19.000Z (over 1 year ago)
- Last Synced: 2025-03-18T10:23:07.094Z (over 1 year ago)
- Language: CMake
- Size: 15.6 KB
- Stars: 14
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ncnn-vulkan-compute-sample
## Usages
### run fp32 mla test
```shell
mla 0
```
### run fp16 mla test
```shell
mla 1
```
## Build from Source
1. Clone this project with all submodules
```shell
git clone https://github.com/nihui/ncnn-vulkan-compute-sample.git
cd ncnn-vulkan-compute-sample
git submodule update --init --recursive
```
2. Build with CMake
- You can pass -DUSE_STATIC_MOLTENVK=ON option to avoid linking the vulkan loader library on MacOS
```shell
mkdir build
cd build
cmake ..
cmake --build . -j 4
```