LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Javier Fernández (javier_at_[hidden])
Date: 2008-06-13 16:24:25


lam-request_at_[hidden] wrote:
> The problem is, when I configuring the startup.m, it seems to have lots of error.
Unfortunately, I have had no access to a MATLAB license in several
years, so the last MPITB version I was able to recompile and test is now
rather old. I'm sorry I cannot try and reproduce your error.
> Even though I tried to fixed it, it only produce more error.
> Can anybody help me fixing this error?
>
> The error message is:
>
> ??? Error using ==> startup
> MPI Toolbox not found (M files)
>
> if ~exist(q, 'dir'), clear p q, error('MPI Toolbox not found (M files)'), end
>
I think you have inadvertently deleted a debugging line in between,
saying something like "

Error in ==> startup at 29

" in between, like the copy-paste below.
> I dont understand the first error,
The startup file is designed to check where the companion M-files are,
and add them to the MATLAB path. If it cannot find them, it cries out.
Apparently, you have moved the M-files out of ~/matlab/mpitb and you
didn't set up the MPITB_ROOT environment variable. That envvar is
explained in the README file.
> but when i tried to fix the second error with deleting the (~),
In MATLAB ~ means "logical not" (or perhaps simply "not", I'm not sure
right now). I think you shouldn't delete nots you are not sure you don't
need.
> the error is gone with raising another error
>
> Warning: Name is nonexistent or not a directory: /matlab/mpitb/mpi.
>
Definitely, I think you have moved the toolbox to other location
different from the standard ~/matlab/mpitb. You can do so, but then you
need to set the envvar MPITB_ROOT, as explained in the README file.
> Hi, I've got a problem in implementing MPITB for MATLAB.
Hi again
>> In path at 115
>>
> In addpath at 95
> In startup at 27
> In matlabrc at 176
> ??? Error using ==> startup
> MPI Toolbox not found (MEX files)
>
> Error in ==> startup at 29
> if ~exist(q, 'dir'), clear p q, error('MPI Toolbox not found (MEX files)'), end
>
> Error in ==> matlabrc at 176
> startup
>
Yup, this time you didn't eat the "Error in ==> startup at 29" message.
Now the message makes more sense than before. The MEX subdir is expected
to reside at ~/matlab/mpitb/mpi/MEX, or at $MPITB_ROOT/mpi/MEX. It is
checked right after the M-files. I guess you removed the M-files check
to reach that far.
> I dont understand why is my directory could be inconsistent?
>

I think MPITB is neither under ~/matlab/mpitb, nor under $MPITB_ROOT.
Perhaps the envvar is undefined, or maybe MPITB hasn't been
downloaded/uncompressed in your computer. Follow the README advice, as
long as you have a matching MATLAB installation. The last MPITB version
was recompiled against R14SP1. It might work with later MATLAB releases,
but you are on your own. Currently I have no access to any MATLAB
license. I'm sorry I cannot reproduce your problem.

Good luck!

-javier