Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/external_packages/clvisc_wrapper/include/clideal.h>
Public Member Functions | |
CLIdeal (const Config &cfg, std::string device_type, int device_id) | |
const Config & | get_config () |
template<typename ValueType > | |
void | read_ini (const std::vector< ValueType > &ed) |
template<typename ValueType > | |
void | read_ini (const std::vector< ValueType > &ed, const std::vector< ValueType > &vx, const std::vector< ValueType > &vy, const std::vector< ValueType > &vz) |
void | one_step () |
void | predict_first_step () |
float | max_energy_density () |
void | evolve () |
OpenclBackend & | get_backend () |
std::string & | get_compile_option () |
~CLIdeal () | |
Public Attributes | |
std::vector< cl_real4 > | h_ev_ |
cl::Buffer | d_ev_ [3] |
cl::Buffer | d_src_ |
cl::Image2D | eos_table_ |
Private Member Functions | |
void | read_eos_table_ (std::string fname, CompileOption &opts_) |
void | initialize_gpu_buffer_ () |
void | half_step_ (int step) |
for JetScape
Definition at line 75 of file clideal.h.
View newest version in sPHENIX GitHub at line 75 of file clideal.h
clvisc::CLIdeal::CLIdeal | ( | const Config & | cfg, |
std::string | device_type, | ||
int | device_id | ||
) |
Definition at line 36 of file clideal.cc.
View newest version in sPHENIX GitHub at line 36 of file clideal.cc
References backend_, clvisc::Config::block_size, clvisc::OpenclBackend::BuildProgram(), cfg_, compile_option_, clvisc::CompileOption::Define(), clvisc::OpenclBackend::DeviceType(), clvisc::Config::dt, clvisc::Config::dx, clvisc::Config::dy, clvisc::Config::dz, check_license::err(), ErrorMessage(), clvisc::Config::etaos_left_slop, clvisc::Config::etaos_right_slop, clvisc::Config::etaos_xmin, clvisc::Config::etaos_ymin, kernel_kt_src_alongx_, kernel_kt_src_alongy_, kernel_kt_src_alongz_, kernel_kt_src_christoffel_, kernel_reduction_, kernel_update_ev_, clvisc::CompileOption::KernelIncludePath(), clvisc::Config::nx, clvisc::Config::nxskip, clvisc::Config::ny, clvisc::Config::nyskip, clvisc::Config::nz, clvisc::Config::nzskip, read_eos_table_(), clvisc::CompileOption::SetFloatConst(), clvisc::CompileOption::SetIntConst(), clvisc::CompileOption::str(), clvisc::Config::tau0, tau0_, and tau_.
clvisc::CLIdeal::~CLIdeal | ( | ) |
Definition at line 309 of file clideal.cc.
View newest version in sPHENIX GitHub at line 309 of file clideal.cc
void clvisc::CLIdeal::evolve | ( | ) |
Definition at line 271 of file clideal.cc.
View newest version in sPHENIX GitHub at line 271 of file clideal.cc
References cfg_, check_license::err(), ErrorMessage(), max_energy_density(), clvisc::Config::ntskip, one_step(), step, tau_, and Acts::Test::time.
Referenced by main().
OpenclBackend & clvisc::CLIdeal::get_backend | ( | ) |
Definition at line 300 of file clideal.cc.
View newest version in sPHENIX GitHub at line 300 of file clideal.cc
References backend_.
std::string & clvisc::CLIdeal::get_compile_option | ( | ) |
Definition at line 304 of file clideal.cc.
View newest version in sPHENIX GitHub at line 304 of file clideal.cc
References compile_option_.
Referenced by clvisc::CLVisc::CLVisc().
|
inline |
|
private |
Definition at line 177 of file clideal.cc.
View newest version in sPHENIX GitHub at line 177 of file clideal.cc
References backend_, clvisc::Config::block_size, cfg_, d_ev_, d_src_, clvisc::OpenclBackend::enqueue_run(), eos_table_, kernel_kt_src_alongx_, kernel_kt_src_alongy_, kernel_kt_src_alongz_, kernel_kt_src_christoffel_, kernel_update_ev_, cl::NullRange, clvisc::Config::nx, clvisc::Config::ny, clvisc::Config::nz, cl::Kernel::setArg(), size, and tau_.
Referenced by one_step(), and predict_first_step().
|
private |
Definition at line 138 of file clideal.cc.
View newest version in sPHENIX GitHub at line 138 of file clideal.cc
References backend_, clvisc::OpenclBackend::CreateBuffer(), clvisc::OpenclBackend::CreateBufferByCopyVector(), d_ev_, d_src_, d_submax_, h_ev_, i, and clvisc::REDUCTION_BLOCKS.
Referenced by read_ini().
float clvisc::CLIdeal::max_energy_density | ( | ) |
Definition at line 237 of file clideal.cc.
View newest version in sPHENIX GitHub at line 237 of file clideal.cc
References backend_, cfg_, d_ev_, d_submax_, clvisc::OpenclBackend::DeviceType(), clvisc::OpenclBackend::enqueue_copy(), clvisc::OpenclBackend::enqueue_run(), kernel_reduction_, clvisc::Config::nx, clvisc::Config::ny, clvisc::Config::nz, clvisc::REDUCTION_BLOCKS, cl::Kernel::setArg(), and size.
Referenced by evolve(), and clvisc::CLVisc::evolve().
void clvisc::CLIdeal::one_step | ( | ) |
Definition at line 259 of file clideal.cc.
View newest version in sPHENIX GitHub at line 259 of file clideal.cc
References cfg_, clvisc::Config::dt, half_step_(), and tau_.
Referenced by evolve().
void clvisc::CLIdeal::predict_first_step | ( | ) |
Definition at line 267 of file clideal.cc.
View newest version in sPHENIX GitHub at line 267 of file clideal.cc
References half_step_().
Referenced by clvisc::CLVisc::evolve().
|
private |
Definition at line 102 of file clideal.cc.
View newest version in sPHENIX GitHub at line 102 of file clideal.cc
References backend_, clvisc::OpenclBackend::CreateImage2DByCopyVector(), eos_table_, clvisc::CompileOption::SetFloatConst(), clvisc::CompileOption::SetIntConst(), and width.
Referenced by CLIdeal().
void clvisc::CLIdeal::read_ini | ( | const std::vector< ValueType > & | ed | ) |
Definition at line 150 of file clideal.cc.
View newest version in sPHENIX GitHub at line 150 of file clideal.cc
References f, h_ev_, ambiguity_solver_full_chain::idx, and initialize_gpu_buffer_().
Referenced by main(), and clvisc::CLVisc::read_ini().
void clvisc::CLIdeal::read_ini | ( | const std::vector< ValueType > & | ed, |
const std::vector< ValueType > & | vx, | ||
const std::vector< ValueType > & | vy, | ||
const std::vector< ValueType > & | vz | ||
) |
Definition at line 160 of file clideal.cc.
View newest version in sPHENIX GitHub at line 160 of file clideal.cc
References h_ev_, ambiguity_solver_full_chain::idx, and initialize_gpu_buffer_().
|
private |
Definition at line 83 of file clideal.h.
View newest version in sPHENIX GitHub at line 83 of file clideal.h
Referenced by CLIdeal(), get_backend(), half_step_(), initialize_gpu_buffer_(), max_energy_density(), and read_eos_table_().
|
private |
Definition at line 82 of file clideal.h.
View newest version in sPHENIX GitHub at line 82 of file clideal.h
Referenced by CLIdeal(), evolve(), get_config(), half_step_(), max_energy_density(), and one_step().
|
private |
cl::Buffer clvisc::CLIdeal::d_ev_[3] |
Definition at line 111 of file clideal.h.
View newest version in sPHENIX GitHub at line 111 of file clideal.h
Referenced by clvisc::CLVisc::evolve(), half_step_(), clvisc::CLVisc::half_step_israel_stewart_(), clvisc::CLVisc::half_step_visc_(), initialize_gpu_buffer_(), clvisc::CLVisc::israel_stewart_initialize_(), max_energy_density(), and clvisc::CLVisc::update_udiff_().
cl::Buffer clvisc::CLIdeal::d_src_ |
Definition at line 112 of file clideal.h.
View newest version in sPHENIX GitHub at line 112 of file clideal.h
Referenced by half_step_(), clvisc::CLVisc::half_step_visc_(), and initialize_gpu_buffer_().
|
private |
Definition at line 88 of file clideal.h.
View newest version in sPHENIX GitHub at line 88 of file clideal.h
Referenced by initialize_gpu_buffer_(), and max_energy_density().
cl::Image2D clvisc::CLIdeal::eos_table_ |
Definition at line 114 of file clideal.h.
View newest version in sPHENIX GitHub at line 114 of file clideal.h
Referenced by clvisc::CLVisc::evolve(), half_step_(), clvisc::CLVisc::half_step_israel_stewart_(), clvisc::CLVisc::half_step_visc_(), clvisc::CLVisc::israel_stewart_initialize_(), and read_eos_table_().
std::vector<cl_real4> clvisc::CLIdeal::h_ev_ |
Definition at line 110 of file clideal.h.
View newest version in sPHENIX GitHub at line 110 of file clideal.h
Referenced by initialize_gpu_buffer_(), and read_ini().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 81 of file clideal.h.
View newest version in sPHENIX GitHub at line 81 of file clideal.h
Referenced by CLIdeal(), evolve(), half_step_(), and one_step().