#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <signal.h>
#include "mmh_intf.h"
#include "aph_intf.h"
#include "uth_intf.h"
#include "./uth_accel_intf.h"
#include "lin_alg_intf.h"
#include "pdh_control_intf.h"
#include "pdh_intf.h"
#include "tmh_intf.h"
#include <CL/cl.h>
#include "../tmd_opencl/tmh_ocl.h"
#include "../tmd_opencl/tmh_ocl_num_int.h"
Defines | |
#define | TIME_TEST_ACCEL_INT_ASSE |
Functions | |
int | utr_create_assembly_structures_accel (const int Problem_id, const int nr_int_ent, const int nr_dof_ent, const int max_dofs_int_ent, const int nrdofs_glob, const int block_size, double *geo_dofs_vector, double *dofs_vector_current, double *dofs_vector_prev_iter, double *dofs_vector_prev_step, int nr_dof_blocks_all_int_ent, int *pos_first_dof_int_ent, int *local_to_global, int *global_to_posglob, const int nr_asse_blocks_all_int_ent, int *asse_pos_first_dof_int_ent, int *assembly_table, const int nr_colors_elems, int *l_color_index_elems, int *l_int_ent_id) |
int | utr_free_assembly_structures_accel () |
int | utr_get_solver_structures_crs_accel (int *nnz, cl_mem *crs_col_ind, cl_mem *crs_row_ptr, cl_mem *crs_val, cl_mem *rhs) |
int | utr_create_assemble_stiff_mat_elem_accel (int Problem_id, int Level_id, int Comp_type, int *Pdeg_coarse_p, int Nr_int_ent, int *L_int_ent_type, int *L_int_ent_id, int Nr_colors_elems, int *L_color_index_elems, int Nr_colors_accel, int *Asse_pos_first_dof_int_ent, int *Assembly_table, int *Pos_first_dof_int_ent, int *Local_to_global, int Max_dofs_int_ent) |
int | utr_merge_solver_structures_accel () |
void | utr_prepare_geo_dat_for_all_color_streaming (int Problem_id, int Nr_colors_accel, int *L_color_index_elems, int *L_int_ent_id, int *Ngauss_p, SCALAR **Gauss_dat_host_p, int *Nshape_p, SCALAR **Shape_fun_dat_host_p, int *Ngeo_p, int **Ngeo_color_p, SCALAR **El_geo_dat_host_p, int *All_el_pde_coeff_size, int *One_el_pde_coeff_size, int *One_int_p_pde_coeff_size, SCALAR **El_pde_dat_host_p) |
Variables | |
double | t_begin |
double | t_end |
double | total_time |
#define TIME_TEST_ACCEL_INT_ASSE |
int utr_create_assemble_stiff_mat_elem_accel | ( | int | Problem_id, | |
int | Level_id, | |||
int | Comp_type, | |||
int * | Pdeg_coarse_p, | |||
int | Nr_int_ent, | |||
int * | L_int_ent_type, | |||
int * | L_int_ent_id, | |||
int | Nr_colors_elems, | |||
int * | L_color_index_elems, | |||
int | Nr_colors_accel, | |||
int * | Asse_pos_first_dof_int_ent, | |||
int * | Assembly_table, | |||
int * | Pos_first_dof_int_ent, | |||
int * | Local_to_global, | |||
int | Max_dofs_int_ent | |||
) |
int utr_create_assembly_structures_accel | ( | const int | Problem_id, | |
const int | nr_int_ent, | |||
const int | nr_dof_ent, | |||
const int | max_dofs_int_ent, | |||
const int | nrdofs_glob, | |||
const int | block_size, | |||
double * | geo_dofs_vector, | |||
double * | dofs_vector_current, | |||
double * | dofs_vector_prev_iter, | |||
double * | dofs_vector_prev_step, | |||
int | nr_dof_blocks_all_int_ent, | |||
int * | pos_first_dof_int_ent, | |||
int * | local_to_global, | |||
int * | global_to_posglob, | |||
const int | nr_asse_blocks_all_int_ent, | |||
int * | asse_pos_first_dof_int_ent, | |||
int * | assembly_table, | |||
const int | nr_colors_elems, | |||
int * | l_color_index_elems, | |||
int * | l_int_ent_id | |||
) |
int utr_free_assembly_structures_accel | ( | ) |
int utr_get_solver_structures_crs_accel | ( | int * | nnz, | |
cl_mem * | crs_col_ind, | |||
cl_mem * | crs_row_ptr, | |||
cl_mem * | crs_val, | |||
cl_mem * | rhs | |||
) |
int utr_merge_solver_structures_accel | ( | ) |
void utr_prepare_geo_dat_for_all_color_streaming | ( | int | Problem_id, | |
int | Nr_colors_accel, | |||
int * | L_color_index_elems, | |||
int * | L_int_ent_id, | |||
int * | Ngauss_p, | |||
SCALAR ** | Gauss_dat_host_p, | |||
int * | Nshape_p, | |||
SCALAR ** | Shape_fun_dat_host_p, | |||
int * | Ngeo_p, | |||
int ** | Ngeo_color_p, | |||
SCALAR ** | El_geo_dat_host_p, | |||
int * | All_el_pde_coeff_size, | |||
int * | One_el_pde_coeff_size, | |||
int * | One_int_p_pde_coeff_size, | |||
SCALAR ** | El_pde_dat_host_p | |||
) |
double t_begin |
double t_end |
double total_time |