Intel MKL + ATL/COM DLL regsrv32 error in debug build, but not in release...

Intel MKL + ATL/COM DLL regsrv32 error in debug build, but not in release...

Hello all,

I have a strange problem, similar to the one from this post :

http://software.intel.com/en-us/forums/topic/283594

I have windows 8 64bits pro, I am using visual studio 2010 ultimate, and compiling a 32 bits ATL/COM dll.

The MKL was linked to my visual studio 2010 project thanks to the integration of MKL to visual studio 2010, so that I just went to the properties of my project and choose (for all configurations) to use the sequential MKL library. (I wasn't even able to find in my project where the linking is explicitely appearing because it does not appear at the usual places I was modifying to link the mkl to my previous project, at the "pre-integration" time...)

When I build in debug mode, when I build for the first time (or when I do a rebuild) I have the following output :

"C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(744,5): warning MSB3073: The command "regsvr32 /s "C:\CODAGE\win8\mvs2010\MyBS\Toto\Debug\Toto.dll"" exited with code 3.

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(756,5): error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions."

and when I just build for the second time (or when I do a simple build) I have no output error like the previous ones, but the problem remains, because dll doesn't even let itself being referenced in VBA, indicating that the debug one is completely f***ed up...

So I first tried to execute the "regsrv32 /s" command on my debug dll with the highest permissions, which failed, and then I tried to enable per-user redirection also, with the same result.

Then I searched on google and found the link I was mentionning at the beginning of my post :

http://software.intel.com/en-us/forums/topic/283594

I followed what was advised there and renamed the 64bits include, lib and bin directories, without success --> still the same error in debug build. Then I found this intel fortran related post :

http://software.intel.com/en-us/forums/topic/285673

where the advise was to pass the problematic dll to dependancy walker. I did it, and had this log message :

"Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module."

I search everywhere in dependancy walker, but did not find anything... I should mention that I have exactly the same issue when I build in release mode.

Help would be greatly appreciated !!

Thx a lot !

LvM

PS : I only have this related to the MKL in the code of the project compiling my dll :

#include "mkl_vsl_functions.h"
#include "mkl_vsl.h"

25 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

>>When I build in debug mode, when I build for the first time (or when I do a rebuild) I have the following output :
>>
>>"C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(744,5): warning MSB3073:
>>The command "regsvr32 /s "C:\CODAGE\win8\mvs2010\MyBS\Toto\Debug\Toto.dll"" exited with code 3...

System Error Code 3 - The system cannot find the path specified ( ERROR_PATH_NOT_FOUND ).

Hello Sergey, I rigorously have the same configuration than Pascal M.'s one, and had the same problem than he had. (I have mkl 32 & 64 installed, configured by the mvs2k10 inegretion thing etc). I'm not an expert and I don't understand your point "System Error Code 3 - The system cannot find the path specified ( ERROR_PATH_NOT_FOUND )" --> why is the dll not found !? Is it dued to something like mkl dll 64 bits used for build a 32 bits dll or ?... Dependency walker did not help me that much also... Could you be more "precise" ? (Sorry for such a noob questions.)

Thank you very much

Tu ne cede malis sed contra audentior ito

To be more precise I have created an ATL/COM project also called "toto", where the mkl is used in the class MERSENNE_MKL_TOYMC in the file "MERSENNE_MKL_TOYMC.h", and in the method STDMETHODIMP CTOYMC::SETRANDOM( long CHOICERAND ) of the ATL object TOYMC. I have attached an exel spread sheet with compute button in any case, so that we could have a starting point for discussing the issues in the MVS2010 solution properties.

My MKL installation was 32 and 64bits from the very last update + mvs 2010 integration, and "use mkl sequential" chosen for all config in toto.sln as you will see

Thx a lot in advance

Kind Regards

Tu ne cede malis sed contra audentior ito

In case of 32-bit configurations verify that you have a similar set of environment variables:

...
..\ICC2011\Composer XE 2011 SP1\Ipp\..\Redist\Ia32\Ipp
..\ICC2011\Composer XE 2011 SP1\Ipp\..\Redist\Ia32\Compiler
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Mkl
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Compiler
..\ICC2011\Composer XE 2011 SP1\Tbb\bin\..\..\Redist\Ia32\Tbb\vc10
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Tbb\Vc8
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Ipp
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Mpirt
C:\Program Files\Common Files\Intel\Shared Libraries\Redist\Ia32\Compiler
...

Thx Sergey,

What do you mean by environment variables ? You mean variables like $(MKLIncludeDir), $(MKLLibDir) etc ?

Because I put "your" ".\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Mkl" (which is called $(MKLPathForVC) on my MVS2010) in the executable directories (under "properties --> conf. properties --> VC++ directories) of my project, for debug and release configuration.

Now my dll can be builded (see the attach build log txt file) but I have a "Run-Time Error -2147024770 (8007007e)" error from VBA when I run the macro, calling the dll, error produced on the line :

Set ENGINE = New TotoLib.TOYMC

so that I am lost again. (This error is of course not happening with the dll builded when I take back everything mkl-related from my project.)

I put my dll to dependency walker and had similar error than those that Pascal M. above had, namely :

"Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module."

, dependency walker telling also me that "MKL_SEQUENTIAL.DLL" was not found in "C:\Program Files (x86)"... so that I'm really lost. (Why is it looking for it here, btw !?)

Any idea on what is happening here ?

Question : I would like to do the following thing : put use MKL to "no" for all configuration in my project properties, and the reference myself all paths needed in "Conf. properties --> VC++ directories" (that is "Executable Directories", "INclude directories", "Reference Directories", "Library Directories", "Source Directories" and "Exclude directories") myself. Could you maybe tell me what to put here ?

I am asking this because the MVS integration tool under the MKL 11 was supposed to make the life easier, as it did under MKL 10.3, but as it made a hell for me, I'd prefer to reference every directories myself. How could I do this ?

Thank you very much.

Tu ne cede malis sed contra audentior ito

>>...What do you mean by environment variables ?

1. Take a look on MSDN for exact explanation
2. Follow these steps: Control Panel -> System -> Advanced ( property page ) -> Environment Variables
or
3. Start button -> Programs -> Accessories -> Command prompt -> Enter command 'SET | more' and you will see all environment variables set for a current Windows user

>>You mean variables like $(MKLIncludeDir), $(MKLLibDir) etc ?

Yes but these are VS internal and they are Not set for all the rest applications when they run.

>>...Error: Modules with different CPU types were found...
>>...
>>...Any idea on what is happening here ?

It looks like you've mixed 32-bit and 64-bit DLLs for the same 32-bit application.

>>...as it did under MKL 10.3...

Let's say you've built some 32-bit application and it uses 32-bit MKL DLLs and target system has a CPU which supports AVX instruction set. Then, the following set of MKL DLLs is needed ( it means they must be found through search paths ):

[ Intel Core i7 CPU ]

mkl_rt.dll
mkl_intel_thread.dll
mkl_core.dll
mkl_avx.dll

Here are two more sets of Intel MKL DLLs:

[ Default CPU ]

mkl_rt.dll
mkl_intel_thread.dll
mkl_core.dll
mkl_def.dll

[ Intel Pentium 4 CPU ]

mkl_rt.dll
mkl_intel_thread.dll
mkl_core.dll
mkl_p4.dll

As you can see first three DLLs are the same for all cases ( threaded processing was selected, for example with compiler option /Qmkl:parallel ).

Yeah, I know what environment variables are, it is just that I had a doubt, regarding your post from Fri, 07/19/2013 - 05:14, nothing is clear to me because I just see this :

"...
..\ICC2011\Composer XE 2011 SP1\Ipp\..\Redist\Ia32\Ipp
..\ICC2011\Composer XE 2011 SP1\Ipp\..\Redist\Ia32\Compiler
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Mkl
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Compiler
..\ICC2011\Composer XE 2011 SP1\Tbb\bin\..\..\Redist\Ia32\Tbb\vc10
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Tbb\Vc8
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Ipp
..\ICC2011\Composer XE 2011 SP1\Redist\Ia32\Mpirt
C:\Program Files\Common Files\Intel\Shared Libraries\Redist\Ia32\Compiler"

in your post, and I don't know to which env var each path on every line is supposed to belong...

With your post from Fri, 07/19/2013 - 05:14, do you mean that all these paths are supposed to be in my PATH env var, right ?

Other questiond : if modifying whatever env. var(s), it does mean that this (these) env. var(s) has (have) somehow the priority over the VS internal for the build of the dll ?

Other question : in propertires --> conf. properties --> linker --> input --> add. dependencies, I put :

mkl_sequential_dll.lib
mkl_intel_thread_dll.lib
mkl_core_dll.lib
mkl_intel_c_dll.lib

Nevertheless, I still have the same message of error in dependency walker, telling to me that mkl_sequential.dll is missing... Plus obviously the same VBA error...

I have attache

1) the result of the "SET|more" cmd in a txt file in any case

2) the zipped solution

