Skip to content
Snippets Groups Projects
Commit 58a60102 authored by Abhinav Singh's avatar Abhinav Singh
Browse files

ODEINT GPU UPDATE

parent 637b8aab
No related branches found
No related tags found
No related merge requests found
Pipeline #5304 failed
......@@ -534,6 +534,13 @@ namespace openfpm
return getGPUIterator(n_thr);
}
//Stub for some expression
void init() const {}
__host__ __device__ auto value(unsigned int p) -> decltype(base.template get<0>(grid_key_dx<1>(0)))
{
return get<0>(p);
}
/*! \brief Get an iterator for the GPU
*
*
......@@ -546,6 +553,7 @@ namespace openfpm
return base.getGPUIterator(start,stop_,n_thr);
}
/*! \brief operator= this operator absorb the pointers, consider that this object wrap device pointers
*
* \param object to copy
......@@ -559,6 +567,16 @@ namespace openfpm
return *this;
}
__device__ __host__ vector_gpu_ker<T,layout_base> & getVector()
{
return *this;
}
__device__ __host__ const vector_gpu_ker<T,layout_base> & getVector() const
{
return *this;
}
/*! \brief Return the base
*
* \return the base
......@@ -742,6 +760,16 @@ namespace openfpm
return vref.getGPUItertatorTo(stop,n_thr);
}
vector_gpu_ker<T,layout_base> & getVector()
{
return *this;
}
const vector_gpu_ker<T,layout_base> & getVector() const
{
return *this;
}
__host__ vector_gpu_ker_ref<T,layout_base> & operator=(const vector_gpu_ker<T,layout_base> & v)
{
vref.operator=(v);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment