- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
My custom DLL contains comuptation with VML functions call. MKL 9.0 is linked to DLL throw mkl_c.lib and libguide.lib.
But when app calls my DLL computation code, process is crached in any vml functions. Debuger shows exception (access violation) in TLS read code.
Example (vml code for cpu specific GetMode function):
mov ecx,dword ptr ds:[2CC31BCh] (this is __tls_index)
mov edx,dword ptr fs:[2Ch]
mov ebx,dword ptr [edx+ecx*4] (exception (ecx == 0 and edx == 0))
Can you help me?
But when app calls my DLL computation code, process is crached in any vml functions. Debuger shows exception (access violation) in TLS read code.
Example (vml code for cpu specific GetMode function):
mov ecx,dword ptr ds:[2CC31BCh] (this is __tls_index)
mov edx,dword ptr fs:[2Ch]
mov ebx,dword ptr [edx+ecx*4] (exception (ecx == 0 and edx == 0))
Can you help me?
Link kopiert
6 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Thank you for your question. Could youlink your DLL to mkl_c_dll.lib? This should help. Please, let us know how it works for you.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Thanks, mkl_c_dll.lib resolves problem.
But now my DLL use dynamic MKL dlls and total size of application is very large (~40Mb). How can i decrease size?
But now my DLL use dynamic MKL dlls and total size of application is very large (~40Mb). How can i decrease size?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
If your application contains calls to VML functions only you might want to link your DLL tomkl_vml_*.dll, msvcr71.dll,and libguide40.dll. Please, let's know how it works for you. Thanks.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
No. My DLL uses some LAPACK funtions.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
You could link your application also to mkl_lapack32.dll or mkl_lapack64.dll (depending on the data type you use) in addition to the VML related dlls.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Thank you.

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite