Skip to content

Commit

Permalink
Only keep one copy of asan_libdevice.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaomaosu committed Oct 18, 2024
1 parent 24435c8 commit 11b68fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/loader/layers/sanitizer/asan_libdevice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

#include <cinttypes>

#if !defined(__SPIR__) && !defined(__SPIRV__)
namespace ur_sanitizer_layer {
#endif // !__SPIR__ && !__SPIRV__

enum class DeviceSanitizerErrorType : int32_t {
UNKNOWN,
Expand Down Expand Up @@ -161,4 +163,6 @@ inline const char *ToString(DeviceSanitizerErrorType ErrorType) {
}
}

#if !defined(__SPIR__) && !defined(__SPIRV__)
} // namespace ur_sanitizer_layer
#endif // !__SPIR__ && !__SPIRV__

0 comments on commit 11b68fa

Please sign in to comment.