Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
threads.c File Reference

Get and set number of threads and assign work load for each thread. More...

#include <stdio.h>
#include <stdlib.h>
#include "fasp.h"

Go to the source code of this file.

Functions

void FASP_GET_START_END (INT procid, INT nprocs, INT n, INT *start, INT *end)
 Assign Load to each thread. More...
 
void fasp_set_GS_threads (INT mythreads, INT its)
 Set threads for CPR. Please add it at the begin of Krylov OpenMP method function and after iter++. More...
 

Variables

INT THDs_AMG_GS =0
 
INT THDs_CPR_lGS =0
 
INT THDs_CPR_gGS =0
 

Detailed Description

Get and set number of threads and assign work load for each thread.

Definition in file threads.c.

Function Documentation

void FASP_GET_START_END ( INT  procid,
INT  nprocs,
INT  n,
INT start,
INT end 
)

Assign Load to each thread.

Parameters
procidIndex of thread
nprocsNumber of threads
nTotal workload
startPointer to the begin of each thread in total workload
endPointer to the end of each thread in total workload
Author
Chunsheng Feng, Xiaoqiang Yue and Zheng Li
Date
June/25/2012

Definition at line 83 of file threads.c.

void fasp_set_GS_threads ( INT  threads,
INT  its 
)

Set threads for CPR. Please add it at the begin of Krylov OpenMP method function and after iter++.

Parameters
threadsTotal threads of solver
itsCurrent its of the Krylov methods
Author
Feng Chunsheng, Yue Xiaoqiang
Date
03/20/2011

TODO: Why put it here??? –Chensong

Definition at line 125 of file threads.c.

Variable Documentation

INT THDs_AMG_GS =0

AMG GS smoothing threads

Definition at line 107 of file threads.c.

INT THDs_CPR_gGS =0

global matrix GS smoothing threads

Definition at line 109 of file threads.c.

INT THDs_CPR_lGS =0

reservoir GS smoothing threads

Definition at line 108 of file threads.c.