Skip to content
Merged
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
5 changes: 5 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 DeviceType : uint32_t { UNKNOWN = 0, CPU, GPU_PVC, GPU_DG2 };

Expand Down Expand Up @@ -87,6 +89,7 @@ struct LaunchInfo {
DeviceType DeviceTy = DeviceType::UNKNOWN;
uint32_t Debug = 0;

int ReportFlag = 0;
DeviceSanitizerReport SanitizerReport[ASAN_MAX_NUM_REPORTS];
};

Expand Down Expand Up @@ -161,4 +164,6 @@ inline const char *ToString(DeviceSanitizerErrorType ErrorType) {
}
}

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