필터 지우기
필터 지우기

Voronoi on GPU?

조회 수: 2 (최근 30일)
Wolfgang
Wolfgang 2011년 9월 7일
댓글: HG 2021년 6월 14일
It appears the current voronoi functions do not support GPU computing. Is there a way in Matlab or addon software to compute a Voronoi tesselation on the GPU?

채택된 답변

Jill Reese
Jill Reese 2011년 9월 8일
You're right. I went back and looked again at the voronoi functionality. VORONOIN is not currently supported on the GPU and the VORONOI implementation does much of the work on the CPU because the use cases we originally considered didn't yield much speedup by using the GPU.
Perhaps your use case/work flow is different. Would you mind sharing the big picture of what you are trying to do and the matrix sizes you are using? If you are willing to share the actual code that you are interested in porting to the GPU, that would be even better.
  댓글 수: 1
Wolfgang
Wolfgang 2011년 9월 9일
When analyzing my code around voronoin() I realized that my algorithm to calculate the areas of the tiles takes up most of the time not voronoin().
Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jill Reese
Jill Reese 2011년 9월 7일
Hi Wolfgang! What release of MATLAB are you using, and what exactly are you trying to do with voronoi? The most recent release of MATLAB is R2011b, and in that release I was able to run the first two examples listed under "doc voronoi" on the GPU.
  댓글 수: 2
Wolfgang
Wolfgang 2011년 9월 7일
Hi Jill, thanks for the reply.
I'm running R2011a, and just tried to reproduce what you said.
The first 2 examples use voronoi(x,y), which doesn't produce any errors using GPU arrays as inputs. However, in example 2 the return values [vx,vy] are returned as CPU arrays even if the inputs are GPU arrays, and there's no time advantage (even for large arrays), so I'm not really convinced that they run on the GPU.
Example 3 is what's interesting to me, as I'm using voronoin().
Here I get the error message "The specified data points are not in numeric array format".
I still don't believe Matlab supports Voronoi functionality on GPU, maybe there's something new in R2011b, if so it's not published in the release notes.
HG
HG 2021년 6월 14일

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Voronoi Diagram에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by