ubuntu NCNN Vulkan cuda 测试环境搭建,转载一篇简洁的搭建方法

1.下载安装vulkan sdk

#ubuntu16  vulkan版本1.126
wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.1.126-xenial.list http://packages.lunarg.com/vulkan/1.1.126/lunarg-vulkan-1.1.126-xenial.list
sudo apt update
sudo apt install vulkan-sdk
 
 
#ubuntu18  vulkan版本1.126
wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.1.126-bionic.list http://packages.lunarg.com/vulkan/1.1.126/lunarg-vulkan-1.1.126-bionic.list
sudo apt update
sudo apt install vulkan-sdk

3.编译ncnn

 

mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/host.gcc.toolchain.cmake -DNCNN_VULKAN=ON ..
make -j8
make install
4.测试

将ncnn/benchmark目录下的所有param文件拷贝到 build/benchmark下面,执行命令 ./benchncnn 1 1 0 0


————————————————
版权声明:本文为CSDN博主「l德玛西亚l」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wang03989/article/details/88546530

你可能感兴趣的:(AI)