Commit 7356b5f1 authored by mjg226's avatar mjg226
Browse files

Removed the last few static variables from openCL square implementation, note:...

Removed the last few static variables from openCL square implementation, note: this makes the cpp files redundent and should be removed later.
parent 8698635a
......@@ -39,9 +39,9 @@ namespace CA {
/// ----- Static variables ----- ///
template<>
std::vector<Real> CellBuff<Real>::mem_io = std::vector<Real>();
//template<>
//std::vector<Real> CellBuff<Real>::mem_io = std::vector<Real>();
template<>
std::vector<State> CellBuff<State>::mem_io = std::vector<State>();
//template<>
//std::vector<State> CellBuff<State>::mem_io = std::vector<State>();
}
......@@ -356,7 +356,7 @@ namespace CA {
cl::Kernel _kernel_copy1DBuffToPLCellBuffState;
//! Buffer used for direct I/O.
static std::vector<T> mem_io;
std::vector<T> mem_io;
};
......@@ -380,7 +380,9 @@ namespace CA {
_kernel_copyPLCellBuffRealTo1DBuff(),
_kernel_copyPLCellBuffStateTo1DBuff(),
_kernel_copy1DBuffToPLCellBuffReal(),
_kernel_copy1DBuffToPLCellBuffState()
_kernel_copy1DBuffToPLCellBuffState(),
mem_io()
{
// Create the buffer in the device memory of GRID context. The x
// size of the buffer is the stride in order to keep the memory
......
......@@ -39,9 +39,9 @@ namespace CA {
/// ----- Static variables ----- ///
template<>
std::vector<Real> EdgeBuff<Real>::mem_io = std::vector<Real>();
//template<>
//std::vector<Real> EdgeBuff<Real>::mem_io = std::vector<Real>();
template<>
std::vector<State> EdgeBuff<State>::mem_io = std::vector<State>();
//template<>
//std::vector<State> EdgeBuff<State>::mem_io = std::vector<State>();
}
......@@ -260,7 +260,7 @@ namespace CA {
cl::Kernel _kernel_setValueEdgeBuffState;
//! Buffer used for direct I/O.
static std::vector<T> mem_io;
std::vector<T> mem_io;
};
......@@ -278,7 +278,8 @@ namespace CA {
_buff(),
_event(),
_kernel_setValueEdgeBuffReal(),
_kernel_setValueEdgeBuffState()
_kernel_setValueEdgeBuffState(),
mem_io()
{
// Create the buffer in the device memory of GRID context. The
// buffer is the sum of the two sub-buffers. The x size of the
......
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