MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / get_num_threads

Function get_num_threads

Core/VirtualQuantumProcessor/SingleAmplitude/Tensor.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 return der;
19}
20static int get_num_threads(size_t rank)
21{
22 int nthreds = 1;
23 if (rank > 2)
24 {
25#ifdef USE_OPENMP
26 nthreds = omp_get_max_threads();
27#endif
28 }
29 return nthreds;
30}
31
32
33CPUComplexTensor::~CPUComplexTensor()

Callers 6

dimIncrementMethod · 0.85
getSubTensorMethod · 0.85
dimDecrementMethod · 0.85
mulMethod · 0.85
CPUComplexTensorMethod · 0.85
Tensor.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected