Mentions légales du service

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

Update mexHierarchical2020_gpu2.cpp.in to support GPU float in matfaust 2020 hierarchical.

parent 7c21e3b2
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,8 @@ void convert_cons_vec_cpu2gpu(vector<const Faust::ConstraintGeneric*>& cpu_cons, ...@@ -68,8 +68,8 @@ void convert_cons_vec_cpu2gpu(vector<const Faust::ConstraintGeneric*>& cpu_cons,
} }
else if(cons->is_constraint_parameter_real<SCALAR,GPU2>()) else if(cons->is_constraint_parameter_real<SCALAR,GPU2>())
{ {
auto c = dynamic_cast<const Faust::ConstraintFPP<SCALAR,Cpu>*>(cons); auto c = dynamic_cast<const Faust::ConstraintFPP<SCALAR,Cpu, FPP2>*>(cons);
gpu_cons.push_back(new Faust::ConstraintFPP<SCALAR, GPU2>(c->get_constraint_type(), c->get_parameter(), c->get_rows(), c->get_cols())); gpu_cons.push_back(new Faust::ConstraintFPP<SCALAR, GPU2, FPP2>(c->get_constraint_type(), c->get_parameter(), c->get_rows(), c->get_cols()));
} }
else if(cons->is_constraint_parameter_mat<SCALAR,GPU2>()) else if(cons->is_constraint_parameter_mat<SCALAR,GPU2>())
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment