@@ -97,25 +97,6 @@ module Multicore_backend (Backend : Backend_types.No_device_backend) = struct
9797 let sexp_of_task_queue q =
9898 Sexp. (List [ Atom " task_queue_of_size" ; Atom (Int. to_string @@ Queue. size q) ])
9999
100- type event = Not_implemented_yet (* * TODO: NOT IMPLEMENTED YET *)
101-
102- (* * TODO: Blocks till the event completes, if it's not done already. *)
103- let sync Not_implemented_yet = ()
104-
105- (* * TODO: Whether the event completed. *)
106- let is_done Not_implemented_yet = true
107-
108- (* * TODO: If the tensor node is in the context, returns the event indicating if currently running
109- or scheduled computations modifying that node on the context's stream have completed.
110-
111- NOTE: [work_for ctx tn], if work tracking was not registered for [tn], will register work
112- tracking for [tn] and return the event tracking all currently scheduled computations on
113- [ctx]'s stream. *)
114- let work_for _ctx _tn = Some Not_implemented_yet
115-
116- (* * TODO: Schedules waiting for the given event on the context's stream. *)
117- let will_wait_for _ctx Not_implemented_yet = ()
118-
119100 type stream_state = {
120101 mutable keep_spinning : bool ;
121102 mutable stream_error : exn option ;
@@ -136,6 +117,25 @@ module Multicore_backend (Backend : Backend_types.No_device_backend) = struct
136117 }
137118 [@@ deriving sexp_of ]
138119
120+ type event = Not_implemented_yet
121+
122+ (* * TODO: Blocks till the event completes, if it's not done already. *)
123+ let sync Not_implemented_yet = ()
124+
125+ (* * TODO: Whether the event completed. *)
126+ let is_done Not_implemented_yet = true
127+
128+ (* * TODO: If the tensor node is in the context, returns the event indicating if currently running
129+ or scheduled computations modifying that node on the context's stream have completed.
130+
131+ NOTE: [work_for ctx tn], if work tracking was not registered for [tn], will register work
132+ tracking for [tn] and return the event tracking all currently scheduled computations on
133+ [ctx]'s stream. *)
134+ let work_for _ctx _tn = Some Not_implemented_yet
135+
136+ (* * TODO: Schedules waiting for the given event on the context's stream. *)
137+ let will_wait_for _ctx Not_implemented_yet = ()
138+
139139 let alloc_buffer ?old_buffer ~size_in_bytes _stream = alloc_buffer ?old_buffer ~size_in_bytes ()
140140 let get_used_memory _device = get_used_memory ()
141141
0 commit comments