GPU Coder Build error "No method 'isKey' with matching signature found for class 'containers.Map' "

4 次查看(过去 30 天)
Ive been trying to compile a simple CUDA code using GPU coder but this error keeps occurring.
GPU Coder Build error "No method 'isKey' with matching signature found for class 'containers.Map' "
The code used is:
function [Val]=GPU_eig(Array)
%pagewise mutiplication of 8x8 matrices by 2
pages=size(Array,3);
Val=complex(zeros(8,8,pages));
parfor i=1:pages
Val(:,:,i)=2*Array(:,:,i);
end
(I understand that there are better ways of doing this specific function (pagefun) but this is a building block for something else)
I am using the C compiler. System is a Windows 10 and ive had difficulty installing the c++ minGW compiler.
Ive used the same code except replacing the parfor with a for loop, and compiled successfully with MATLAB coder in C creating a MEX file.
I dont understand why the GPU coder is not detecting the libraries necessary to compile this, when ive accessed the isKey and Map class using the command window.
The GPU coder will successfully generate trial code, Build MEX and run the test file with MEX, but will fail at the generation step.
Thanks
  5 个评论
Ahmed Alfadhel
Ahmed Alfadhel 2020-4-15
Hello ,
I have the same error messege !!!
I am trying to run the example "mandelbrot_count" .
Any help to solve the issue?
Thanks

请先登录,再进行评论。

回答(1 个)

lim daehee
lim daehee 2019-11-21
Did you eliminated mexfiles which have the same name of your function? If not, remove the prior mex file of your function, and try again.
  1 个评论
Ahmed Alfadhel
Ahmed Alfadhel 2020-4-15
I removed the perior mex files of my function . And I got the same error .
No method 'isKey' with matching signature found for class 'containers.Map'

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with GPU Coder 的更多信息

产品


版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by