Mentions légales du service

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

New ctor Vect<FPP,GPU2>(Vect<FPP,Cpu>&) (copy from CPU vector).

parent 6c14bf7e
Branches
Tags
No related merge requests found
......@@ -20,6 +20,13 @@ namespace Faust
{
}
template<>
Vect<FSFG,GPU2>::Vect(const Vect<FSFG, Cpu>& vec,
const int32_t dev_id/*=-1*/,
const void* stream/*=nullptr*/): Vect(vec.size(), vec.getData(), /*no_alloc*/ false, dev_id, stream)
{
}
template<>
faust_unsigned_int Vect<FSFG,GPU2>::size() const
{
......
......@@ -25,6 +25,10 @@ namespace Faust
const int32_t dev_id=-1,
const void* stream=nullptr);
Vect(const Vect<FPP, Cpu>& vec,
const int32_t dev_id=-1,
const void* stream=nullptr);
faust_unsigned_int size() const;
void resize(const faust_unsigned_int size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment