8000 HACK: call fflush after printf · numpy/numpy@c4b94b6 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c4b94b6

Browse files
HACK: call fflush after printf
[skip azp] [skip circle] [skip cirrus]
1 parent e3a64f6 commit c4b94b6

File tree

2 files changed

+5
-37
lines changed

2 files changed

+5
-37
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
compiler: ["MSVC", "Clang-cl"]
25+
compiler: ["Clang-cl"]
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -77,39 +77,3 @@ jobs:
7777
- name: Run test suite
7878
run: |
7979
spin test
80-
81-
msvc_32bit_python_no_openblas:
82-
name: MSVC, 32-bit Python, no BLAS
83-
runs-on: windows-2019
84-
# To enable this job on a fork, comment out:
85-
if: github.repository == 'numpy/numpy'
86-
steps:
87-
- name: Checkout
88-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
89-
with:
90-
submodules: recursive
91-
fetch-tags: true
92-
93-
- name: Setup Python (32-bit)
94-
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
95-
with:
96-
python-version: '3.10'
97-
architecture: 'x86'
98-
99-
- name: Setup MSVC (32-bit)
100-
uses: bus1/cabuild/action/msdevshell@e22aba57d6e74891d059d66501b6b5aed8123c4d # v1
101-
with:
102-
architecture: 'x86'
103-
104-
- name: Build and install
105-
run: |
106-
python -m pip install . -v -Ccompile-args="-j2" -Csetup-args="-Dallow-noblas=true"
107-
108-
- name: Install test dependencies
109-
run: |
110-
python -m pip install -r requirements/test_requirements.txt
111-
112-
- name: Run test suite (fast)
113-
run: |
114-
cd tools
115-
python -m pytest --pyargs numpy -m "not slow" -n2

numpy/_core/src/umath/funcs.inc.src

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ nc_log1p@c@(@ctype@ *x, @ctype@ *r)
334334
@ftype@ x_im = npy_cimag@c@(*x);
335335

336336
printf("nc_log1p@c@: x_re = %lf x_im = %lf\n", x_re, x_im);
337+
fflush(stdout);
337338

338339
if (x_im == 0.0) {
339340
/*
@@ -344,6 +345,7 @@ nc_log1p@c@(@ctype@ *x, @ctype@ *r)
344345
*/
345346
if (npy_isnan(x_re)) {
346347
printf("nc_log1p@c@: setting re and im parts of r to NAN.\n");
348+
fflush(stdout);
347349
npy_csetreal@c@(r, NAN);
348350
npy_csetimag@c@(r, NAN);
349351
}
@@ -354,6 +356,7 @@ nc_log1p@c@(@ctype@ *x, @ctype@ *r)
354356
* (consistent with log(0.0 +/- 0.0j)).
355357
*/
356358
printf("nc_log1p@c@: calling npy_log1p@c@(x_re) to compute the real part of r.\n");
359+
fflush(stdout);
357360
npy_csetreal@c@(r, npy_log1p@c@(x_re));
358361
npy_csetimag@c@(r, x_im);
359362
}
@@ -393,6 +396,7 @@ nc_log1p@c@(@ctype@ *x, @ctype@ *r)
393396
@ftype@ r_re = npy_creal@c@(*r);
394397
@ftype@ r_im = npy_cimag@c@(*r);
395398
printf("nc_log1p@c@: returning, r = (%lf, %lf)\n", r_re, r_im);
399+
fflush(stdout);
396400
return;
397401
}
398402

0 commit comments

Comments
 (0)
0