Mentions légales du service

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

Add a default ctor to MatBSR<FPP, GPU2> and implement set_gpu_mat_ptr.

Update to gpu_mod@3d0a4dc6
parent a4829ee2
Branches
Tags
No related merge requests found
Subproject commit d7cb67c8f8aa5429153b744d7d4eb2cb47a704aa
Subproject commit 3d0a4dc64dc7158e4cf95f6b85d3829e5fc3a678
......@@ -12,7 +12,7 @@ namespace Faust
const int32_t* browptr,
const int32_t* bcolinds,
const int32_t dev_id/*=-1*/,
const void* stream/*=nullptr*/)
const void* stream/*=nullptr*/) : MatBSR<@FAUST_SCALAR_FOR_GM@, GPU2>()
{
auto bsr_funcs = GPUModHandler::get_singleton()->bsr_funcs((@FAUST_SCALAR_FOR_GM@)(0));
auto gp_funcs = GPUModHandler::get_singleton()->gp_funcs();
......
......@@ -43,6 +43,8 @@ namespace Faust
const int32_t dev_id=-1,
const void* stream=nullptr);
MatBSR();
/*********** MatGeneric member functions **************/
void setZeros();
size_t getNBytes() const;
......
......@@ -19,6 +19,11 @@ namespace Faust
}
template<typename FPP>
MatBSR<FPP, GPU2>::MatBSR() : gpu_mat(nullptr)
{
}
template<typename FPP>
void MatBSR<FPP, GPU2>::setZeros()
{
......@@ -129,8 +134,8 @@ namespace Faust
}
template<typename FPP>
void MatBSR<FPP, GPU2>::set_gpu_mat_ptr(void*)
void MatBSR<FPP, GPU2>::set_gpu_mat_ptr(void* gpu_mat)
{
//TODO: implement (maybe by moving into .cpp.in
this->gpu_mat = gpu_mat;
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment