From: Snir Gazit on
Dear all,

I have been trying to use the "c++ mathlink".
The linking process works great till I link my c++ program with
Intel's MKL 10.0 libraries.
There a similar bug in another system that is caused by the fact that it
uses MKL 9 (I think that also Mathematica uses the same version).
Is there a solution for Mathematica?
Help is much appreciated. Contact me for details on a solution
in the other system.

Snir


From: David Bailey on
Snir Gazit wrote:
> Dear all,
>
> I have been trying to use the "c++ mathlink".
> The linking process works great till I link my c++ program with
> Intel's MKL 10.0 libraries.
> There a similar bug in another system that is caused by the fact that it
> uses MKL 9 (I think that also Mathematica uses the same version).
> Is there a solution for Mathematica?
> Help is much appreciated. Contact me for details on a solution
> in the other system.
>
> Snir
>
>
What exactly is the problem? Is the problem with the link phase - such
as some sort of name clash?

David Bailey
http://www.dbaileyconsultancy.co.uk

From: snirga on
On Apr 4, 2:46 pm, David Bailey <d...(a)removedbailey.co.uk> wrote:
> Snir Gazit wrote:
> > Dear all,
>
> > I have been trying to use the "c++ mathlink".
I am able to activate the link with Install["name of C++ source"]
But trying to active any linked function that uses MKL results with an
error.

I cannot rule out the possibility that this is unrelated to MKL 10.
But for calculation that don't involve MKL 10 calls every thing works
fine.


Thanks a lot.

Snir
> > The linking process works great till I link my c++ program with
> > Intel's MKL 10.0 libraries.
> > There a similar bug in another system that is caused by the fact that it
> > uses MKL 9 (I think that also Mathematica uses the same version).
> > Is there a solution for Mathematica?
> > Help is much appreciated. Contact me for details on a solution
> > in the other system.
>
> > Snir
>
> What exactly is the problem? Is the problem with the link phase - such
> as some sort of name clash?
>
> David Baileyhttp://www.dbaileyconsultancy.co.uk


From: David Bailey on
snirga wrote:

> I am able to activate the link with Install["name of C++ source"]
> But trying to active any linked function that uses MKL results with an
> error.
>
> I cannot rule out the possibility that this is unrelated to MKL 10.
> But for calculation that don't involve MKL 10 calls every thing works
> fine.
>

So let's get this quite clear. You have a Mathlink program that seems to
work if you don't call a function from MKL 10, but crashes if you do
(what error does it produce).

What OS are you running on?

Is MKL 10 supplied as a DLL? If it is, are you sure it is accessible to
the MathLink program?

I take it the link phase produced no diagnostics.

Are you using a 64-bit machine with 64-bit OS, or a 32-bit machine? If
you are using a 64-bit machine, are you using the 64-bit version of this
library?

David Bailey
http://www.dbaileyconsultancy.co.uk

From: Snir Gazit on
Hi Again,

Thanks for your assistance.
As to your questions:

1. I work on fedora 12.
2. MKL comes with link to libraries (.so). The thing is that Mathematica
also uses with those libraries only with version MKL 9 (they are on the
Mathematica folder).
3. It is 64-bit. Yes I am using the 64-bit version.
4. The Error I get is that - The link was lost.

Thanks again

Snir

On Tue, Apr 6, 2010 at 2:27 PM, David Bailey <dave(a)removedbailey.co.uk>wrote:

> snirga wrote:
>
> > I am able to activate the link with Install["name of C++ source"]
> > But trying to active any linked function that uses MKL results with an
> > error.
> >
> > I cannot rule out the possibility that this is unrelated to MKL 10.
> > But for calculation that don't involve MKL 10 calls every thing works
> > fine.
> >
>
> So let's get this quite clear. You have a Mathlink program that seems to
> work if you don't call a function from MKL 10, but crashes if you do
> (what error does it produce).
>
> What OS are you running on?
>
> Is MKL 10 supplied as a DLL? If it is, are you sure it is accessible to
> the MathLink program?
>
> I take it the link phase produced no diagnostics.
>
> Are you using a 64-bit machine with 64-bit OS, or a 32-bit machine? If
> you are using a 64-bit machine, are you using the 64-bit version of this
> library?
>
> David Bailey
> http://www.dbaileyconsultancy.co.uk
>
>