Include Parallel computing Toolbox in "Files required..." when compiling application?

1 vue (au cours des 30 derniers jours)
Matt Glowacki
Matt Glowacki le 28 Fév 2020
Commenté : Matt Glowacki le 3 Mar 2020
Hi,
I'm getting an error in a compiled application that states i'm missing some file requirements when using a library that are part of a ".p" file, which as i undertand "P files cannot be analyzed to find their required files. Please add P file requirements manually.". The specific function I'm missing is SPMD as part of the parallel computing toolbox, what I'd like to do is add the Parallel computing library to my list of "Files required for your application to run" section of the application compiler.
How can add the Parallel Computing toolbox (or even just the SPMD function) to this list? I'd prefer to add the library because i'm not sure what other functions in the Parallel Computing Toolbox might be used in that ".p" file.
Thanks for any advice in advance!
Matt

Réponses (1)

Maadhav Akula
Maadhav Akula le 3 Mar 2020
Hi,
I am not sure what you are trying to achieve, but if SPMD function's location helps you out with that, you can try the following command:
directory = fileparts(which('spmd.m'));%Finds the directory you are looking for
You can navigate to the directory and specify the required files in the Application Compiler.
The following link specifies the limitations of the MATLAB Compiler:
Hope this Helps!
  1 commentaire
Matt Glowacki
Matt Glowacki le 3 Mar 2020
Thank you for the response! I tried to manually add the spmd.m file, but unfortunately I am still getting an error: "SPMD can only be used when the Parallel Computing Toolbox is installed". I do have the Parallel computing toolbox (and is contained in my -ver output), but that command and the toolbox is only referenced via that "P" file i mentioned in the first post.
Perhaps i was unclear in the first post. I am trying to compile an application, included in that applicatoin is a library of functions that are in a "p" file, which cannot be analyzed to determine required functions/products (in this case, the parallel computing toolbox). What i would like to do is to compile this app with the parallel computing toolbox added manually.
Hopefully that makes more sense.
Matt

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by