|
42 | 42 | #include<unordered_map> |
43 | 43 | #include<math.h> |
44 | 44 | #include<ff/node.hpp> |
45 | | -#include<ff/multinode.hpp> |
46 | 45 | #include<meta.hpp> |
47 | 46 | #include<window.hpp> |
48 | 47 | #include<meta_gpu.hpp> |
@@ -82,7 +81,7 @@ __global__ void ComputeBatch_Kernel(void *input_data, |
82 | 81 |
|
83 | 82 | // Win_Seq_GPU class |
84 | 83 | template<typename tuple_t, typename result_t, typename win_F_t, typename input_t> |
85 | | -class Win_Seq_GPU: public ff::ff_minode_t<input_t, result_t> |
| 84 | +class Win_Seq_GPU: public ff::ff_node_t<input_t, result_t> |
86 | 85 | { |
87 | 86 | private: |
88 | 87 | // type of the stream archive used by the Win_Seq_GPU node |
@@ -614,9 +613,9 @@ class Win_Seq_GPU: public ff::ff_minode_t<input_t, result_t> |
614 | 613 | { |
615 | 614 | eos_received++; |
616 | 615 | // check the number of received EOS messages |
617 | | - if ((eos_received != this->get_num_inchannels()) && (this->get_num_inchannels() != 0)) { // workaround due to FastFlow |
618 | | - return; |
619 | | - } |
| 616 | + //if ((eos_received != this->get_num_inchannels()) && (this->get_num_inchannels() != 0)) { // workaround due to FastFlow |
| 617 | + // return; |
| 618 | + //} |
620 | 619 | // emit results of the previously running kernel on the GPU |
621 | 620 | waitAndFlush(); |
622 | 621 | // allocate on the CPU the scratchpad_memory |
@@ -709,13 +708,13 @@ class Win_Seq_GPU: public ff::ff_minode_t<input_t, result_t> |
709 | 708 | // method to start the node execution asynchronously |
710 | 709 | int run(bool) override |
711 | 710 | { |
712 | | - return ff::ff_minode::run(); |
| 711 | + return ff::ff_node::run(); |
713 | 712 | } |
714 | 713 |
|
715 | 714 | // method to wait the node termination |
716 | 715 | int wait() override |
717 | 716 | { |
718 | | - return ff::ff_minode::wait(); |
| 717 | + return ff::ff_node::wait(); |
719 | 718 | } |
720 | 719 | }; |
721 | 720 |
|
|
0 commit comments