2
0

SWDEV-292547 - Fix Windows build

This addresses the warning `not all control paths return a value`.

Change-Id: Ibbb5eda9758dca5cc94c8efba9bbc6910362d6ba
Este cometimento está contido em:
Vladislav Sytchenko
2021-07-27 10:52:28 -04:00
ascendente a852370a25
cometimento a89d34d0c9
2 ficheiros modificados com 2 adições e 2 eliminações
+1 -1
Ver ficheiro
@@ -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;
+1 -1
Ver ficheiro
@@ -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();
}