User Profile

Collapse

Profile Sidebar

Collapse
PimpDaddy
PimpDaddy
Last Activity: Mar 13 '08, 01:39 PM
Joined: Oct 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • We recently discovered that the thread leak has nothing to do with .NET. The same leak occurs even if we run OpenMP code inside a Win32 thread. So, here is the new example. Suggestions\ide as, please?

    Code:
    #include <windows.h>
    #include <stdio.h>
    #include <omp.h>
    
    int calculateArithmeticalProgressionSumOMP( int a1, int d, int n )
    {
    	int sum = 0;
    	omp_set_num_threads(3);
    ...
    See more | Go to post

    Leave a comment:


  • (OpenMP, C++ME, System.Threading.Thread) -> Resource Leak.

    Here is the source code of my C++/ME app. When I run it I can use "Windows Task Manager" to see that thread HANDLEs are leaking.

    Code:
    #include "stdafx.h"
    #include <omp.h>
    
    public __gc class TestClass
    {
    public:
    	void ThreadProc()
    	{
    		int sum = 0;
    	
    #pragma omp parallel for reduction(+:sum)
    		for ( int i = 0; i < 10000; i++ )
    ...
    See more | Go to post
No activity results to display
Show More
Working...