uniquetol give an "Unknown option specified" error when I run it on a cluster
1 view (last 30 days)
Show older comments
Frank Moore-Clingenpeel on 23 Aug 2022
Edited: Frank Moore-Clingenpeel on 24 Aug 2022
I have code that I'm trying to run on a cluster. I've tested my code on a local host and it works fine, but if I run it on my cluster the MATLAB built-in function `uniquetol` errors out.
I call my function with the following script:
cluster = parcluster('MyGenericClusterProfile') % NOTE: if I change the cluster profile to 'local' I don't have any errors
job = createCommunicatingJob(cluster);
job.numWorkersRange=[1 1]; % Trying to get it to work on a single node before I scale up and add communications functionality
% Lots of code building and setting up arrays, some of which are
% gpuArrays but none of the ones in uniquetol are gpuArrays
class(A) % returns 'double' in Task1.diary.txt
[C,IA,IC]=uniquetol(A,1e-4,'highest'); % According to Task1.out.mat, generates a MATLAB:uniquetol:UnknowOptions ParallelException when run on cluster
If I comment out the 'highest' option of uniquetol while running on the cluster, my code runs without Exceptions but I need that option to get the correct run-time results. Why does my code behave differently depending on where I run it, and how do I make it behave correctly?
Walter Roberson on 23 Aug 2022
That option is new as of R2021b, the release after your cluster has.
More Answers (0)
Find more on Cluster Configuration 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!