@@ -34,7 +34,7 @@ struct zip_hi {
34
34
}
35
35
};
36
36
template <unsigned cap> struct reverse_index {
37
- static constexpr unsigned get (unsigned index, const unsigned size) {
37
+ static constexpr unsigned get (unsigned index, const unsigned /* size*/ ) {
38
38
return index < cap ? (cap - 1 - index) : index;
39
39
}
40
40
};
@@ -280,7 +280,8 @@ template<typename T, uint8_t w, uint8_t upsampfact,
280
280
class simd_type =
281
281
xsimd::make_sized_batch_t <T, find_optimal_simd_width<T, w>()>> // aka ns
282
282
static FINUFFT_ALWAYS_INLINE void eval_kernel_vec_Horner (
283
- T *FINUFFT_RESTRICT ker, T x, const finufft_spread_opts &opts) noexcept
283
+ T *FINUFFT_RESTRICT ker, T x,
284
+ const finufft_spread_opts &opts [[maybe_unused]]) noexcept
284
285
/* Fill ker[] with Horner piecewise poly approx to [-w/2,w/2] ES kernel eval at
285
286
x_j = x + j, for j=0,..,w-1. Thus x in [-w/2,-w/2+1]. w is aka ns.
286
287
This is the current evaluation method, since it's faster (except i7 w=16).
@@ -1394,7 +1395,7 @@ template<typename T>
1394
1395
static void bin_sort_singlethread (std::vector<BIGINT> &ret, UBIGINT M, const T *kx,
1395
1396
const T *ky, const T *kz, UBIGINT N1, UBIGINT N2,
1396
1397
UBIGINT N3, double bin_size_x, double bin_size_y,
1397
- double bin_size_z, int debug)
1398
+ double bin_size_z, int debug [[maybe_unused]] )
1398
1399
/* Returns permutation of all nonuniform points with good RAM access,
1399
1400
* ie less cache misses for spreading, in 1D, 2D, or 3D. Single-threaded version
1400
1401
*
@@ -1466,9 +1467,10 @@ static void bin_sort_singlethread(std::vector<BIGINT> &ret, UBIGINT M, const T *
1466
1467
}
1467
1468
1468
1469
template <typename T>
1469
- static void bin_sort_multithread (std::vector<BIGINT> &ret, UBIGINT M, T *kx, T *ky, T *kz,
1470
- UBIGINT N1, UBIGINT N2, UBIGINT N3, double bin_size_x,
1471
- double bin_size_y, double bin_size_z, int debug,
1470
+ static void bin_sort_multithread (std::vector<BIGINT> &ret, UBIGINT M, T *kx, T *ky,
1471
+ T *kz, UBIGINT N1, UBIGINT N2, UBIGINT N3,
1472
+ double bin_size_x, double bin_size_y,
1473
+ double bin_size_z, int debug [[maybe_unused]],
1472
1474
int nthr)
1473
1475
/* Mostly-OpenMP'ed version of bin_sort.
1474
1476
For documentation see: bin_sort_singlethread.
@@ -1680,7 +1682,7 @@ FINUFFT_EXPORT int FINUFFT_CDECL spreadinterp(
1680
1682
Tidy, Barnett 5/20/20. Tidy doc, Barnett 10/22/20.
1681
1683
*/
1682
1684
{
1683
- int ier = spreadcheck (N1, N2, N3, M, kx, ky, kz, opts);
1685
+ int ier = spreadcheck (N1, N2, N3, opts);
1684
1686
if (ier) return ier;
1685
1687
std::vector<BIGINT> sort_indices (M);
1686
1688
int did_sort = indexSort (sort_indices, N1, N2, N3, M, kx, ky, kz, opts);
@@ -1696,7 +1698,7 @@ template FINUFFT_EXPORT int FINUFFT_CDECL spreadinterp<double>(
1696
1698
UBIGINT N1, UBIGINT N2, UBIGINT N3, double *data_uniform, UBIGINT M, double *kx,
1697
1699
double *ky, double *kz, double *data_nonuniform, const finufft_spread_opts &opts);
1698
1700
1699
- static constexpr uint8_t ndims_from_Ns (const UBIGINT N1 , const UBIGINT N2,
1701
+ static constexpr uint8_t ndims_from_Ns (const UBIGINT /* N1 */ , const UBIGINT N2,
1700
1702
const UBIGINT N3)
1701
1703
/* rule for getting number of spreading dimensions from the list of Ns per dim.
1702
1704
Split out, Barnett 7/26/18
@@ -1705,9 +1707,7 @@ static constexpr uint8_t ndims_from_Ns(const UBIGINT N1, const UBIGINT N2,
1705
1707
return 1 + (N2 > 1 ) + (N3 > 1 );
1706
1708
}
1707
1709
1708
- template <typename T>
1709
- int spreadcheck (UBIGINT N1, UBIGINT N2, UBIGINT N3, UBIGINT M, T *kx, T *ky, T *kz,
1710
- const finufft_spread_opts &opts)
1710
+ int spreadcheck (UBIGINT N1, UBIGINT N2, UBIGINT N3, const finufft_spread_opts &opts)
1711
1711
/* This does just the input checking and reporting for the spreader.
1712
1712
See spreadinterp() for input arguments and meaning of returned value.
1713
1713
Split out by Melody Shih, Jun 2018. Finiteness chk Barnett 7/30/18.
@@ -1729,11 +1729,6 @@ int spreadcheck(UBIGINT N1, UBIGINT N2, UBIGINT N3, UBIGINT M, T *kx, T *ky, T *
1729
1729
}
1730
1730
return 0 ;
1731
1731
}
1732
- template int spreadcheck<float >(UBIGINT N1, UBIGINT N2, UBIGINT N3, UBIGINT M, float *kx,
1733
- float *ky, float *kz, const finufft_spread_opts &opts);
1734
- template int spreadcheck<double >(UBIGINT N1, UBIGINT N2, UBIGINT N3, UBIGINT M,
1735
- double *kx, double *ky, double *kz,
1736
- const finufft_spread_opts &opts);
1737
1732
1738
1733
template <typename T>
1739
1734
int indexSort (std::vector<BIGINT> &sort_indices, UBIGINT N1, UBIGINT N2, UBIGINT N3,
0 commit comments