![]() |
MaCh3
2.4.2
Reference Guide
|
Class responsible for performing MCMC Processing with GPU. More...
Public Member Functions | |
| MCMCProcessorGPU () | |
| constructor More... | |
| virtual | ~MCMCProcessorGPU () |
| destructor More... | |
| __host__ void | InitGPU_AutoCorr (int n_Entries, int n_Pars, const int n_Lags) |
| KS: Initialiser, here we allocate memory for variables and copy constants. More... | |
| __host__ void | CopyToGPU_AutoCorr (float *ParStep_cpu, float *NumeratorSum_cpu, float *ParamSums_cpu, float *DenomSum_cpu) |
| KS: Copy necessary variables from CPU to GPU. More... | |
| __host__ void | RunGPU_AutoCorr (float *NumeratorSum_cpu, float *DenomSum_cpu) |
| KS: This call the main kernel responsible for calculating LagL and later copy results back to CPU. More... | |
| __host__ void | CleanupGPU_AutoCorr () |
| KS: free memory on gpu. More... | |
Private Attributes | |
| float * | ParStep_gpu |
| Value of each param at GPU. More... | |
| float * | NumeratorSum_gpu |
| float * | ParamSums_gpu |
| float * | DenomSum_gpu |
| int | h_nLag |
| int | h_nDraws |
| int | h_nEntries |
Class responsible for performing MCMC Processing with GPU.
Definition at line 29 of file gpuMCMCProcessorUtils.cuh.
| MCMCProcessorGPU::MCMCProcessorGPU | ( | ) |
constructor
Definition at line 16 of file gpuMCMCProcessorUtils.cu.
|
virtual |
| __host__ void MCMCProcessorGPU::CleanupGPU_AutoCorr | ( | ) |
| __host__ void MCMCProcessorGPU::CopyToGPU_AutoCorr | ( | float * | ParStep_cpu, |
| float * | NumeratorSum_cpu, | ||
| float * | ParamSums_cpu, | ||
| float * | DenomSum_cpu | ||
| ) |
KS: Copy necessary variables from CPU to GPU.
| ParStep_cpu | Parameter value at each step |
| NumeratorSum_cpu | Sum used for nominator of autocorrelation calculations |
| ParamSums_cpu | Overall sum for each parameter over all steps |
| DenomSum_cpu | Sum used for denominator of autocorrelation calculations |
Definition at line 79 of file gpuMCMCProcessorUtils.cu.
| __host__ void MCMCProcessorGPU::InitGPU_AutoCorr | ( | int | n_Entries, |
| int | n_Pars, | ||
| const int | n_Lags | ||
| ) |
KS: Initialiser, here we allocate memory for variables and copy constants.
| n_Entries | Total number of entries in mcmc chain |
| n_Pars | Number of relevant parameters |
| n_Lags | Value of Lag in autocreation calculation |
Definition at line 32 of file gpuMCMCProcessorUtils.cu.
| __host__ void MCMCProcessorGPU::RunGPU_AutoCorr | ( | float * | NumeratorSum_cpu, |
| float * | DenomSum_cpu | ||
| ) |
KS: This call the main kernel responsible for calculating LagL and later copy results back to CPU.
| NumeratorSum_cpu | Sum used for nominator of autocorrelation calculations |
| DenomSum_cpu | Sum used for denominator of autocorrelation calculations |
Definition at line 159 of file gpuMCMCProcessorUtils.cu.
|
private |
Definition at line 72 of file gpuMCMCProcessorUtils.cuh.
|
private |
Definition at line 76 of file gpuMCMCProcessorUtils.cuh.
|
private |
Definition at line 77 of file gpuMCMCProcessorUtils.cuh.
|
private |
Definition at line 75 of file gpuMCMCProcessorUtils.cuh.
|
private |
Definition at line 70 of file gpuMCMCProcessorUtils.cuh.
|
private |
Definition at line 71 of file gpuMCMCProcessorUtils.cuh.
|
private |
Value of each param at GPU.
Definition at line 69 of file gpuMCMCProcessorUtils.cuh.