Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Versioning](http://semver.org/spec/v2.0.0.html).
### Fixed

- Host-initialized buffers will not read from user-provided memory after the last reference to the buffer has been dropped (#283)
- Fix a build issue with (rare) configurations which enable both Tracy and OOB-checks (#331)

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion src/live_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ void executor_impl::retire_async_instruction(const instruction_id iid, async_ins

#if CELERITY_ACCESSOR_BOUNDARY_CHECK
if(async.oob_info != nullptr) {
CELERITY_DETAIL_TRACY_ZONE_SCOPED_V("executor::oob_check", Red, "I{} bounds check", iid);
CELERITY_DETAIL_TRACY_ZONE_SCOPED_V("executor::oob_check", executor_oob_check, "I{} bounds check", iid);
const auto& oob_info = *async.oob_info;
for(size_t i = 0; i < oob_info.accessors.size(); ++i) {
if(const auto oob_box = oob_info.illegal_access_bounding_boxes[i].into_box(); !oob_box.empty()) {
Expand Down
10 changes: 8 additions & 2 deletions test/test_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ namespace celerity::test_utils_detail {

const char* const expected_runtime_init_warnings_regex = "Celerity has detected that only .* logical cores are available to this process.*|"
"Celerity detected more than one node \\(MPI rank\\) on this host, which is not recommended.*|"
"Instrumentation for profiling with Tracy is enabled\\. Performance may be negatively impacted\\.|"
"\\[executor\\] no progress for .* seconds, potentially stuck.*";
"Instrumentation for profiling with Tracy is enabled\\. Performance may be negatively impacted\\.|";

const char* const expected_device_enumeration_warnings_regex = "Found fewer devices .* than local nodes .*, multiple nodes will use the same device.*";

Expand All @@ -247,6 +246,8 @@ const char* const expected_backend_fallback_warnings_regex =
const char* const expected_dry_run_executor_warnings_regex = "Encountered a \"fence\" command while \"CELERITY_DRY_RUN_NODES\" is set. The result of this "
"operation will not match the expected output of an actual run.";

const char* const expected_executor_progress_warnings_regex = "\\[executor\\] no progress for .* s, might be stuck.*";

} // namespace celerity::test_utils_detail

namespace celerity::test_utils {
Expand Down Expand Up @@ -281,6 +282,11 @@ runtime_fixture::runtime_fixture() {
allow_higher_level_log_messages(spdlog::level::warn, test_utils_detail::expected_runtime_init_warnings_regex);
allow_higher_level_log_messages(spdlog::level::warn, test_utils_detail::expected_device_enumeration_warnings_regex);
allow_higher_level_log_messages(spdlog::level::warn, test_utils_detail::expected_backend_fallback_warnings_regex);

// in debug builds, allow executor "stuck" warnings to avoid spurious test failures due to slow execution
#if CELERITY_DETAIL_ENABLE_DEBUG
allow_higher_level_log_messages(spdlog::level::warn, test_utils_detail::expected_executor_progress_warnings_regex);
#endif
}

runtime_fixture::~runtime_fixture() {
Expand Down