Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DeviceSanitizer] Add a report flag to LaunchInfo #2069

Merged
merged 4 commits into from
Oct 28, 2024
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;
pbalcer marked this conversation as resolved.
Show resolved Hide resolved
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