3) the xls file using the output dll.

If you could have a look to tell me what is wrong in my env var, or in my project configurations, that would be really nice and appreciated, because I'm really lost here. It's a bit silly knowing that I only need this vor random number generation and intensive linear algebra solving...

Thx a lot.

MEF

Tu ne cede malis sed contra audentior ito

Hi MEF, 

i have trouble to unzip the file of toto.zip. So just quick review your environment set, and find there is no MKL path in environment PATH, which require at run time by application to find MKL_sequential.dll, 

Could you please try to open one vs2010 command line windows, 

cd the directory of dll located. 

run the command 

>C:\Program Files (x86)\Intel\Composer XE 2013\mkl\bin\mklvars.sh ia32

>regsrv32 /s your.dll

Best Regards,

Ying

Yeah I know, but normally, you don't have to put anything special in the PATH env var, "properties --> configuration properties --> VC++ directories --> include / library & executables" being made for this. I mean, it would be particularly odd to oblige end users the put mkl stuff in PATH, right. (And this was not the case before. Is it now ? ) So, to sum up : I have put :

  • in "properties --> configuration properties --> VC++ directories --> executables" : C:\Program Files %28x86%29\Intel\Composer XE 2013\redist\ia32\mkl;$(ExecutablePath)
  • in "properties --> configuration properties --> VC++ directories --> include" : C:\Program Files %28x86%29\Intel\Composer XE 2013\mkl\include\ia32;C:\Program Files %28x86%29\Intel\Composer XE 2013\mkl\include;C:\Program Files %28x86%29\Intel\Composer XE 2013\mkl\include\fftw;$(IncludePath)
  • in "properties --> configuration properties --> VC++ directories --> library" : C:\Program Files %28x86%29\Intel\Composer XE 2013\mkl\lib\ia32;$(LibraryPath)
  • in "properties --> configuration properties --> Linker --> Input" : mkl_sequential_dll.lib;mkl_intel_thread_dll.lib;mkl_core_dll.lib;mkl_intel_c_dll.lib;comsvcs.lib;%(AdditionalDependencies)

