Skip to content
Snippets Groups Projects
Commit 9c66467c authored by Dan Vonk's avatar Dan Vonk Committed by Daniel Vonk
Browse files

Remove redundant code from AbstractXPUScatterDev

parent 0f470b3e
No related branches found
No related tags found
2 merge requests!19Merge develop into main,!17Add CUDA backend
......@@ -13,7 +13,6 @@ derived.
#include <boost/lexical_cast.hpp>
#include <fftw3.h>
#include <taskflow/core/executor.hpp>
#include "abstract_xpu_scatter_device.hpp"
......@@ -41,7 +40,6 @@ AbstractXPUScatterDevice::AbstractXPUScatterDevice(
, atfinal_(nullptr)
, afinal_(0)
, a2final_(0)
, flow_("abstract-scatter-flow")
{
// TODO: check ownership semantics and see if shared_ptr really needed
p_hdf5writer_ =
......@@ -162,15 +160,6 @@ void AbstractXPUScatterDevice::runner()
Timer &timer = timer_[boost::this_thread::get_id()];
// Create executor, spawn threads etc.
// tf::Executor executor;
// auto f = create_flow();
// tf::Future<void> fu = executor.run(f);
// fu.wait();
// TODO: implement taskflow
size_t samplingfactor = Params::Inst()->limits.services.monitor.sampling;
if (samplingfactor == 0) {
samplingfactor = allcomm_.size() / 20;
......
......@@ -37,8 +37,6 @@ common functionality, e.g. basic control flows.
class AbstractXPUScatterDevice : public IScatterDevice
{
protected:
tf::Taskflow flow_;
coor_t *p_coordinates;
boost::mpi::communicator allcomm_;
......@@ -54,8 +52,8 @@ protected:
// number of nodes, number of frames/time-steps , number of atoms
size_t NN, NF, NA;
fftw_complex *atfinal_ = nullptr;
// temporary storage for reduce & write phase
fftw_complex *atfinal_ = nullptr;
std::complex<double> afinal_;
std::complex<double> a2final_;
......@@ -70,11 +68,6 @@ protected:
void runner() override;
virtual tf::Taskflow create_flow()
{
return {};
}
virtual void print_pre_stage_info()
{
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment