ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
TestModuleHamiltVeff Class Reference
Inheritance diagram for TestModuleHamiltVeff:
Collaboration diagram for TestModuleHamiltVeff:

Protected Types

using veff_cpu_op = hamilt::veff_pw_op<double, base_device::DEVICE_CPU>
using veff_gpu_op = hamilt::veff_pw_op<double, base_device::DEVICE_GPU>
using delete_memory_complex_op
using resize_memory_complex_op
using syncmem_complex_h2d_op
using syncmem_complex_d2h_op
using delete_memory_double_op = base_device::memory::delete_memory_op<double, base_device::DEVICE_GPU>
using resize_memory_double_op = base_device::memory::resize_memory_op<double, base_device::DEVICE_GPU>
using syncmem_double_h2d_op

Protected Member Functions

void SetUp () override
void TearDown () override

Protected Attributes

const int size = 1728
const std::vector< double > in
const std::vector< std::complex< double > > out
const std::vector< std::complex< double > > expected_out
std::vector< std::complex< double > > expected_out_spin
std::vector< std::complex< double > > out_spin
std::vector< double > in_spin
const base_device::DEVICE_CPU * cpu_ctx = {}
const base_device::DEVICE_GPU * gpu_ctx = {}

Member Typedef Documentation

◆ delete_memory_complex_op

◆ delete_memory_double_op

◆ resize_memory_complex_op

◆ resize_memory_double_op

◆ syncmem_complex_d2h_op

Initial value:
std::complex<double>, base_device::DEVICE_CPU, base_device::DEVICE_GPU>

◆ syncmem_complex_h2d_op

Initial value:
std::complex<double>, base_device::DEVICE_GPU, base_device::DEVICE_CPU>

◆ syncmem_double_h2d_op

◆ veff_cpu_op

using TestModuleHamiltVeff::veff_cpu_op = hamilt::veff_pw_op<double, base_device::DEVICE_CPU>
protected

◆ veff_gpu_op

using TestModuleHamiltVeff::veff_gpu_op = hamilt::veff_pw_op<double, base_device::DEVICE_GPU>
protected

Member Function Documentation

◆ SetUp()

void TestModuleHamiltVeff::SetUp ( )
inlineoverrideprotected

◆ TearDown()

void TestModuleHamiltVeff::TearDown ( )
inlineoverrideprotected

Member Data Documentation

◆ cpu_ctx

const base_device::DEVICE_CPU* TestModuleHamiltVeff::cpu_ctx = {}
protected

◆ expected_out

const std::vector<std::complex<double> > TestModuleHamiltVeff::expected_out
protected

◆ expected_out_spin

std::vector<std::complex<double> > TestModuleHamiltVeff::expected_out_spin
protected

◆ gpu_ctx

const base_device::DEVICE_GPU* TestModuleHamiltVeff::gpu_ctx = {}
protected

◆ in

const std::vector<double> TestModuleHamiltVeff::in
protected

◆ in_spin

std::vector<double> TestModuleHamiltVeff::in_spin
protected

◆ out

const std::vector<std::complex<double> > TestModuleHamiltVeff::out
protected

◆ out_spin

std::vector<std::complex<double> > TestModuleHamiltVeff::out_spin
protected

◆ size

const int TestModuleHamiltVeff::size = 1728
protected

The documentation for this class was generated from the following file: