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

把后端改成OpenCL,编译报错 #15

Open
LiYufengzz opened this issue Jul 27, 2021 · 0 comments
Open

把后端改成OpenCL,编译报错 #15

LiYufengzz opened this issue Jul 27, 2021 · 0 comments

Comments

@LiYufengzz
Copy link

在mac上编译运行成功了,想测试一下使用opencl是否会更快一点,但是编译报错
Undefined symbols for architecture x86_64:
"MNN::Interpreter::releaseModel()", referenced from:
LFFD::~LFFD() in MNN_LFFD.cpp.o
"MNN::Interpreter::resizeTensor(MNN::Tensor*, std::__1::vector<int, std::__1::allocator > const&)", referenced from:
LFFD::detect(cv::Mat&, std::__1::vector<FaceInfo, std::__1::allocator >&, int, int, float, float, int, std::__1::vector<int, std::__1::allocator >) in MNN_LFFD.cpp.o
"MNN::Interpreter::createSession(MNN::ScheduleConfig const&)", referenced from:
LFFD::LFFD(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, int) in MNN_LFFD.cpp.o
"MNN::Interpreter::resizeSession(MNN::Session*)", referenced from:
LFFD::detect(cv::Mat&, std::__1::vector<FaceInfo, std::__1::allocator >&, int, int, float, float, int, std::__1::vector<int, std::__1::allocator >) in MNN_LFFD.cpp.o
"MNN::Interpreter::createFromFile(char const*)", referenced from:
LFFD::LFFD(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, int) in MNN_LFFD.cpp.o
"MNN::Interpreter::releaseSession(MNN::Session*)", referenced from:
LFFD::~LFFD() in MNN_LFFD.cpp.o
"MNN::Interpreter::getSessionInput(MNN::Session const*, char const*)", referenced from:
LFFD::LFFD(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, int) in MNN_LFFD.cpp.o
"MNN::Interpreter::getSessionOutput(MNN::Session const*, char const*)", referenced from:
LFFD::LFFD(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, int) in MNN_LFFD.cpp.o
"MNN::Interpreter::~Interpreter()", referenced from:
std::__1::default_deleteMNN::Interpreter::operator()(MNN::Interpreter*) const in MNN_LFFD.cpp.o
"MNN::CV::ImageProcess::create(MNN::CV::ImageProcess::Config const&, MNN::Tensor const*)", referenced from:
LFFD::detect(cv::Mat&, std::__1::vector<FaceInfo, std::__1::allocator >&, int, int, float, float, int, std::__1::vector<int, std::__1::allocator >) in MNN_LFFD.cpp.o
"MNN::CV::ImageProcess::convert(unsigned char const*, int, int, int, MNN::Tensor*)", referenced from:
LFFD::detect(cv::Mat&, std::__1::vector<FaceInfo, std::__1::allocator >&, int, int, float, float, int, std::__1::vector<int, std::__1::allocator >) in MNN_LFFD.cpp.o
"MNN::CV::ImageProcess::~ImageProcess()", referenced from:
std::__1::default_deleteMNN::CV::ImageProcess::operator()(MNN::CV::ImageProcess*) const in MNN_LFFD.cpp.o
"MNN::Tensor::Tensor(MNN::Tensor const*, MNN::Tensor::DimensionType, bool)", referenced from:
LFFD::detect(cv::Mat&, std::__1::vector<FaceInfo, std::__1::allocator >&, int, int, float, float, int, std::__1::vector<int, std::__1::allocator >) in MNN_LFFD.cpp.o
"MNN::Tensor::~Tensor()", referenced from:
LFFD::detect(cv::Mat&, std::__1::vector<FaceInfo, std::__1::allocator >&, int, int, float, float, int, std::__1::vector<int, std::__1::allocator >) in MNN_LFFD.cpp.o
"MNN::Interpreter::runSession(MNN::Session*) const", referenced from:
LFFD::detect(cv::Mat&, std::__1::vector<FaceInfo, std::__1::allocator >&, int, int, float, float, int, std::__1::vector<int, std::__1::allocator >) in MNN_LFFD.cpp.o
"MNN::Tensor::copyToHostTensor(MNN::Tensor*) const", referenced from:
LFFD::detect(cv::Mat&, std::__1::vector<FaceInfo, std::__1::allocator >&, int, int, float, float, int, std::__1::vector<int, std::__1::allocator >) in MNN_LFFD.cpp.o
"MNN::Tensor::getDimensionType() const", referenced from:
MNN::Tensor::width() const in MNN_LFFD.cpp.o
MNN::Tensor::height() const in MNN_LFFD.cpp.o
"MNN::Tensor::shape() const", referenced from:
LFFD::detect(cv::Mat&, std::__1::vector<FaceInfo, std::__1::allocator >&, int, int, float, float, int, std::__1::vector<int, std::__1::allocator >) in MNN_LFFD.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [test] Error 1
make[1]: *** [CMakeFiles/test.dir/all] Error 2
make: *** [all] Error 2
请问你做了OpenCL或者vulkan后端的测试了吗,能否解答一下疑惑,谢谢

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