Skip to content

Commit 264cfab

Browse files
committed
Update documentation
1 parent 095f808 commit 264cfab

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

splashsurf_lib/Cargo.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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
1919
all-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
2531
exclude = ["tests/*", "benches/*"]

splashsurf_lib/src/kernel.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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
39
use crate::{Real, RealConvert};
410
use 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")]
178184
pub 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"))]
310316
pub struct CubicSplineKernelAvxF32 {
311317
compact_support_inv: f32,

0 commit comments

Comments
 (0)