Skip to content

Commit d6cdccd

Browse files
authored
[DeviceSanitizer] Add a report flag to LaunchInfo (#2069)
1 parent 08cdf07 commit d6cdccd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/loader/layers/sanitizer/asan_libdevice.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
#include <cinttypes>
1616

17+
#if !defined(__SPIR__) && !defined(__SPIRV__)
1718
namespace ur_sanitizer_layer {
19+
#endif // !__SPIR__ && !__SPIRV__
1820

1921
enum class DeviceType : uint32_t { UNKNOWN = 0, CPU, GPU_PVC, GPU_DG2 };
2022

@@ -87,6 +89,7 @@ struct LaunchInfo {
8789
DeviceType DeviceTy = DeviceType::UNKNOWN;
8890
uint32_t Debug = 0;
8991

92+
int ReportFlag = 0;
9093
DeviceSanitizerReport SanitizerReport[ASAN_MAX_NUM_REPORTS];
9194
};
9295

@@ -161,4 +164,6 @@ inline const char *ToString(DeviceSanitizerErrorType ErrorType) {
161164
}
162165
}
163166

167+
#if !defined(__SPIR__) && !defined(__SPIRV__)
164168
} // namespace ur_sanitizer_layer
169+
#endif // !__SPIR__ && !__SPIRV__

0 commit comments

Comments
 (0)