The matlab mexw64 file generated by mexcuda cannot be executed in the standalone app generated by matlab('pa​rallel.gpu​.GPUDevice​Manager.se​lected' cannot be detected))

2 ビュー (過去 30 日間)
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
x = ones(4,4,'gpuArray');
y = mexGPUExample(x);
A=gather(y);
save('D:\ERRORtest\''A''.mat','A');

回答 (1 件)

Joss Knight
Joss Knight 2023 年 7 月 2 日
編集済み: Joss Knight 2023 年 7 月 2 日

MATLAB Compiler's dependency analyzer cannot detect your dependency on PCT. Either add the product manually or call something explicit in the Toolbox, for instance, replace ones(4,4,'gpuArray') with gpuArray.ones(4,4).

This is nothing to do with mexcuda.

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by