and guess what... I still have the same result in VBA/Excel ("Run-Time Error -2147024770 (8007007e)" error) and in dependency walker :

"Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module."

What else should I do ?

Tu ne cede malis sed contra audentior ito

Hi MEF,

Right, In most of case, the MKL path should be in PATH after install. but  If it is not there, you may need to add it manually.  Or run the mklvars.sh as i mentioned last time.

Not sure why, according to my experience, the Executable Path setting in property  in MSVC* environment don't work. 

So either you add it by  Right click Computer=>click Properties=> Advanced System setting=>Advanced Tab=>Enviornment Variables=>System Vaiables => Path. 

Or run mklvars.sh , then in same command line windows, run dependency walker or register. Thus the MKL environment setting will reflect in dependecy walker windows and regiter.

Best Regards,

Ying

Hi Ying,

I have just tried what you've said, and had the same result in dependency walker, except that the mkl-sequential.dll is not red there anymore  (see attached pic) as it was before ! (See also the attached "mkl_config.txt" file for details) : with your manual method, mkl_sequential.dll is at least detected. (x)

Nevertheless, I still have the same automation error in excel... (*)

All conf properties are in the "mkl_config.txt" file, you can have a look, as well as my PATH env var (actual and initial)

I put the folder of my mvs2010 solution in toto.rar, that I zipped then, and attached the resulting "toto.zip" file --> tell me if you can extract it and have a look maybe ?...

Regarding (*), ideally, if you could manage to compile my solution and reference the resulting debug dll in the VBA of the attached "ATL_MC.xls" excel file and then tell me exactly what paths related to mkl you have used to succeed in :

  • your PATH env var
  • in "properties --> configuration properties --> VC++ directories --> executables"
  • in "properties --> configuration properties --> VC++ directories --> include"
  • in "properties --> configuration properties --> VC++ directories --> library"

