How can I assign *.mat table to GPU variable

4 ビュー (過去 30 日間)
Steven Wu
Steven Wu 2014 年 10 月 8 日
回答済み: Steven Wu 2014 年 10 月 9 日
Dear all, I would like to ask, is there a method to assign a table (which you load it from *.mat file) to GPU ? The table consists of type of the data and the properties of the data. It is very important for my code to assign that table to GPU, because I have to call the value of the table frequently during my iteration.
Thanks :)

採用された回答

Edric Ellis
Edric Ellis 2014 年 10 月 9 日
You can send data to the GPU using the gpuArray function, however that is only allowed for ordinary array types. Also note that to get the real benefit from GPU computing, you need to use vectorised computations.

その他の回答 (1 件)

Steven Wu
Steven Wu 2014 年 10 月 9 日
Thanks a lot Edric for your insight :)

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by