interp1 gpuArray bug
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Edric Ellis
2019-5-17
Thanks for reporting this. I can confirm that I can reproduce the problem here, I'll pass this on to the relevant development group.
采纳的回答
Matt J
2020-1-9
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 个评论
Matt J
2020-1-9
You're welcome, but please Accept-click the answer to indicate that you are satisfied with it.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!