interp1 gpuArray bug

조회 수: 1 (최근 30일)
Kyle
Kyle 2019년 5월 16일
댓글: Matt J 2020년 1월 9일
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
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.
Kyle
Kyle 2020년 1월 9일
Is there any update on this?

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
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
Kyle
Kyle 2020년 1월 9일
ok great, thank you
Matt J
Matt J 2020년 1월 9일
You're welcome, but please Accept-click the answer to indicate that you are satisfied with it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by