Correct device pointer datatype in HIP UCL_Const
This commit is contained in:
@ -128,12 +128,12 @@ class UCL_Const {
|
|||||||
_cq));
|
_cq));
|
||||||
}
|
}
|
||||||
/// Get device ptr associated with object
|
/// Get device ptr associated with object
|
||||||
inline const void* begin() const { return &_global; }
|
inline const hipDeviceptr_t * begin() const { return &_global; }
|
||||||
inline void clear() {}
|
inline void clear() {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
hipStream_t _cq;
|
hipStream_t _cq;
|
||||||
void* _global;
|
hipDeviceptr_t _global;
|
||||||
size_t _global_bytes;
|
size_t _global_bytes;
|
||||||
friend class UCL_Kernel;
|
friend class UCL_Kernel;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user