|
static constexpr bool | on_GPU = true |
|
◆ Object_t
◆ ObjectOnGPU_Base() [1/3]
template<class T >
template<class... Args>
Default constructor for ObjectOnGPU_Base object.
- Template Parameters
-
- Parameters
-
56 {
57 debug_constructor_printf((Default));
59
60 constructObject_kernel<<<1, 1>>>(
m_ptrptr, args...);
64 }
T * m_ptr
Definition ObjectOnGPU.cuh:42
T ** m_ptrptr
Definition ObjectOnGPU.cuh:43
T Object_t
Definition ObjectOnGPU.cuh:44
cuCHECK(cudaFuncGetAttributes(&attr, MatrixElementsInSector))
◆ ObjectOnGPU_Base() [2/3]
Default constructor.
Causes the following error at the function construtSubSpaceFromTotalSpaceByMove
========= Invalid global read of size 8 bytes
========= at 0x1770 in void construtSubSpaceFromTotalSpaceByMove<ManyBodySpinSpace, Complex_t<float>>(SubSpace<T1, T2> *, T1 *)
Copy constructor for ObjectOnGPU_Base object (yet to be implmented)
- Parameters
-
◆ ObjectOnGPU_Base() [3/3]
Move constructor for ObjectOnGPU_Base object.
- Parameters
-
85 {
86 debug_constructor_printf((Move));
89
91 other.
m_ptr =
nullptr;
92 }
◆ ~ObjectOnGPU_Base()
Destructor.
97 {
98 debug_destructor_printf("");
101 destructObject_kernel<<<1, 1>>>(
m_ptrptr);
102 cuCHECK(cudaPeekAtLastError());
103 cuCHECK(cudaDeviceSynchronize());
104 }
107 }
◆ const_ptr()
◆ operator Object_t *()
◆ operator=() [1/2]
Move assignment operator.
- Parameters
-
- Returns
- ObjectOnGPU_Base&
123 {
124 debug_printf("%s:\n\tMove assignment operator.\n", __PRETTY_FUNCTION__);
125 if(this == &other) {
126 debug_printf("\tthis(%p) == &other(%p)\n", this, &other);
127 return *this;
128 }
130 destructObject_kernel<<<1, 1>>>(
m_ptrptr);
131 cuCHECK(cudaPeekAtLastError());
132 }
136
137 other.
m_ptr =
nullptr;
139 return *this;
140 }
◆ operator=() [2/2]
Copy assignment operator (yet to be implmented)
- Parameters
-
◆ ptr()
◆ m_ptr
◆ m_ptrptr
◆ on_GPU
The documentation for this class was generated from the following file: