diff --git a/hipamd/src/hip_internal.hpp b/hipamd/src/hip_internal.hpp index 3ceb61d3a3..6fdded7ff5 100755 --- a/hipamd/src/hip_internal.hpp +++ b/hipamd/src/hip_internal.hpp @@ -348,7 +348,7 @@ extern int ihipGetDevice(); extern hipError_t ihipMalloc(void** ptr, size_t sizeBytes, unsigned int flags); extern amd::Memory* getMemoryObject(const void* ptr, size_t& offset); extern amd::Memory* getMemoryObjectWithOffset(const void* ptr, const size_t size); -extern hipError_t getStreamPerThread(hipStream_t& stream); +extern void getStreamPerThread(hipStream_t& stream); constexpr bool kOptionChangeable = true; constexpr bool kNewDevProg = false; diff --git a/hipamd/src/hip_stream.cpp b/hipamd/src/hip_stream.cpp index cbf3e27105..0c93cfc0e2 100755 --- a/hipamd/src/hip_stream.cpp +++ b/hipamd/src/hip_stream.cpp @@ -294,7 +294,7 @@ public: thread_local stream_per_thread streamPerThreadObj; // ================================================================================================ -hipError_t getStreamPerThread(hipStream_t& stream) { +void getStreamPerThread(hipStream_t& stream) { if (stream == hipStreamPerThread) { stream = streamPerThreadObj.get(); }