Skip to content
Snippets Groups Projects
Commit 5e04cb27 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing non-gpu compilation

parent 2f254618
No related branches found
No related tags found
No related merge requests found
Pipeline #673 passed
......@@ -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 )
......
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