ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Functions
tool_threading_test.cpp File Reference
#include "../tool_threading.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <omp.h>
Include dependency graph for tool_threading_test.cpp:

Functions

void test_fun (int a, int b)
 
 TEST (ToolThreadingTEST, TastDist1DInt)
 
 TEST (ToolThreadingTEST, TastDist1DLonglong)
 
 TEST (ToolThreadingTEST, BlockTaskDist1DInt)
 
 TEST (ToolThreadingTEST, BlockTaskDist1DLonglong)
 
 TEST (ToolThreadingTEST, OmpParalle)
 

Function Documentation

◆ TEST() [1/5]

TEST ( ToolThreadingTEST  ,
BlockTaskDist1DInt   
)
Here is the call graph for this function:

◆ TEST() [2/5]

TEST ( ToolThreadingTEST  ,
BlockTaskDist1DLonglong   
)
Here is the call graph for this function:

◆ TEST() [3/5]

TEST ( ToolThreadingTEST  ,
OmpParalle   
)
Here is the call graph for this function:

◆ TEST() [4/5]

TEST ( ToolThreadingTEST  ,
TastDist1DInt   
)
Here is the call graph for this function:

◆ TEST() [5/5]

TEST ( ToolThreadingTEST  ,
TastDist1DLonglong   
)
Here is the call graph for this function:

◆ test_fun()

void test_fun ( int  a,
int  b 
)
  • Tested functions of class threading tool:
    • TASK_DIST_1D:
      • (template)Distributing 1d tasks by worker id (int and long long)
    • BLOCK_TASK_DIST_1D:
      • (template)Distributing 1d tasks by block_size and worker id (int and long long)
    • OMP_PARALLE:
      • Run functions in parallel mode
    • TRY_OMP_PARALLEL:
      • Run functions in parallel mode(Add the judgment statement to determine whether program is in parallel)
Here is the caller graph for this function: