onnx build
ncnn install ncnn
cd ncnn
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DNCNN_VULKAN=ON -DNCNN_SYSTEM_GLSLANG=ON -DNCNN_BUILD_EXAMPLES=ON ..
make -j$(nproc)
$ tar -xzf vulkansdk-linux-x86_64-1.1.xx.y.tar.gz
$ sudo cp $VULKAN_ROOT/x86_64/bin/* /usr/local/bin/
$ sudo cp -R $VULKAN_ROOT/x86_64/lib/* /usr/local/lib/
$ sudo ldconfig
$ sudo mkdir -p /etc/vulkan/explicit_layer.d
$ sudo cp $VULKAN_ROOT/x86_64/etc/vulkan/explicit_layer.d/* /etc/vulkan/explicit_layer.d/
$ sudo cp -R $VULKAN_ROOT/x86_64/include/* /usr/local/include/
Top comments (0)