Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Nov 19, 2024
1 parent a580599 commit e880fa4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions hic/src/hic/hic_library_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
#pragma once

#include "hic/hic_config.h"
#include "hic/hic_namespace_macro.h"

#if HIC_BACKEND_CUDA
Expand Down
7 changes: 4 additions & 3 deletions hic/src/hic/hicsparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
*/
#pragma once

#include <stdexcept>
#include <sstream>

#include "hic/hic_config.h"
#include "hic/hic_namespace_macro.h"
#include "hic/hic_library_types.h"

Expand Down Expand Up @@ -107,9 +111,6 @@ HIC_VALUE(SPARSE_OPERATION_CONJUGATE_TRANSPOSE)
#endif

inline void hicsparse_assert(hicsparseStatus_t status, const char* const func, const char* const file, const int line) {
// Ignore errors when HIP/CUDA runtime is unloaded or deinitialized.
// This happens when calling HIP/CUDA after main has ended, e.g. in teardown of static variables calling `hicFree`
// --> ignore hicErrorDeinitialized (a.k.a. cudaErrorCudartUnloading / hipErrorDeinitialized)
if (status != HICSPARSE_STATUS_SUCCESS) {
std::ostringstream msg;
msg << "HIC Runtime Error [code="<<status<<"] at: " << file << " + " << line << " : " << func << "\n";
Expand Down
1 change: 1 addition & 0 deletions hic/tests/test_hicsparse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
#include <iostream>
#include <functional>
#include <tuple>
#include <vector>
#include <utility>
#include <cassert>
Expand Down

0 comments on commit e880fa4

Please sign in to comment.