"Warning: The source file ....\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..."
이전 댓글 표시
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개)
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.
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!