MADNESS 0.10.1
Classes | Macros | Functions | Variables
test_atomicint.cc File Reference
#include <madness/world/world.h>
#include <madness/world/thread.h>
#include <iostream>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <madness/world/atomicint.h>
Include dependency graph for test_atomicint.cc:

Classes

class  Adder
 
class  Greet
 

Macros

#define MAX_NUM_THREADS   1000
 

Functions

void * doit (void *args)
 
int get_nthread ()
 
int main (int argc, char **argv)
 

Variables

const int NDO = 10000000
 
AtomicInt ndone
 
AtomicInt sum
 

Macro Definition Documentation

◆ MAX_NUM_THREADS

#define MAX_NUM_THREADS   1000

Function Documentation

◆ doit()

void * doit ( void *  args)

References ndone, and sum.

Referenced by main().

◆ get_nthread()

int get_nthread ( )

References MADNESS_EXCEPTION.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ NDO

const int NDO = 10000000

Referenced by main(), and Adder::run().

◆ ndone

AtomicInt ndone

◆ sum

AtomicInt sum

Referenced by a(), a_fit(), apbar_fit(), madness::Molecule::atomic_attraction_potential(), b(), madness::WorldGopInterface::barrier(), bshrel_fit(), PointGroup::cart_ir(), madness::checksum_file(), chunk_example(), madness::F12Potentials::compute_cispd_f12_energies(), madness::NemoBase::compute_density(), madness::Nemo::compute_energy_regularized(), madness::NemoBase::compute_kinetic_energy2(), madness::OEP::compute_Pauli_kinetic_density(), madness::div(), madness::do_adq(), Node::do_sum(), do_test_random(), doit(), doit(), madness::dot(), madness::FunctionImpl< T, NDIM >::dot_local(), dVdx(), dVdx(), dVdy(), dVdy(), dVdz(), dVdz(), errsq(), madness::FunctionImpl< T, NDIM >::eval_cube(), AtomicBasisSet::eval_guess_density(), madness::AtomicBasisSet::eval_guess_density(), AtomicBasis::eval_guess_density(), madness::AtomicBasis::eval_guess_density(), ContractedGaussianShell::eval_radial(), madness::ContractedGaussianShell::eval_radial(), DF::exchange(), f1(), madness::WorldGopInterface::fence_impl(), fit(), fit(), madness::gauss_legendre_test(), gaussian_func(), madness::PNO::get_average_rank(), madness::WorldDCPmapInterface< keyT >::global_size(), guess(), guess1s(), guess2s(), madness::Nemo::hessian(), TTT::hugh(), inner_func(), madness::FunctionImpl< T, NDIM >::inner_local(), madness::inner_result(), madness::Nemo::kinetic_energy_potential(), madness::WorldDCPmapInterface< keyT >::local_size(), LSQ(), main(), main(), makedata(), A::member(), madness::Molecule::molecular_core_potential(), madness::mTxmT(), madness::SeparatedConvolution< Q, NDIM >::munorm2_ns(), madness::mxmT(), madness::mxmT_reference(), madness::Molecule::n_core_orb_all(), madness::FunctionImpl< T, NDIM >::nCoeff(), madness::FunctionImpl< T, NDIM >::norm_tree_op(), ContractedGaussianShell::normalize(), madness::ContractedGaussianShell::normalize(), MolecularEntity::nuclear_attraction_potential(), madness::Molecule::nuclear_attraction_potential(), madness::Molecule::nuclear_dipole(), madness::Molecule::nuclear_repulsion_derivative(), MolecularEntity::nuclear_repulsion_energy(), madness::Molecule::nuclear_repulsion_energy(), madness::Molecule::nuclear_repulsion_second_derivative(), MolecularGuessDensityFunctor::operator()(), AtomicBasisFunctor< Q >::operator()(), NuclearDensityFunctor::operator()(), madness::WSTAtomicBasisFunctor::operator()(), Gaussian< T, NDIM >::operator()(), HeElectronicChargeDensityIGuess< T, NDIM >::operator()(), HeNuclearChargeDensityIGuess< T, NDIM >::operator()(), madness::ComplexExp< NDIM >::operator()(), Gaussian< T, NDIM >::operator()(), DerivativeGaussian< T, NDIM >::operator()(), GaussianPotential::operator()(), madness::FunctionImpl< T, NDIM >::do_inner_local< R >::operator()(), BoysLocalization::operator()(), opt(), opt(), pbar_fit(), periodic_sum(), periodic_sum_partial(), madness::plot_line(), madness::plot_line(), madness::plot_line(), madness::plot_line(), madness::plot_line(), madness::plot_line(), Calculation::plot_p(), madness::PNO::print_ranks(), madness::CCPairFunction< T, NDIM >::project_out_op_decomposed(), madness::FunctionImpl< T, NDIM >::real_size(), madness::WorldTaskQueue::reduce(), Adder::run(), madness::SDFEllipsoid::sdf(), series(), madness::FunctionImpl< T, NDIM >::size(), madness::ConcurrentHashMap< keyT, valueT, hashfunT >::size(), madness::WorldGopInterface::sum(), tbar_fit(), test(), Test7(), test_add(), test_random(), test_thread(), test_xc2(), madness::testf(), MolecularEntity::total_nuclear_charge(), madness::Molecule::total_nuclear_charge(), madness::Function< T, NDIM >::trace(), madness::FunctionImpl< T, NDIM >::trace_local(), transform3d(), madness::FunctionImpl< T, NDIM >::tree_size(), V(), and V().