Skip to content

Commit 2ca3f2e

Browse files
committed
Comment out a tiny cudajit.0.6.2 dependency
1 parent 19dfd0d commit 2ca3f2e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arrayjit/lib/cuda_backend.cudajit.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ module Fresh () = struct
189189
let same_device = dev.ordinal = src.stream.device.ordinal in
190190
let size_in_bytes = Lazy.force tn.Tn.size_in_bytes in
191191
let memcpy ~dst_ptr =
192-
if same_device && Cu.Deviceptr.equal dst_ptr src_ptr then ()
193-
else if same_device then
192+
(* FIXME: coming in cudajit.0.6.2. *)
193+
(* if same_device && Cu.Deviceptr.equal dst_ptr src_ptr then () else *)
194+
if same_device then
194195
Cu.Stream.memcpy_D_to_D ~size_in_bytes ~dst:dst_ptr ~src:src_ptr dst.stream.runner
195196
else
196197
Cu.Stream.memcpy_peer ~size_in_bytes ~dst:dst_ptr ~dst_ctx:(ctx_of dst) ~src:src_ptr

0 commit comments

Comments
 (0)