and what libs related to mkl you have in 

  • in "properties --> configuration properties --> Linker --> Input --> additional dependencies"

that would be terrific ! Because, now I really don't know what to do...

Last remark regarding (x) : as mkl_sequential.dll is detected with the manual method and not directly, it means that something is still wrong in conf properties of my solution, or in my PATH. Other errors flagged by dependency walker are that "Modules with different CPU types were found" --> nothing related to mkl 64 bits is in my PATH env var or in the conf properties of my solution, so that I really don't see the problem...

Thx a lot again,

MEF

Tu ne cede malis sed contra audentior ito

No more advises ? Cause this has never worked for me ...

Example files attached

PS : I can't attach zip, just rar.

附件: 

Tu ne cede malis sed contra audentior ito

>>... this has never worked for me...

Hi and sorry to hear that it didn't work for you. So, I'll take a look at the rar-archive and let you know results of investigation.

Thx a lot Sergey ! If any infos are needed on my configuration, I'll be happy to pass them to you. Kind Regards,

MEF

Tu ne cede malis sed contra audentior ito

Hi Sergey and thank you very much in advance ! I will of course be happy to pass to you any infos on my configuration (PATHs, versions etc) needed, if needed.

Kind Regards,

MEF

Tu ne cede malis sed contra audentior ito

Hi, I couldn't extract files from the rar-archive. Here is some data from a log-file:

...
1 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ipch\validationmklusing_mvs2010-16ddec48\validationmklusing_mvs2010-dcca0c79.ipch" header broken
2 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ipch\validationmklusing_mvs2010-16ddec48\validationmklusing_mvs2010-dcca0c79.ipch
3 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Debug\ValidationMKLUsing_MVS2010.log" header broken
4 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Debug\ValidationMKLUsing_MVS2010.log
5 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Debug\ValidationMKLUsing_MVS2010PS.Build.CppClean.log" header broken
6 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Debug\ValidationMKLUsing_MVS2010PS.Build.CppClean.log
7 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Debug\ValidationMKLUsing_MVS2010PS.log" header broken
8 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Debug\ValidationMKLUsing_MVS2010PS.log
9 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\dlldata.c" header broken
10 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\dlldata.c
11 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\dllmain.cpp" header broken
12 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\dllmain.cpp
13 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\dllmain.h" header broken
14 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\dllmain.h
15 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ReadMe.txt" header broken
16 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ReadMe.txt
17 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Release\ValidationMKLUsing_MVS2010.log" header broken
18 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Release\ValidationMKLUsing_MVS2010.log
19 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Release\ValidationMKLUsing_MVS2010PS.log" header broken
20 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Release\ValidationMKLUsing_MVS2010PS.log
21 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\resource.h" header broken
22 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\resource.h
23 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\stdafx.cpp" header broken
24 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\stdafx.cpp
25 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\stdafx.h" header broken
26 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\stdafx.h
27 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\targetver.h" header broken
28 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\targetver.h
29 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\TheATLObject.cpp" header broken
30 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\TheATLObject.cpp
31 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\TheATLObject.h" header broken
32 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\TheATLObject.h
33 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\TheATLObject.rgs" header broken
34 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\TheATLObject.rgs
35 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.aps" header broken
36 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.aps
37 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.cpp" header broken
38 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.cpp
39 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.def" header broken
40 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.def
41 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.idl" header broken
42 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.idl
43 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.rc" header broken
44 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.rc
45 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.rgs" header broken
46 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.rgs
47 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.vcxproj" header broken
48 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.vcxproj
49 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.vcxproj.filters" header broken
50 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.vcxproj.filters
51 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.vcxproj.user" header broken
52 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.vcxproj.user
53 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010ps.def" header broken
54 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010ps.def
55 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010PS.vcxproj" header broken
56 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010PS.vcxproj
57 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010PS.vcxproj.filters" header broken
58 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010PS.vcxproj.filters
59 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010PS.vcxproj.user" header broken
60 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010PS.vcxproj.user
61 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.sdf" header broken
62 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.sdf
63 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.sln" header broken
64 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.sln
65 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.suo" header broken
66 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010.suo
67 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ipch\validationmklusing_mvs2010-16ddec48" header broken
68 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Debug" header broken
69 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010\Release" header broken
70 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\Debug" header broken
71 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ipch" header broken
72 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\Release" header broken
73 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010\ValidationMKLUsing_MVS2010" header broken
74 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010" header broken
75 validationmklusing-mvs2010.rar: File "ValidationMKLUsing_MVS2010.xlsm" header broken
76 validationmklusing-mvs2010.rar: Unknown method in ValidationMKLUsing_MVS2010.xlsm
...

