Skip to content

Commit

Permalink
fix kerevalmeth=0; temp fix python ci(retiring soon)
Browse files Browse the repository at this point in the history
  • Loading branch information
lu1and10 committed Jul 3, 2024
1 parent 4f6db34 commit 89a0797
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_build_win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Add-Content -Path make.inc -Value "CXXFLAGS+= -march=x86-64"
Set-Variable libvcruntime140_a -Value ([IO.Path]::Combine((Split-Path -Path $PYTHON), "libs", 'libvcruntime140.a'))
Copy-Item -Path .\.github\workflows\libvcruntime140.a -Destination $libvcruntime140_a

python -m pip install --upgrade setuptools wheel numpy pip
python -m pip install --upgrade setuptools==70.1.1 wheel numpy pip
if (-not $?) {throw "Failed pip install"}

# mingw gcc compiler pacth to work with python
Expand Down
6 changes: 6 additions & 0 deletions src/spreadinterp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,12 @@ void evaluate_kernel_vector(FLT *ker, FLT *args, const finufft_spread_opts &opts
if (!(opts.flags & TF_OMIT_EVALUATE_EXPONENTIAL))
for (int i = 0; i < Npad; i++) // Loop 2: Compute exponentials
ker[i] = exp(ker[i]);
if (opts.kerpad) {
// padded part should be zero, in spread_subproblem_nd_kernels, there are
// out of bound writes to trg arrays
for (int i = N; i < Npad; ++i)
ker[i] = 0.0;
}
} else {
for (int i = 0; i < N; i++) // dummy for timing only
ker[i] = 1.0;
Expand Down
1 change: 0 additions & 1 deletion tools/finufft/build-wheels-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ versions=("cp36-cp36m"
"cp310-cp310"
"cp311-cp311"
"cp312-cp312"
"pp38-pypy38_pp73"
"pp39-pypy39_pp73")

pys=()
Expand Down

0 comments on commit 89a0797

Please sign in to comment.