Commit 5e04cb27 authored by incardon's avatar incardon

Fixing non-gpu compilation

parent 2f254618
Pipeline #673 passed with stages
in 45 seconds
......@@ -171,6 +171,12 @@ public:
//! Constructor
CudaMemory():is_hm_sync(true),sz(0),dm(0),hm(0),ref_cnt(0) {};
//! Constructor
CudaMemory(size_t sz):is_hm_sync(true),sz(0),dm(0),hm(0),ref_cnt(0)
{
allocate(sz);
};
//! Destructor
~CudaMemory()
{
......@@ -191,6 +197,16 @@ public:
{
return false;
}
/*! \brief return the device memory
*
* \see equivalent to getDevicePointer()
*
*/
void * toKernel()
{
return getDevicePointer();
}
};
#endif
......
......@@ -283,7 +283,9 @@ BOOST_AUTO_TEST_CASE( use_bheap_memory )
BOOST_AUTO_TEST_CASE( use_bcuda_memory )
{
#ifdef CUDA_GPU
Btest<BMemory<CudaMemory>>();
#endif
}
BOOST_AUTO_TEST_CASE( swap_heap_memory )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment