-
Notifications
You must be signed in to change notification settings - Fork 344
Add pyfftw sdp #1132
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
base: main
Are you sure you want to change the base?
Add pyfftw sdp #1132
Changes from all commits
87dfcdb
ae90507
6051ab4
0a3427e
58d99e2
0e82fbf
db09a61
73d8229
61d8351
96b68b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -154,27 +154,58 @@ gen_ray_coveragerc() | |
| # Generate a .coveragerc_override file that excludes Ray functions and tests | ||
| gen_coveragerc_boilerplate | ||
| echo " def .*_ray_*" >> .coveragerc_override | ||
| echo " def ,*_ray\(*" >> .coveragerc_override | ||
| echo " def .*_ray\(*" >> .coveragerc_override | ||
| echo " def ray_.*" >> .coveragerc_override | ||
| echo " def test_.*_ray*" >> .coveragerc_override | ||
| } | ||
|
|
||
| set_ray_coveragerc() | ||
| check_fftw_pyfftw() | ||
| { | ||
| # If `ray` command is not found then generate a .coveragerc_override file | ||
| if ! command -v ray &> /dev/null | ||
| if ! command -v fftw-wisdom &> /dev/null \ | ||
|
Collaborator
Author
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 seems that
I can see that
Contributor
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. So, what should we do?
Collaborator
Author
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. I think we should remove the check There is still something that I cannot figure out though. If
In addition, what I infer from these lines of code in pyfftw is that
Contributor
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. Can you post an issue to the
Collaborator
Author
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.
Done. See: pyFFTW/pyFFTW#430 |
||
| || ! python -c "import pyfftw" &> /dev/null; | ||
| then | ||
| echo "Ray Not Installed" | ||
| echo "FFTW and/or pyFFTW Not Installed" | ||
| else | ||
| echo "FFTW and pyFFTW Installed" | ||
| fi | ||
| } | ||
|
|
||
| gen_pyfftw_coveragerc() | ||
| { | ||
| gen_coveragerc_boilerplate | ||
| echo " class .*PYFFTW*" >> .coveragerc_override | ||
| echo " def test_.*pyfftw*" >> .coveragerc_override | ||
| } | ||
|
|
||
| set_coveragerc() | ||
| { | ||
| fcoveragerc="" | ||
|
|
||
| if ! command -v ray &> /dev/null; | ||
| then | ||
| echo "Ray not installed" | ||
| gen_ray_coveragerc | ||
| fcoveragerc="--rcfile=.coveragerc_override" | ||
| else | ||
| echo "Ray Installed" | ||
| echo "Ray installed" | ||
| fi | ||
|
|
||
| if ! command -v fftw-wisdom &> /dev/null \ | ||
| || ! python -c "import pyfftw" &> /dev/null; | ||
| then | ||
| echo "FFTW and/or pyFFTW not Installed" | ||
| gen_pyfftw_coveragerc | ||
| else | ||
| echo "FFTW and pyFFTW Installed" | ||
| fi | ||
|
|
||
| if [ -f .coveragerc_override ]; then | ||
| fcoveragerc="--rcfile=.coveragerc_override" | ||
| fi | ||
| } | ||
|
|
||
| show_coverage_report() | ||
| { | ||
| set_ray_coveragerc | ||
| set_coveragerc | ||
| coverage report --show-missing --fail-under=100 --skip-covered --omit=fastmath.py,docstring.py,versions.py $fcoveragerc | ||
| check_errs $? | ||
| } | ||
|
|
@@ -361,6 +392,7 @@ check_print | |
| check_pkg_imports | ||
| check_naive | ||
| check_ray | ||
| check_fftw_pyfftw | ||
|
|
||
|
|
||
| if [[ -z $NUMBA_DISABLE_JIT || $NUMBA_DISABLE_JIT -eq 0 ]]; then | ||
|
|
@@ -405,4 +437,4 @@ else | |
| test_coverage | ||
| fi | ||
|
|
||
| clean_up | ||
| clean_up | ||
Uh oh!
There was an error while loading. Please reload this page.