interp1 gpuArray bug
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
There is a bug in interp1 for gpuArrays that happens with the 2 input option. It works fine with 3 inputs.
The below works fine yielding the 2x2 array below
interp1((1:80)', randn(80, 2), gpuArray(((1:2))'))
ans =
-0.2063 0.2255
0.2836 -0.7136
Now if calling the same code but with only two inputs, where the first input should be implicitly (1:80)', we get the below. I have tried this call on 2 different computers.
interp1(randn(80, 2), gpuArray(((1:2))'))
Error using gpuArray/gather
An unexpected error occurred during CUDA execution. The CUDA error was:
CUDA_ERROR_ILLEGAL_ADDRESS
Error in parallel.internal.shared.buildDisplayHelper>iFirstNNumericDisplayHelper (line 73)
maybeTruncatedValue = gather( x );
Error in parallel.internal.shared.buildDisplayHelper>iBuildDisplayHelper (line 33)
dh = iFirstNNumericDisplayHelper( ...
Error in parallel.internal.shared.buildDisplayHelper (line 24)
dh = iBuildDisplayHelper( x, transferDenseFcn, transferSparseFcn, xClassName, xName, N );
Error in dispInternal (line 13)
dh = parallel.internal.shared.buildDisplayHelper( ...
Error in gpuArray/display (line 21)
dh = dispInternal( obj, thisClassName, objName );
The gpu I'm using is:
Name: 'GeForce GTX 1060'
Index: 1
ComputeCapability: '6.1'
SupportsDouble: 1
DriverVersion: 10
ToolkitVersion: 9.1000
Does anyone have this same problem and/or advice on how to fix it?
3 Commenti
Edric Ellis
il 17 Mag 2019
Thanks for reporting this. I can confirm that I can reproduce the problem here, I'll pass this on to the relevant development group.
Risposta accettata
Matt J
il 9 Gen 2020
The bug appears to have been fixed in R2019b:
>> A=rand(80,2);
>> interp1((1:80)', A, gpuArray(((1:2))'))
ans =
0.6073 0.3774
0.4501 0.2160
>> interp1(A, gpuArray(((1:2))'))
ans =
0.6073 0.3774
0.4501 0.2160
2 Commenti
Matt J
il 9 Gen 2020
You're welcome, but please Accept-click the answer to indicate that you are satisfied with it.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su GPU Computing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!