Deploytool generetes too big application.

2 ビュー (過去 30 日間)
Martin Jandacka
Martin Jandacka 2018 年 11 月 9 日
コメント済み: Martin Jandacka 2019 年 6 月 12 日
I am using deploytool (Application Compiler) to generate app from my code. With Matlab 2018b I get 10 times bigger application size as with 2017a. The problem is probably parfor function.
I can reproduce this problem on following two simple scripts:
t_for.m (deploytool generates app with approximately 1.5MB - Matlab 2018b):
x=zeros(100,1);
for i=1:100
x(i,1)=i^2;
end
t_parfor.m (deploytool generates app with approximately 250MB - Matlab 2018b):
x=zeros(100,1);
parfor i=1:100
x(i,1)=i^2;
end
After running the t_parfor app the mcrCache contain following dll:
c:\Users\username\AppData\Local\Temp\username\mcrCache9.5\t_parf0\bin\win64\cudnn64_7.dll ~300MB
If I understand it correctly then this dll is part of the app generated by deploytool and is needed for CUDA (GPU). Is it possible to not include the dll in the app? The parfor should run on CPU not on GPU.
  2 件のコメント
Joan De La Cruz
Joan De La Cruz 2019 年 6 月 12 日
did you find a solution to this problem? i am having a similar issue between 2018b and 2017a. mcrCache9.5 is 7x bigger than mcrCache9.3 due to dll's included in v95 that are not present in v93.
Martin Jandacka
Martin Jandacka 2019 年 6 月 12 日
My solution was to update to 2019a, where I do not have this problem.
I did get an advise to remove the dll from system or replace it by a dummy dll (before running deploytool), as in my case the dll was not required to run the app. However I did not test this.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by