Skip to content

Commit

Permalink
bumped to version 0.5.2: fixed broken npp-unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
gerwin3 committed Aug 14, 2023
1 parent b571533 commit 3f456a9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords = ["async", "nvidia", "cuda", "gpu", "npp"]
readme = "README.md"
categories = ["asynchronous"]
edition = "2021"
version = "0.5.1"
version = "0.5.2"
authors = ["Oddity.ai Developers <[email protected]>"]
repository = "https://github.com/oddity-ai/async-cuda"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/npp/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub mod copy_constant_border;
pub mod remap;
pub mod resize;

#[cfg(feature = "unstable")]
#[cfg(feature = "npp-unstable")]
pub mod resize_batch;

/// Convenience macro for turning an NPP error code into a `std::result::Result`.
Expand Down
4 changes: 2 additions & 2 deletions src/npp/ffi/resize_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ pub fn resize_batch(
mod tests {
use super::*;

use crate::ffi::context::Context;
use crate::tests::sync::memory::*;
use crate::npp::ffi::context::Context;
use crate::npp::tests::sync::memory::*;

#[test]
fn test_resize_batch() {
Expand Down
4 changes: 2 additions & 2 deletions src/npp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub mod remap;
pub mod resize;
pub mod stream;

#[cfg(feature = "unstable")]
#[cfg(feature = "npp-unstable")]
pub mod resize_batch;

pub use constant_border::ConstantBorder;
Expand All @@ -18,7 +18,7 @@ pub use remap::remap;
pub use resize::resize;
pub use stream::Stream;

#[cfg(feature = "unstable")]
#[cfg(feature = "npp-unstable")]
pub use resize_batch::resize_batch;

#[cfg(test)]
Expand Down
4 changes: 2 additions & 2 deletions src/npp/resize_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ type Result<T> = std::result::Result<T, crate::npp::error::Error>;
///
/// # Stability
///
/// This function is only available when the `unstable` feature is enabled. Testing shows that the
/// batched version can be imprecise when the input image dimensions are small.
/// This function is only available when the `npp-unstable` feature is enabled. Testing shows that
/// the batched version can be imprecise when the input image dimensions are small.
///
/// Currently identified suspicious behavior:
/// * It does not necessarily produce the same output over a batch of images that would have been
Expand Down

0 comments on commit 3f456a9

Please sign in to comment.