Correct device pointer datatype in HIP UCL_Const

This commit is contained in:
Richard Berger 2021-06-02 15:46:57 -04:00
parent 62423b0c75
commit 8ea9179a00
No known key found for this signature in database
GPG Key ID: A9E83994E0BA0CAB
1 changed files with 2 additions and 2 deletions

View File

@ -128,12 +128,12 @@ class UCL_Const {
_cq));
}
/// Get device ptr associated with object
inline const void* begin() const { return &_global; }
inline const hipDeviceptr_t * begin() const { return &_global; }
inline void clear() {}
private:
hipStream_t _cq;
void* _global;
hipDeviceptr_t _global;
size_t _global_bytes;
friend class UCL_Kernel;
};