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

1 Ansicht (letzte 30 Tage)
Mohamed Gharbi
Mohamed Gharbi am 7 Mär. 2020
Kommentiert: Walter Roberson am 31 Mär. 2022
N=8;
A=gpuArray(rand(N,N,N));
B=dct(A);

Antworten (1)

Edric Ellis
Edric Ellis am 9 Mär. 2020
This appears to be a problem with the gpuArray version of dct. Thanks for reporting this.
  2 Kommentare
Paul Kry
Paul Kry am 31 Mär. 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 am 31 Mär. 2022
Reshape your input to the same number of rows and [] columns. dct() that. Reshape back.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu GPU Computing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by