GPU coder build error
1 view (last 30 days)
Show older comments
Hi, I executed the GPU coder on my code. However, build error has occurred by unknown problem. I cannot understand why am I got the build error.
Additionally, types of input data is stated below.
NodeNum : 1x1 double
Map_Obs : 1701x1701x11 double
PosMap : 31827411x3 double
1 Comment
Walter Roberson
on 8 Oct 2019
What was in the log?
Does the problem fit within the amount of memory of your gpu?
You are doing a lot of indexing. Indexing is pretty inefficient on the gpu. Much more efficient to vectorize computation. Even if that means extracting temporary vectors thatccan be much more effective.
Answers (2)
Hariprasad Ravishankar
on 11 Oct 2019
Hi Lim,
Looks like the generated code is emitting .cpp files whereas I would expect GPU Coder to emit .cu files.
Did you use coder.gpuConfig to create the codegen config object?
Could you share the command used to generate code?
Further, I see that your are using Visual Studio C++. Can you provide information on the version of the Visual Studio you are using?
Hari
1 Comment
See Also
Categories
Find more on Get Started with GPU Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!