필터 지우기
필터 지우기

How use the function “getdata” (imaqtool) to transfer data directly on GPU

조회 수: 2 (최근 30일)
Tutu
Tutu 2019년 6월 4일
답변: Tutu 2019년 7월 12일
I am currently using the function "getdata" from the imaqtool library to get my camera data, and make some postprocessing on my GPU.
Hence, I would like to get the data directly transfer from the buffer CPU memory to my GPU memory.
It is my understanding that "getdata" move data from CPU memory (buffer) to CPU memory. Hence, it should be trivial to transfer these data to my GPU directly.
However, I cannot find anything about it.
Any help is appreciated.
  댓글 수: 2
Joss Knight
Joss Knight 2019년 6월 8일
When you say "It is my understanding that "getdata" move data from CPU memory (buffer) to CPU memory" did you mean "It is my understanding that "getdata" move data from GPU memory (buffer) to CPU memory"?
If so, this isn't possible, you have to go via system memory and then call gpuArray.
Tutu
Tutu 2019년 6월 10일
No, I meant CPU memory. The camera data are stored in a buffer in the CPU memory. "getdata" moves these data to the CPU memory.

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

채택된 답변

Tutu
Tutu 2019년 7월 12일
This is simply not possible, right now, with MATLAB R2019a.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by