Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
AuxThreads.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"
#include "fasp_functs.h"

Go to the source code of this file.

Functions

void fasp_get_start_end (const INT procid, const INT nprocs, const INT n, INT *start, INT *end)
 Assign Load to each thread. More...
 
void fasp_set_gs_threads (const INT mythreads, const 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.

Note
This file contains Level-0 (Aux) functions.

Copyright (C) 2009–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

Definition in file AuxThreads.c.

Function Documentation

◆ fasp_get_start_end()

void fasp_get_start_end ( const INT  procid,
const INT  nprocs,
const 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 93 of file AuxThreads.c.

◆ fasp_set_gs_threads()

void fasp_set_gs_threads ( const INT  mythreads,
const INT  its 
)

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

Parameters
mythreadsTotal threads of solver
itsCurrent iteration number in the Krylov methods
Author
Feng Chunsheng, Yue Xiaoqiang
Date
03/20/2011

Definition at line 133 of file AuxThreads.c.

Variable Documentation

◆ THDs_AMG_GS

INT THDs_AMG_GS =0

AMG GS smoothing threads

Definition at line 117 of file AuxThreads.c.

◆ THDs_CPR_gGS

INT THDs_CPR_gGS =0

global matrix GS smoothing threads

Definition at line 119 of file AuxThreads.c.

◆ THDs_CPR_lGS

INT THDs_CPR_lGS =0

reservoir GS smoothing threads

Definition at line 118 of file AuxThreads.c.