Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用vulkan 进行GPU加速 #35

Open
duoduo1018 opened this issue Nov 22, 2019 · 0 comments
Open

使用vulkan 进行GPU加速 #35

duoduo1018 opened this issue Nov 22, 2019 · 0 comments

Comments

@duoduo1018
Copy link

您好, 已经跑通您的这个程序, 但我使用Vulkan的时候, 发现不工作 (ncnn 提供的例子可以使用gpu加速),
ncnn::Net _net;

ncnn::create_gpu_instance();
_net.opt.use_vulkan_compute = 1;
int gpu_count = ncnn::get_gpu_count();
ncnn::VulkanDevice vkdev; 
_net.set_vulkan_device(&vkdev);

_net.load_param(param_path.data());
_net.load_model(bin_path.data());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant