How can I assign *.mat table to GPU variable

4 visualizaciones (últimos 30 días)
Steven Wu
Steven Wu el 8 de Oct. de 2014
Respondida: Steven Wu el 9 de Oct. de 2014
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 :)

Respuesta aceptada

Edric Ellis
Edric Ellis el 9 de Oct. de 2014
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.

Más respuestas (1)

Steven Wu
Steven Wu el 9 de Oct. de 2014
Thanks a lot Edric for your insight :)

Categorías

Más información sobre GPU Computing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by