Demo entry 6899934

12

   

Submitted by anonymous on Oct 09, 2019 at 14:32
Language: C. Code size: 470 Bytes.

void* get_local_result(void* data)
{
	double my_start,my_end,my_elapsed;
	my_start=omp_get_wtime();
	
	struct v* object=(struct v*)data;
	double** local_result=(double**)malloc(sizeof(double*)*a_row_size);
	int level=(int)(log(min_gap[1])/log(2)+0.5);//鏍戝舰鍔犳硶娆℃暟 
	for(int i=0;i<a_row_size;i++)
	{
		local_result[i]=(double*)malloc(sizeof(double)*b_col_size);
		for(int j=0;j<b_col_size;j++)
			local_result[i][j]=0;
	}
	obj[object->thread_id]=local_result

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).