[Mingw-w64-public] Mingw + mkl

2010-05-14 Thread Mario Rodríguez
Hi,

I want to use *MKL*`s lapack & BLAS in my *mingw* project.

I use this libraries for 32 bits linking: mkl_intel_c_dll.lib, 
mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s 
enought adding this files names at the end of the g++ linking line.

But in 64 bits (using mingw-w64 project), it show me undefined 
references in all blas/lapack calls. I use:

-mkl_intel_lp64_dll.lib
-mkl_intel_thread_dll.lib
-mkl_core-dll.lib

It is possible to do? Maybe using dlltool/reimp or some tool similar?

Thanks in advance!

--

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw + mkl

2010-05-14 Thread Tony Theodore
2010/5/15 Mario Rodríguez :
> Hi,
>
> I want to use *MKL*`s lapack & BLAS in my *mingw* project.
>
> I use this libraries for 32 bits linking: mkl_intel_c_dll.lib,
> mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s
> enought adding this files names at the end of the g++ linking line.
>
> But in 64 bits (using mingw-w64 project), it show me undefined
> references in all blas/lapack calls. I use:
>
> -mkl_intel_lp64_dll.lib
> -mkl_intel_thread_dll.lib
> -mkl_core-dll.lib
>
> It is possible to do? Maybe using dlltool/reimp or some tool similar?
>
> Thanks in advance!

Try the link advisor [1], selecting Linux to see the gcc options, to
get some hints - and see the common errors [2] . Note also, you
probably want ilp64 not lp64.

Cheers,

Tony

[1] http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
[2] 
http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-common-linking-errors/

--

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw + mkl

2010-05-14 Thread Doug Semler
2010/5/14 Tony Theodore :
> 2010/5/15 Mario Rodríguez :
>> Hi,
>>
>> I want to use *MKL*`s lapack & BLAS in my *mingw* project.
>>
>> I use this libraries for 32 bits linking: mkl_intel_c_dll.lib,
>> mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s
>> enought adding this files names at the end of the g++ linking line.
>>
>> But in 64 bits (using mingw-w64 project), it show me undefined
>> references in all blas/lapack calls. I use:
>>
>> -mkl_intel_lp64_dll.lib
>> -mkl_intel_thread_dll.lib
>> -mkl_core-dll.lib
>>
>> It is possible to do? Maybe using dlltool/reimp or some tool similar?
>>
>> Thanks in advance!
>
> Try the link advisor [1], selecting Linux to see the gcc options, to
> get some hints - and see the common errors [2] . Note also, you
> probably want ilp64 not lp64.
>
> Cheers,
>
> Tony
>
> [1] http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
> [2] 
> http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-common-linking-errors/
>

No, the Mingw 64 target is  llp64, not ilp64...it's 32bit longs for
x64 targets. (sizeof(long) == 4, sizeof(long long) == 8, sizeof(void*)
== 8)...ilp64 is sizeof(long) == 8, which is wrong...

What is the exact error messages you are seeing?  I wouldn't be
surprised if you are running into the underscoring issue, and you may
need to upgrade to the latest compiler toolchains that has the leading
underscores removed for compatibility with the x64 ABI.

Doug

--

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw + mkl

2010-05-14 Thread Kai Tietz
2010/5/14 Tony Theodore :
> 2010/5/15 Mario Rodríguez :
>> Hi,
>>
>> I want to use *MKL*`s lapack & BLAS in my *mingw* project.
>>
>> I use this libraries for 32 bits linking: mkl_intel_c_dll.lib,
>> mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s
>> enought adding this files names at the end of the g++ linking line.
>>
>> But in 64 bits (using mingw-w64 project), it show me undefined
>> references in all blas/lapack calls. I use:
>>
>> -mkl_intel_lp64_dll.lib
>> -mkl_intel_thread_dll.lib
>> -mkl_core-dll.lib
>>
>> It is possible to do? Maybe using dlltool/reimp or some tool similar?
>>
>> Thanks in advance!

Well, you need this DLL and the import-library (you can use gendef and
dlltool for import-library generation). You can't combine 32-bit and
64-bit binaries. No way.

>
> Try the link advisor [1], selecting Linux to see the gcc options, to
> get some hints - and see the common errors [2] . Note also, you
> probably want ilp64 not lp64.
>
> Cheers,
>
> Tony
>
> [1] http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
> [2] 
> http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-common-linking-errors/

What is ilp64 (sizeof (int) == sizeof (long) == sizeof (void *) == 8)
??!? x64 is llp64 (sizeof (long long) == sizeof (void *) == 8).

Cheers,
Kai
-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

--

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw + mkl

