File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed
Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,15 @@ repository.workspace = true
1717# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open
1818# Build with all features to properly document everything
1919all-features = true
20- # Build only for a single target as this crate does not have any platform specific behavior
21- default-target = " x86_64-unknown-linux-gnu"
22- targets = []
20+ targets = [
21+ " x86_64-unknown-linux-gnu" ,
22+ " i686-unknown-linux-gnu" ,
23+ " aarch64-unknown-linux-gnu" ,
24+ " aarch64-apple-darwin" ,
25+ " x86_64-apple-darwin" ,
26+ " x86_64-pc-windows-msvc" ,
27+ " i686-pc-windows-msvc"
28+ ]
2329
2430# Ignore the tests (especially the test mesh files) for publishing
2531exclude = [" tests/*" , " benches/*" ]
Original file line number Diff line number Diff line change 11//! SPH kernel function implementations
2+ //!
3+ //! Currently, the following SIMD implementations are provided:
4+ //! - `CubicSplineKernelAvxF32`: Only available on `x86` and `x86_64` targets, requires AVX2 and FMA support
5+ //! - `CubicSplineKernelNeonF32`: Only available on `aarch64` targets, requires NEON support
6+ //!
7+ //! Note that documentation of the SIMD kernels is only available on the respective target architectures.
28
39use crate :: { Real , RealConvert } ;
410use nalgebra:: Vector3 ;
@@ -173,7 +179,7 @@ fn test_cubic_kernel_r_integral() {
173179 }
174180}
175181
176- /// Vectorized implementation of the cubic spline kernel using NEON instructions. Only available on aarch64 targets.
182+ /// Vectorized implementation of the cubic spline kernel using NEON instructions. Only available on ` aarch64` targets.
177183#[ cfg( target_arch = "aarch64" ) ]
178184pub struct CubicSplineKernelNeonF32 {
179185 compact_support_inv : f32 ,
@@ -305,7 +311,7 @@ fn test_cubic_spline_kernel_neon() {
305311 }
306312}
307313
308- /// Vectorized implementation of the cubic spline kernel using AVX2 and FMA instructions. Only available on x86 and x86_64 targets.
314+ /// Vectorized implementation of the cubic spline kernel using AVX2 and FMA instructions. Only available on ` x86` and ` x86_64` targets.
309315#[ cfg( any( target_arch = "x86_64" , target_arch = "x86" ) ) ]
310316pub struct CubicSplineKernelAvxF32 {
311317 compact_support_inv : f32 ,
You can’t perform that action at this time.
0 commit comments