9 #include <hip/hip_runtime.h>
12 #include <cuda_runtime.h>
21 this->_data = allocate_on_target<T>(this->_target, this->_size);
22 this->_count =
new std::size_t(0);
28 if (*this->_count == 0) {
29 deallocate_on_target<T>(this->_target, this->_data);
36 #if defined HAS_ROCM_MODEL || HAS_CUDA_MODEL
45 this->_data = other._data;
46 this->_size = other._size;
47 this->_target = other._target;
48 this->_count = other._count;
65 std::size_t *_count =
nullptr;
LimpetData< T > & operator=(const LimpetData< T > &other)
LimpetData(Target target, std::size_t n)
Target
enum that represents different targets to run ionic models on.
@ UNKNOWN
special value to handle unknown targets
Defines valid targets for an ionic model to run on and an allocator for allocating memory on a specif...