-
Notifications
You must be signed in to change notification settings - Fork 231
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
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
from devito.core.autotuning import options # noqa | ||
|
||
|
||
@switchconfig(log_level='DEBUG') | ||
@switchconfig(log_level='DEBUG', develop_mode=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||
@pytest.mark.parametrize("shape,expected", [ | ||
((30, 30), 13), | ||
((30, 30, 30), 17) | ||
|
@@ -113,6 +113,7 @@ def test_blocking_only(): | |
assert 'nthreads' not in op._state['autotuning'][0]['tuned'] | ||
|
||
|
||
@switchconfig(develop_mode=True) | ||
def test_mixed_blocking_nthreads(): | ||
grid = Grid(shape=(96, 96, 96)) | ||
f = TimeFunction(name='f', grid=grid) | ||
|
@@ -126,6 +127,7 @@ def test_mixed_blocking_nthreads(): | |
assert 'nthreads' in op._state['autotuning'][0]['tuned'] | ||
|
||
|
||
@switchconfig(develop_mode=True) | ||
@pytest.mark.parametrize('openmp, expected', [ | ||
(False, 2), (True, 3) | ||
]) | ||
|
@@ -145,6 +147,7 @@ def test_mixed_blocking_w_skewing(openmp, expected): | |
assert 'nthreads' not in op._state['autotuning'][0]['tuned'] | ||
|
||
|
||
@switchconfig(develop_mode=True) | ||
@pytest.mark.parametrize('opt', ['advanced', ('blocking', {'skewing': True})]) | ||
def test_tti_aggressive(opt): | ||
from test_dse import TestTTI | ||
|
@@ -223,6 +226,7 @@ def test_at_w_mpi(): | |
assert np.all(f.data_ro_domain[1, 7] == 5) | ||
|
||
|
||
@switchconfig(develop_mode=True) | ||
def test_multiple_blocking(): | ||
""" | ||
Test that if there are more than one blocked Iteration nests, then | ||
|
@@ -287,7 +291,7 @@ def test_hierarchical_blocking(opt_options): | |
assert len(op._state['autotuning'][1]['tuned']) == 4 | ||
|
||
|
||
@switchconfig(platform='cpu64-dummy') # To fix the core count | ||
@switchconfig(platform='cpu64-dummy', develop_mode=True) # `cpu64-dummy `to fix ncores | ||
@pytest.mark.parametrize('opt_options', [{'skewing': False}, {'skewing': True}]) | ||
def test_multiple_threads(opt_options): | ||
""" | ||
|
@@ -307,7 +311,7 @@ def test_multiple_threads(opt_options): | |
|
||
|
||
@skipif('cpu64-arm') | ||
@switchconfig(platform='knl7210') # To trigger nested parallelism | ||
@switchconfig(platform='knl7210', develop_mode=True) # `knl7210` for nested parallelsim | ||
def test_nested_nthreads(): | ||
grid = Grid(shape=(96, 96, 96)) | ||
f = TimeFunction(name='f', grid=grid) | ||
|
@@ -323,6 +327,7 @@ def test_nested_nthreads(): | |
assert 'nthreads_nested' not in op._state['autotuning'][0]['tuned'] | ||
|
||
|
||
@switchconfig(develop_mode=True) | ||
def test_few_timesteps(): | ||
grid = Grid(shape=(16, 16, 16)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo 'autoi'