Skip to content

Commit

Permalink
Fix clippy warning about Arc<Cudnn>
Browse files Browse the repository at this point in the history
  • Loading branch information
coreylowman committed Feb 26, 2024
1 parent 36aacf0 commit 2d2800b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cudnn/safe/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub struct Cudnn {

impl Cudnn {
/// Creates a new cudnn handle and sets the stream to the `device`'s stream.
#[allow(clippy::arc_with_non_send_sync)]
pub fn new(device: Arc<CudaDevice>) -> Result<Arc<Self>, CudnnError> {
device.bind_to_thread().unwrap();
let handle = result::create_handle()?;
Expand Down

0 comments on commit 2d2800b

Please sign in to comment.