Skip to content

Commit

Permalink
Tiny lifetime fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukstafi committed Jul 20, 2024
1 parent 7e53bcc commit ac47d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cudajit.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1411,8 +1411,8 @@ let stream_create ?(non_blocking = false) ?(lower_priority = 0) () =
{ args_lifetimes = []; stream = !@stream }

let stream_destroy stream =
stream.args_lifetimes <- [];
check "cu_stream_destroy" @@ Cuda.cu_stream_destroy stream.stream
check "cu_stream_destroy" @@ Cuda.cu_stream_destroy stream.stream;
stream.args_lifetimes <- []

let stream_get_context stream =
let open Ctypes in
Expand Down

0 comments on commit ac47d6f

Please sign in to comment.