Mentions légales du service

Skip to content
Snippets Groups Projects
Commit cd82243c authored by hhakim's avatar hhakim
Browse files

Minor change about pack_factors in TransformHelper (GPU2 and Cpu) -- calling parent method.

parent ebd25f2b
No related branches found
No related tags found
No related merge requests found
...@@ -212,6 +212,7 @@ namespace Faust ...@@ -212,6 +212,7 @@ namespace Faust
#endif #endif
void pack_factors(faust_unsigned_int start_id, faust_unsigned_int end_id); void pack_factors(faust_unsigned_int start_id, faust_unsigned_int end_id);
void pack_factors();
/** for testing purpose only (memory leaks enabled) */ /** for testing purpose only (memory leaks enabled) */
void disable_dtor() { this->transform->disable_dtor(); } void disable_dtor() { this->transform->disable_dtor(); }
......
...@@ -1818,6 +1818,11 @@ namespace Faust { ...@@ -1818,6 +1818,11 @@ namespace Faust {
this->transform->insert(start_id, packed_fac); this->transform->insert(start_id, packed_fac);
} }
template <typename FPP>
void TransformHelper<FPP,Cpu>::pack_factors()
{
TransformHelperGen<FPP,Cpu>::pack_factors();
}
template<typename FPP> bool TransformHelper<FPP,Cpu>::seed_init = false; template<typename FPP> bool TransformHelper<FPP,Cpu>::seed_init = false;
......
...@@ -40,6 +40,7 @@ namespace Faust ...@@ -40,6 +40,7 @@ namespace Faust
bool is_fact_dense(int id) const; bool is_fact_dense(int id) const;
MatGeneric<FPP,GPU2>* get_gen_fact_nonconst(const faust_unsigned_int id) const; MatGeneric<FPP,GPU2>* get_gen_fact_nonconst(const faust_unsigned_int id) const;
void pack_factors(faust_unsigned_int start_id, faust_unsigned_int end_id); void pack_factors(faust_unsigned_int start_id, faust_unsigned_int end_id);
void pack_factors();
void update(const MatGeneric<FPP, GPU2>& M, const faust_unsigned_int id); void update(const MatGeneric<FPP, GPU2>& M, const faust_unsigned_int id);
typename Transform<FPP,GPU2>::iterator begin() const; typename Transform<FPP,GPU2>::iterator begin() const;
typename Transform<FPP,GPU2>::iterator end() const; typename Transform<FPP,GPU2>::iterator end() const;
......
...@@ -152,6 +152,12 @@ namespace Faust ...@@ -152,6 +152,12 @@ namespace Faust
return this->transform->pop_back(); return this->transform->pop_back();
} }
template<typename FPP>
void Faust::TransformHelper<FPP,GPU2>::pack_factors()
{
TransformHelperGen<FPP,Cpu>::pack_factors();
}
template<typename FPP> template<typename FPP>
void Faust::TransformHelper<FPP,GPU2>::pack_factors(faust_unsigned_int start_id, faust_unsigned_int end_id) void Faust::TransformHelper<FPP,GPU2>::pack_factors(faust_unsigned_int start_id, faust_unsigned_int end_id)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment