The matlab mexw64 file generated by mexcuda cannot be executed in the standalone app generated by matlab('parallel.gpu.GPUDeviceManager.selected' cannot be detected))
Show older comments
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');
Answers (1)
Joss Knight
on 2 Jul 2023
Edited: Joss Knight
on 2 Jul 2023
0 votes
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.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!