Bug: Can't locate hostlist_lite.pm
Opened this issue · 3 comments
I'm getting the below error while using crunch_mpiGraph on generated output.
crunch_mpiGraph mpiGraph.out
Can't locate hostlist_lite.pm in @INC (you may need to install the hostlist_lite module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /home/sameer/mpiGraph/crunch_mpiGraph line 64.
BEGIN failed--compilation aborted at /home/sameer/mpiGraph/crunch_mpiGraph line 64.
Do we need to add any path variable to use in Perl?
At least Readme doesn't reflect it.
Ah, good point. Thanks for the issue.
The script is looking for this file:
https://github.com/LLNL/mpiGraph/blob/master/hostlist_lite.pm
I normally run the crunch_mpiGraph
script from the same directory containing hostlist_lite.pm
, and I think perl looks in the current working directory for any modules by default. To run the script from another directory, we need to tell perl where to find it. There are a few ways:
Does it help if you set PERL5LIB
to include that path?
export PERL5LIB="$PERL5LIB:/home/sameer/mpiGraph"
Just pushed this commit to add FindBin: f994e50
That seemed to work for me in a quick test. Does that help?
Thanks, @adammoody it helped me to run it successfully.
Do you have any benchmark wherein we can see the difference with change in parameter really makes a difference. The parameter may vary from MPI implementation used, hardware, fabrics used.
It would be a great help for me if you can provide me the same.