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

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 Comments

I have the same issue. It is showing this error for simpest function also. I can't figure out how to solve this. If you have found the solution, please share with me also. Thanks
Hi Lavesh,
I am able to generate code for the function "GPU_eig" you shared. Can you share further details -
  1. What version of MATLAB are you using?
  2. What is the CUDA toolkit version and what is the version of Visual C++ compiler?
  3. Can you try the following commands and check if it works
cfg = coder.gpuConfig;
in = rand(8,8,12);
codegen -config cfg -args {in} GPU_eig
Hi Jai,
If you are encountering similar error, can you share the simple function and the MATLAB version for which you are trying to generate code? Also, sharing the commands used for codegen would be helpful.
Hello ,
I have the same error messege !!!
I am trying to run the example "mandelbrot_count" .
Any help to solve the issue?
Thanks
I have the same problem. Has anyone found a solution? Thanks

Sign in to comment.

Answers (1)

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 Comment

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'

Sign in to comment.

Categories

Find more on Get Started with GPU Coder in Help Center and File Exchange

Products

Release

R2017b

Asked:

on 7 Jun 2018

Commented:

on 26 Apr 2022

Community Treasure Hunt

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

Start Hunting!