My question is would you be able to send me sources of the test project as zip or z7 archives?

Hello Sergey, I am attaching the zip right now, sorry fior the delay. (For info I am creating all archives with winrar.)

Kind Regards

附件: 

附件尺寸
下载 validationmklusing-mvs2010.zip58.14 MB

Thx for wanting to have a look Sergey, and thanks Pascal for having sent the zip to Sergey ! :-)

Tu ne cede malis sed contra audentior ito

Hey Sergey, did you by any chance manage to have a look on the zipped project validationmklusing-mvs2010.zip that Pascal M sent for me ? I've tried again many things, but I still cannot manage to make it work, and I am really starting to be desperate about this. Thx in advance. Kind Regards

Tu ne cede malis sed contra audentior ito

I made work MisesEnForce's zipped project with the following configuration.

C:\Program Files (x86)\Intel\Composer XE 2013 SP1\redist\ia32\mkl;

in the PATH env var and with following properties in MVS :

 in properties --> configurations properties --> VC++ directories

- exectuable directories : C:\Program Files %28x86%29\Intel\Composer XE 2013 SP1\redist\ia32\mkl;C:\Program Files %28x86%29\Intel\Composer XE 2013 SP1\bin;C:\Program Files %28x86%29\Intel\Composer XE 2013 SP1\bin\ia32;$(ExecutablePath)

- include directories : C:\Program Files %28x86%29\Intel\Composer XE 2013 SP1\mkl\include\ia32;C:\Program Files %28x86%29\Intel\Composer XE 2013 SP1\mkl\include;$(IncludePath)

- library directories : C:\Program Files (x86)\Intel\Composer XE 2013 SP1\compiler\lib\ia32;C:\Program Files (x86)\Intel\Composer XE 2013 SP1\redist\ia32\mkl;C:\Program Files %28x86%29\Intel\Composer XE 2013 SP1\mkl\lib\ia32;$(LibraryPath)

In properties --> configurations properties --> linker --> input I tried to put :

mkl_intel_c.lib
mkl_intel_thread.lib
mkl_core.lib

libiomp5md.lib

comsvcs.lib

Brace yourself MisesEnForce, no need for you to chase and wait an hypothetical hypothetically useful answer from Sergey ! :-)

Regards,

Pierre

>>...Brace yourself MisesEnForce, no need for you to chase and wait an hypothetical hypothetically useful answer from Sergey ! :-)...

Guys, Please confirm that the problem is resolved. Thanks in advance.

Note: I will take a look at the zip file just in case.

This is simply to inform that I completed a verification of ValidationMKLUsing_MVS2010.dll ( from a Debug folder ) on two development computers ( Windows XP ( 32-bit ) and Windows 7 ( 32-bit and 64-bit ) ) using MS Depends utility and all MKL DLLs are found.

So, it is already confirmed by two developers that the problem is related to some issues with PATHs on your development computer.

I also completed a quick code review for a part related to MKL processing:

...
STDMETHODIMP CTheATLObject::THEATLOBJECTMETHOD( DOUBLE * x )
{
VSLStreamStatePtr stream;
vslNewStream( &stream, VSL_BRNG_SFMT19937, 777 );
double pUNIF = 0.0;
vdRngUniform( VSL_RNG_METHOD_UNIFORM_STD_ACCURATE, stream, 1, &pUNIF, 0.0, 1.0);
vslDeleteStream( &stream );
*x *= pUNIF;
return S_OK ;
}
...

and it looks good.

>>...
>>...mkl_intel_thread.lib
>>...

Pierre, simply to note that the ValidationMKLUsing_MVS2010.dll doesn't use parallel MKL DLL and a sequential MKL DLL is used instead.

发表评论

登录添加评论。还不是成员?立即加入