From 4047f5fcaebcf1b80389f2280a0a7c79635e693a Mon Sep 17 00:00:00 2001 From: itischler Date: Thu, 11 Apr 2019 17:47:33 +0200 Subject: [PATCH] Fixed reference to __device__ from __host__ __device__ bug --- src/core/electrokinetics_cuda.cu | 2 +- src/core/lbgpu_cuda.cu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/electrokinetics_cuda.cu b/src/core/electrokinetics_cuda.cu index 641d12d2c58..e554b178c2c 100644 --- a/src/core/electrokinetics_cuda.cu +++ b/src/core/electrokinetics_cuda.cu @@ -3728,7 +3728,7 @@ int ek_set_ext_force_density(int species, double ext_force_density_x, #ifdef EK_ELECTROSTATIC_COUPLING struct ek_charge_of_particle { - __device__ ekfloat operator()(CUDA_particle_data particle) { + __host__ __device__ ekfloat operator()(CUDA_particle_data particle) { return particle.q; }; }; diff --git a/src/core/lbgpu_cuda.cu b/src/core/lbgpu_cuda.cu index d1094671f4c..5a729af33fb 100644 --- a/src/core/lbgpu_cuda.cu +++ b/src/core/lbgpu_cuda.cu @@ -4476,7 +4476,7 @@ void lb_gpu_get_boundary_forces(double *forces) { } struct lb_lbfluid_mass_of_particle { - __device__ float operator()(CUDA_particle_data particle) const { + __host__ __device__ float operator()(CUDA_particle_data particle) const { #ifdef MASS return particle.mass; #else