2010-05-14 Thread Mario Rodríguez
Kai Tietz wrote:
> 2010/5/14 Tony Theodore :
>   
>> 2010/5/15 Mario Rodríguez :
>> 
>>> Hi,
>>>
>>> I want to use *MKL*`s lapack & BLAS in my *mingw* project.
>>>
>>> I use this libraries for 32 bits linking: mkl_intel_c_dll.lib,
>>> mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s
>>> enought adding this files names at the end of the g++ linking line.
>>>
>>> But in 64 bits (using mingw-w64 project), it show me undefined
>>> references in all blas/lapack calls. I use:
>>>
>>> -mkl_intel_lp64_dll.lib
>>> -mkl_intel_thread_dll.lib
>>> -mkl_core-dll.lib
>>>
>>> It is possible to do? Maybe using dlltool/reimp or some tool similar?
>>>
>>> Thanks in advance!
>>>   
>
> Well, you need this DLL and the import-library (you can use gendef and
> dlltool for import-library generation). You can't combine 32-bit and
> 64-bit binaries. No way.
>
>   
>> Try the link advisor [1], selecting Linux to see the gcc options, to
>> get some hints - and see the common errors [2] . Note also, you
>> probably want ilp64 not lp64.
>>
>> Cheers,
>>
>> Tony
>>
>> [1] http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
>> [2] 
>> http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-common-linking-errors/
>> 
>
> What is ilp64 (sizeof (int) == sizeof (long) == sizeof (void *) == 8)
> ??!? x64 is llp64 (sizeof (long long) == sizeof (void *) == 8).
>
> Cheers,
> Kai
>   
All this 3 files are x64 binaries. Intel provides you:

-mkl_intel_lp64_dll.lib and mkl_intel_lp64.lib
-mkl_intel_thread_dll.lib and mkl_intel_thread.lib (64 bit version)
-mkl_core_dll.lib and mkl_core.lib (64 bit version)

and they ask you to link against the _dll ones.
I have not right here the exactly error, but it`s only an undefined 
reference to each lapack or blas call. I`m using gcc 4.5 (experimental) 
version


--

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw + mkl

2010-05-14 Thread Kai Tietz
2010/5/14 Mario Rodríguez :
> Kai Tietz wrote:
>>
>> 2010/5/14 Tony Theodore :
>>
>>>
>>> 2010/5/15 Mario Rodríguez :
>>>

 Hi,

 I want to use *MKL*`s lapack & BLAS in my *mingw* project.

 I use this libraries for 32 bits linking: mkl_intel_c_dll.lib,
 mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s
 enought adding this files names at the end of the g++ linking line.

 But in 64 bits (using mingw-w64 project), it show me undefined
 references in all blas/lapack calls. I use:

 -mkl_intel_lp64_dll.lib
 -mkl_intel_thread_dll.lib
 -mkl_core-dll.lib

 It is possible to do? Maybe using dlltool/reimp or some tool similar?

 Thanks in advance!

>>
>> Well, you need this DLL and the import-library (you can use gendef and
>> dlltool for import-library generation). You can't combine 32-bit and
>> 64-bit binaries. No way.
>>
>>
>>>
>>> Try the link advisor [1], selecting Linux to see the gcc options, to
>>> get some hints - and see the common errors [2] . Note also, you
>>> probably want ilp64 not lp64.
>>>
>>> Cheers,
>>>
>>> Tony
>>>
>>> [1] http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
>>> [2]
>>> http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-common-linking-errors/
>>>
>>
>> What is ilp64 (sizeof (int) == sizeof (long) == sizeof (void *) == 8)
>> ??!? x64 is llp64 (sizeof (long long) == sizeof (void *) == 8).
>>
>> Cheers,
>> Kai
>>
>
> All this 3 files are x64 binaries. Intel provides you:
>
> -mkl_intel_lp64_dll.lib and mkl_intel_lp64.lib
> -mkl_intel_thread_dll.lib and mkl_intel_thread.lib (64 bit version)
> -mkl_core_dll.lib and mkl_core.lib (64 bit version)
>
> and they ask you to link against the _dll ones.
> I have not right here the exactly error, but it`s only an undefined
> reference to each lapack or blas call. I`m using gcc 4.5 (experimental)
> version
>
>

Ok, so it is most likely the underscoring issue here. You will need an
updated version of the toolchain (at least 4.5.x branch based). The
issue was recently corrected for binutils trunk and gcc 4.6 and then
backported to 4.5.x branch.
Maybe you can take Sezero's toolchain, but you should wait for new
version as we just detected for current an regression.

Regards,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

--

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw + mkl

