-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 raises segmentation fault #2354
Comments
also got the same error, how did you solve the problem |
Sorry, I haven't solve it yet. |
I got a segfault, I think/thought it's malformed vertices.
|
If this topic is still open, here is how to fix it Solution#include "net.h"
#include <iostream>
#include <string>
int main(int argc, char* argv[])
{
ncnn::Net model;
model.opt.use_vulkan_compute = true;
model.set_vulkan_device(1);
ncnn::destroy_gpu_instance(); // <--- Add this
std::cout << "OK" << std::endl;
return 0;
} Short explanationWhile this hasn't been fixed, I believe that you should explicitly call Theoretically, it's already done inside of Commit usedI've done that being on the tag 20210720 |
@JujuDel hello, after searching for the issue, I found that this solution is to solve this problem , and has no effect on the current problem, do you have any other solution? |
Bug
This code raised a segmentation fault.
This is the makefile I used,
test-softmax.cpp
contains the code above.This is the output.
This is the backtrace:
Environment
The text was updated successfully, but these errors were encountered: