Dinamically setting directory path throws: wrong parameter range format

RPDECO
RPDECO New Altair Community Member
edited November 2024 in Community Q&A
I'm using RM 7.0.1 version with the parallel extension. I'm trying to set a path dinamically over multiple threads

i've got a basepath, inside the basepath there are N folders called just 1..2..N
I've made a macro that generates the base path and a loop parameters (parallel) operator that should dinamically set the 'directory' field of a loop file operator inside to navigate one of the inside folders according to thread.

in the loop parameters  (parallel) i've made a list of values for the interior loop files operator like this:
%{basepath}\1\
%{basepath}\2\
%{basepath}\...\
%{basepath}\N\

assume basepath was set previously in a macro to a value like: C:\My\Path, and we're using only subfolders 1 and 2,  what I get is an error:
PM SEVERE: Process failed: Illegal value for parameter Loop Files.directory: Unknown parameter value specification format: ' C:\My\Path\1\, C:\My\Path\2\' Error: wrong parameter range format.
 
(the path printed to the console are the actual, existing and correct paths that needs to be iterated






Tagged:

Best Answer

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓
    Hi @RPDECO ,
    most of the loops are moved to parallel execution in like 8.2 or so. This also involves a better thread handling then before. So: Yes. Just use the normal Loop for it.

    Cheers,
    Martin

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Hi @RPDECO,
    sorry, but 7.0 is very old, also the parallel extension got deprecated, since the functionality got moved into core and had it had some issues. Did you try this with a 9er Studio?
    Cheers,
    Martjn
  • RPDECO
    RPDECO New Altair Community Member
    HI @mschmitz thank you for answering, so in the new version is possible to distribute the computation over all threads? because i've got a long list of sample reduction (kennard stone) to do, and I would not want to leave most of the cpu idle
  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓
    Hi @RPDECO ,
    most of the loops are moved to parallel execution in like 8.2 or so. This also involves a better thread handling then before. So: Yes. Just use the normal Loop for it.

    Cheers,
    Martin