필터 지우기
필터 지우기

"Warning: The source file ....\AppDa​ta\Local\T​emp\mathwo​rks_tmp_00​62816838_1​576.auth' has a name conflict with another source file in CTF. It is saved as 'toolbox\i​mages\imag​es\@gpuArr​ay\private​\medfilt2g​pumex_mexw​64.auth' in the CTF..."

조회 수: 10 (최근 30일)
I am compiling a Matlab code that uses the GPU (with gpuArray). mcc returns the following warning:
Warning: The source file 'C:\...\AppData\Local\Temp\mathworks_tmp_0062816838_1576.auth' has a name conflict with another source file in CTF. It is saved as 'toolbox\images\images\@gpuArray\private\medfilt2gpumex_mexw64.auth' in the CTF. Please verify that your application works as expected.
When I run the compiled code, I get the following error:
Error using gpuArray/gradient
MATLAB encountered an unexpected error in evaluation on the GPU.
This could be caused by an invalid path or a corrupted MATLAB installation.
Error in ...
parallel:gpu:array:MATLABFcnNotFound
I have tried this on different Windows and Linux computers, with the same results. Does anyone know what the issue is here?
Thanks, Iman
  댓글 수: 1
Iman Aganj
Iman Aganj 2016년 8월 15일
To make it simpler, consider this function:
function testFun
a = gpuArray([1 1]);
gradient(a)
end
It works from inside Matlab, but when I deploy it:
mcc -m testFun.m
then the gradient function for gpuArray variables is no more recognized, and I get the following error message:
Error using gpuArray/gradient
MATLAB encountered an unexpected error in evaluation on the GPU.
This could be caused by an invalid path or a corrupted MATLAB installation.
Error in testFun (line 4)
parallel:gpu:array:MATLABFcnNotFound

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

답변 (1개)

Swathik Kurella Janardhan
Swathik Kurella Janardhan 2016년 8월 30일
The error is due to a missing file in the CTF archive. So, as a workaround include the missing file 'toolbox\distcomp\array\+parallel\+internal\+flowthrough\gradient.m' using '-a' flag to 'mcc' command like below:
>> mcc -m testFun.m -a 'C:\Program Files\MATLAB\R2016a\toolbox\distcomp\array\+parallel\+internal\+flowthrough\gradient.m'
This will still give warning messages during compilation, for which the root cause is currently unknown. Once the executable file is generated, you should be able to execute it without any errors.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by