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

misc: Switch off develop-mode #2280

Merged
merged 3 commits into from
Dec 13, 2023
Merged

misc: Switch off develop-mode #2280

merged 3 commits into from
Dec 13, 2023

Conversation

FabioLuporini
Copy link
Contributor

This was a legacy thing. Pointless.

In fact, potentially harmful for data transfer performance since aligned based addresses will result in higher performance with most device backends

@FabioLuporini FabioLuporini added the API api (symbolics, types, ...) label Dec 11, 2023
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (b95947e) 86.82% compared to head (afc0612) 86.82%.
Report is 3 commits behind head on master.

Files Patch % Lines
devito/data/allocators.py 60.00% 1 Missing and 1 partial ⚠️
tests/test_data.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2280      +/-   ##
==========================================
- Coverage   86.82%   86.82%   -0.01%     
==========================================
  Files         229      229              
  Lines       42441    42453      +12     
  Branches     7868     7876       +8     
==========================================
+ Hits        36851    36859       +8     
- Misses       4931     4941      +10     
+ Partials      659      653       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

configuration.add('develop-mode', True, [False, True])
# - The ALLOC_GUARD data allocator is used. This will trigger segfaults as soon
# as an out-of-bounds memory access is performed
# - Some autoi-tuning optimizations are disabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo 'autoi'

@@ -7,7 +7,7 @@
from devito.core.autotuning import options # noqa


@switchconfig(log_level='DEBUG')
@switchconfig(log_level='DEBUG', develop_mode=True)
Copy link
Contributor

@ggorman ggorman Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs to be documented that setting log_level='DEBUG' also turns on develop_mode.

Also, as ALLOC_GUARD can cause incorrect behavior when data streaming with an accelerator, shouldn't there be an additional check to ensure it's not enabled in that case?

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@mloubout mloubout merged commit ceb6d8c into master Dec 13, 2023
31 checks passed
@mloubout mloubout deleted the develop-mode-off branch December 13, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API api (symbolics, types, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants