![]() |
Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
|
Get and set number of threads and assign work load for each thread. More...
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 |
Get and set number of threads and assign work load for each thread.
Copyright (C) 2009–Present by the FASP team. All rights reserved.
Definition in file AuxThreads.c.
Assign Load to each thread.
procid | Index of thread |
nprocs | Number of threads |
n | Total workload |
start | Pointer to the begin of each thread in total workload |
end | Pointer to the end of each thread in total workload |
Definition at line 93 of file AuxThreads.c.
Set threads for CPR. Please add it at the begin of Krylov OpenMP method function and after iter++.
mythreads | Total threads of solver |
its | Current iteration number in the Krylov methods |
Definition at line 133 of file AuxThreads.c.
INT THDs_AMG_GS =0 |
AMG GS smoothing threads
Definition at line 117 of file AuxThreads.c.
INT THDs_CPR_gGS =0 |
global matrix GS smoothing threads
Definition at line 119 of file AuxThreads.c.
INT THDs_CPR_lGS =0 |
reservoir GS smoothing threads
Definition at line 118 of file AuxThreads.c.