Error while using dct on gpu. Matrix dimensions must agree.

1 visualización (últimos 30 días)
Mohamed Gharbi
Mohamed Gharbi el 7 de Mzo. de 2020
Comentada: Walter Roberson el 31 de Mzo. de 2022
N=8;
A=gpuArray(rand(N,N,N));
B=dct(A);

Respuestas (1)

Edric Ellis
Edric Ellis el 9 de Mzo. de 2020
This appears to be a problem with the gpuArray version of dct. Thanks for reporting this.
  2 comentarios
Paul Kry
Paul Kry el 31 de Mzo. de 2022
Just installed 2022a, and get "Error using dct. Input gpuArray must be a vector or two-dimensional matrix." Any solution for this on the horizon?
Walter Roberson
Walter Roberson el 31 de Mzo. de 2022
Reshape your input to the same number of rows and [] columns. dct() that. Reshape back.

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by