2010-05-14 Thread Tony Theodore
On 15 May 2010 05:28, Doug Semler  wrote:
> 2010/5/14 Tony Theodore :
>> 2010/5/15 Mario Rodríguez :
>>> Hi,
>>>
>>> I want to use *MKL*`s lapack & BLAS in my *mingw* project.
>>>
>>> I use this libraries for 32 bits linking: mkl_intel_c_dll.lib,
>>> mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s
>>> enought adding this files names at the end of the g++ linking line.
>>>
>>> But in 64 bits (using mingw-w64 project), it show me undefined
>>> references in all blas/lapack calls. I use:
>>>
>>> -mkl_intel_lp64_dll.lib
>>> -mkl_intel_thread_dll.lib
>>> -mkl_core-dll.lib
>>>
>>> It is possible to do? Maybe using dlltool/reimp or some tool similar?
>>>
>>> Thanks in advance!
>>
>> Try the link advisor [1], selecting Linux to see the gcc options, to
>> get some hints - and see the common errors [2] . Note also, you
>> probably want ilp64 not lp64.
>>
>> Cheers,
>>
>> Tony
>>
>> [1] http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
>> [2] 
>> http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-common-linking-errors/
>>
>
> No, the Mingw 64 target is  llp64, not ilp64...it's 32bit longs for
> x64 targets. (sizeof(long) == 4, sizeof(long long) == 8, sizeof(void*)
> == 8)...ilp64 is sizeof(long) == 8, which is wrong...

Ah, I see, thanks. It's just that Intel recommend ilp64, even though
they ship both libs - maybe they should distribute the source ;)

Tony

--

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw + mkl

2010-05-17 Thread Mario Rodríguez
2010/5/14 Tony Theodore 

> On 15 May 2010 05:28, Doug Semler  wrote:
> > 2010/5/14 Tony Theodore :
> >> 2010/5/15 Mario Rodríguez :
> >>> Hi,
> >>>
> >>> I want to use *MKL*`s lapack & BLAS in my *mingw* project.
> >>>
> >>> I use this libraries for 32 bits linking: mkl_intel_c_dll.lib,
> >>> mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s
> >>> enought adding this files names at the end of the g++ linking line.
> >>>
> >>> But in 64 bits (using mingw-w64 project), it show me undefined
> >>> references in all blas/lapack calls. I use:
> >>>
> >>> -mkl_intel_lp64_dll.lib
> >>> -mkl_intel_thread_dll.lib
> >>> -mkl_core-dll.lib
> >>>
> >>> It is possible to do? Maybe using dlltool/reimp or some tool similar?
> >>>
> >>> Thanks in advance!
> >>
> >> Try the link advisor [1], selecting Linux to see the gcc options, to
> >> get some hints - and see the common errors [2] . Note also, you
> >> probably want ilp64 not lp64.
> >>
> >> Cheers,
> >>
> >> Tony
> >>
> >> [1]
> http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
> >> [2]
> http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-common-linking-errors/
> >>
> >
> > No, the Mingw 64 target is  llp64, not ilp64...it's 32bit longs for
> > x64 targets. (sizeof(long) == 4, sizeof(long long) == 8, sizeof(void*)
> > == 8)...ilp64 is sizeof(long) == 8, which is wrong...
>
> Ah, I see, thanks. It's just that Intel recommend ilp64, even though
> they ship both libs - maybe they should distribute the source ;)
>
> Tony
>

which one should I use? I`ve tested
mingw-w64-bin_i686-mingw_20100515_sezero.zip(the
last one) and others from "Automated builds", but they have gcc 4.4.
Which one solve this issue?

Thanks a lot!
--

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw + mkl

2010-05-18 Thread Mario Rodríguez
2010/5/14 Tony Theodore 

> On 15 May 2010 05:28, Doug Semler  wrote:
> > 2010/5/14 Tony Theodore :
> >> 2010/5/15 Mario Rodríguez :
> >>> Hi,
> >>>
> >>> I want to use *MKL*`s lapack & BLAS in my *mingw* project.
> >>>
> >>> I use this libraries for 32 bits linking: mkl_intel_c_dll.lib,
> >>> mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s
> >>> enought adding this files names at the end of the g++ linking line.
> >>>
> >>> But in 64 bits (using mingw-w64 project), it show me undefined
> >>> references in all blas/lapack calls. I use:
> >>>
> >>> -mkl_intel_lp64_dll.lib
> >>> -mkl_intel_thread_dll.lib
> >>> -mkl_core-dll.lib
> >>>
> >>> It is possible to do? Maybe using dlltool/reimp or some tool similar?
> >>>
> >>> Thanks in advance!
> >>
> >> Try the link advisor [1], selecting Linux to see the gcc options, to
> >> get some hints - and see the common errors [2] . Note also, you
> >> probably want ilp64 not lp64.
> >>
> >> Cheers,
> >>
> >> Tony
> >>
> >> [1]
> http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
> >> [2]
> http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-common-linking-errors/
> >>
> >
> > No, the Mingw 64 target is  llp64, not ilp64...it's 32bit longs for
> > x64 targets. (sizeof(long) == 4, sizeof(long long) == 8, sizeof(void*)
> > == 8)...ilp64 is sizeof(long) == 8, which is wrong...
>
> Ah, I see, thanks. It's just that Intel recommend ilp64, even though
> they ship both libs - maybe they should distribute the source ;)
>
> Tony
>


I`ve also tried "Toolchains targetting Win64/Automated builds" and I`m
having some problems with cstdelib and some headers (I guess)
--

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public