- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am giving the C++ code below to demonstrate this memory leakage. The C++ code can be complied in .Net 2003 and linked with MKL 8.0 (remember to include "mkl.h" to you "include path" and to add "libguide.lib" and "mkl_c.lib" to your library list).
If you start the debug in the .Net DEV, you willsee the leakage information in the "Output" window in the DEV. For comparison, you can uncomment the "dtrmv" line and comment the "dtrmm" line; then, you will see no leakage.
I am very concerned with this problem.
======================================
#include "mkl.h"
using namespace std;
#define CRTDBG_MAP_ALLOC
#include
#include
/* Test the memory leakage of dtrmm in MKL */
int _tmain(int argc, _TCHAR* argv[])
{
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
double a[] = {1,2,3,1,0,1,2,1,0,0,1,4,0,0,0,1};
double b[] = {1,2,3,4};
// a=
// 1 0 0 0
// 2 1 0 0
// 3 2 1 0
// 1 1 4 1
// A*b = [1 4 10 19]'
double alpha = 1.0;
int lda=4;
int m=4;
int rhs=1;
int inc = 1;
dtrmm("L","L","N","U",&m,&rhs,α,a,&lda,b,&lda);
//dtrmv("L","N","U",&m,a,&m,b,&inc);
return 0;
}
Message Edited by wy2002@columbia.edu on 11-22-2005 10:13 PM
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page