Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/hipdnn/backend/src/HipdnnBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ HIPDNN_BACKEND_EXPORT void hipdnnGetLastErrorString(char* message, size_t maxSiz
LOG_API_ENTRY("message_ptr={:p}, maxSize={}", static_cast<void*>(message), maxSize);
// Ignore status since API doesn't return it.
// We still want to catch and log if the user provides incorrect parameters.
auto _ = hipdnn_backend::tryCatch([&, apiName = __func__] {
(void)hipdnn_backend::tryCatch([&, apiName = __func__] {
throwIfNull(message);

if(maxSize == 0)
Expand All @@ -431,7 +431,7 @@ HIPDNN_BACKEND_EXPORT void hipdnnPeekLastErrorString_ext(char* message, size_t m
LOG_API_ENTRY("message_ptr={:p}, maxSize={}", static_cast<void*>(message), maxSize);
// Ignore status since API doesn't return it.
// We still want to catch and log if the user provides incorrect parameters.
auto _ = hipdnn_backend::tryCatch([&, apiName = __func__] {
(void)hipdnn_backend::tryCatch([&, apiName = __func__] {
throwIfNull(message);

if(maxSize == 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ inline void closeLibrary(SharedLibraryHandle handle)

inline void* getSymbol(SharedLibraryHandle handle, const char* symbolName)
{
auto _ = dlerror();
(void)dlerror();
return dlsym(handle, symbolName);
}

inline std::filesystem::path getLoadedLibraryDirectoryForSymbol(const char* symbolName)
{
auto _ = dlerror();
(void)dlerror();
void* symbol = dlsym(RTLD_DEFAULT, symbolName);
const char* error = dlerror();
if(error != nullptr)
Expand Down
Loading