Skip to content

Commit

Permalink
core: Remove unused global variables in EK GPU code
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Jan 29, 2021
1 parent e4d6ecc commit 1d6c7ee
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/core/grid_based_algorithms/electrokinetics_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@

extern ActiveLB lattice_switch;
extern bool ek_initialized;
EK_parameters *lb_ek_parameters_gpu;

// Used to limit register use for the pressure calculation
#define EK_LINK_U00_pressure 0
Expand Down Expand Up @@ -180,7 +179,6 @@ EK_parameters ek_parameters = {

__device__ __constant__ EK_parameters ek_parameters_gpu[1];
ekfloat *charge_gpu;
EK_parameters *ek_parameters_gpu_pointer;
LB_parameters_gpu *ek_lbparameters_gpu;
CUDA_particle_data *particle_data_gpu;
float *ek_lb_boundary_force;
Expand Down Expand Up @@ -2349,13 +2347,6 @@ int ek_init() {
dim3 dim_grid;

if (!ek_initialized) {
if (cudaGetSymbolAddress((void **)&ek_parameters_gpu_pointer,
ek_parameters_gpu) != cudaSuccess) {
fprintf(stderr, "ERROR: Fetching constant memory pointer\n");

return 1;
}

for (auto &val : ek_parameters.species_index) {
val = -1;
}
Expand Down Expand Up @@ -2440,7 +2431,6 @@ int ek_init() {
sizeof(EK_parameters)));

lb_get_para_pointer(&ek_lbparameters_gpu);
lb_set_ek_pointer(ek_parameters_gpu_pointer);

cuda_safe_mem(
cudaMalloc((void **)&ek_parameters.lb_force_density_previous,
Expand Down Expand Up @@ -2544,10 +2534,6 @@ int ek_init() {
return 0;
}

void lb_set_ek_pointer(EK_parameters *pointeradress) {
lb_ek_parameters_gpu = pointeradress;
}

unsigned int ek_calculate_boundary_mass() {
auto *bound_array = (unsigned int *)Utils::malloc(lbpar_gpu.number_of_nodes *
sizeof(unsigned int));
Expand Down

0 comments on commit 1d6c7ee

Please sign in to comment.