GPU coder build error
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2019-10-8
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.
回答(2 个)
Hariprasad Ravishankar
2019-10-11
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with GPU Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!