File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,16 @@ class ArrayManager
198
198
*/
199
199
void resetTouch (PointerRecord* pointer_record);
200
200
201
+ /* !
202
+ * \brief Find the PointerRecord corresponding to the raw pointer.
203
+ *
204
+ * \param pointer Raw pointer to find the PointerRecord for.
205
+ *
206
+ * \return PointerRecord containing the raw pointer, or an empty
207
+ * PointerRecord if none found.
208
+ */
209
+ PointerRecord* getPointerRecord (void * pointer);
210
+
201
211
protected:
202
212
203
213
/* !
@@ -251,16 +261,6 @@ class ArrayManager
251
261
*/
252
262
void move (PointerRecord* record, ExecutionSpace space);
253
263
254
- /* !
255
- * \brief Find the PointerRecord corresponding to the raw pointer.
256
- *
257
- * \param pointer Raw pointer to find the PointerRecord for.
258
- *
259
- * \return PointerRecord containing the raw pointer, or an empty
260
- * PointerRecord if none found.
261
- */
262
- PointerRecord* getPointerRecord (void * pointer);
263
-
264
264
/* !
265
265
* Pointer to singleton instance.
266
266
*/
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ CHAI_HOST_DEVICE ManagedArray<T>::ManagedArray(ManagedArray const& other):
119
119
*/
120
120
if (!std::is_const<T>::value) {
121
121
CHAI_LOG (" ManagedArray" , " T is non-const, registering touch of pointer" << m_active_pointer);
122
- // T_non_const* non_const_pointer = const_cast<T_non_const*>(m_active_pointer);
123
122
m_resource_manager->registerTouch (m_pointer_record);
124
123
}
125
124
#endif
You can’t perform that action at this time.
0 commit comments