Skip to content

Commit e42ae47

Browse files
committed
cuda
1 parent 28eab06 commit e42ae47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/electrostatics/p3m.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@
3030

3131
#include "electrostatics/coulomb.hpp"
3232
#include "electrostatics/elc.hpp"
33+
34+
#ifdef CUDA
3335
#include "electrostatics/p3m_gpu_cuda.cuh"
3436
#include "electrostatics/p3m_gpu_error.hpp"
37+
#endif // CUDA
3538

3639
#include "fft/fft.hpp"
3740
#include "p3m/TuningAlgorithm.hpp"
@@ -851,6 +854,7 @@ void CoulombP3M::scaleby_box_l() {
851854
calc_influence_function_energy();
852855
}
853856

857+
#ifdef CUDA
854858
template <typename FloatType, Arch Architecture>
855859
void CoulombP3MImpl<FloatType, Architecture>::add_long_range_forces_gpu(
856860
ParticleRange const &particles) {
@@ -898,6 +902,7 @@ void CoulombP3MImpl<FloatType, Architecture>::request_gpu() const {
898902
gpu_particle_data.enable_property(GpuParticleData::prop::pos);
899903
}
900904
}
905+
#endif // CUDA
901906

902907
template struct CoulombP3MImpl<float, Arch::CPU>;
903908
template struct CoulombP3MImpl<float, Arch::GPU>;

0 commit comments

Comments
 (0)