-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for long running example model
- Loading branch information
Showing
3 changed files
with
35 additions
and
15 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ dependencies: | |
- pre-commit | ||
- pydot | ||
- snakeviz | ||
- memory_profiler | ||
|
||
# Documentation | ||
- sphinx | ||
|
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pytest | ||
from lcm.entry_point import get_lcm_function | ||
from lcm.example_models.example_models_long import PARAMS, PHELPS_DEATON | ||
|
||
SKIP_REASON = """The test is designed to run approximately 1 minute on a standard | ||
laptop, such that we can differentiate the performance of running LCM on a GPU versus | ||
on the CPU.""" | ||
|
||
|
||
@pytest.skip(reason=SKIP_REASON) | ||
def test_long(): | ||
solve_model, template = get_lcm_function(PHELPS_DEATON, targets="solve") | ||
solve_model(PARAMS) |