diff options
author | Matthew Bentham <Matthew.Bentham@arm.com> | 2023-07-19 15:01:00 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2023-07-25 14:52:40 +0000 |
commit | 0a59e69fd922b02d9e3b5b043ee7f891061df7be (patch) | |
tree | f8da537735e9a2bf00f8dc495a35e94c08776fd1 /src/dynamic_fusion/sketch/gpu/ckw_driver/GpuCkwVariableTable.cpp | |
parent | 0250fa6c2a0bdbf88c1264f32ad0a1a4e3fec3f3 (diff) | |
download | ComputeLibrary-0a59e69fd922b02d9e3b5b043ee7f891061df7be.tar.gz |
Fix problem with exception handling in CPPScheduler
If an exception was thrown in the main thread, the child threads
were not being synchronised, leading to undefined behaviour (and
probably the program crashing instead of correctly propagating the
exception).
Add support to the build system for enabling ThreadSanitizer.
This needs a build system option rather than simply passing
extra_cxx/link_flags because the sanitizer options are
incompatible with -Wl,-undefined,error.
Add a unit test for throwing an exception within a CPPScheduler
workload.
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Change-Id: I7638272a5d43a24a861f3e6d63f3ee7b099483b5
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/538048
Comments-Addressed: bsgcomp <bsgcomp@arm.com>
Tested-by: bsgcomp <bsgcomp@arm.com>
Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9957
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/dynamic_fusion/sketch/gpu/ckw_driver/GpuCkwVariableTable.cpp')
0 files changed, 0 insertions, 0 deletions