File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -620,6 +620,8 @@ Low-level bits
620
620
.. autofunction :: thread_count
621
621
.. autofunction :: set_thread_count
622
622
.. autofunction :: sync_thread
623
+ .. autofunction :: sync_device
624
+ .. autofunction :: sync_all_devices
623
625
.. autofunction :: flush_kernel_cache
624
626
.. autofunction :: flush_malloc_cache
625
627
.. autofunction :: expand_threshold
Original file line number Diff line number Diff line change 7130
7130
then you have found a bug. Please report it on the project's
7131
7131
`GitHub issue tracker <https://github.com/mitsuba-renderer/drjit >`__.
7132
7132
7133
+
7134
+ .. topic :: sync_device
7135
+
7136
+ Wait for all computation on the current device to finish.
7137
+
7138
+ .. topic :: sync_all_devices
7139
+
7140
+ Wait for all computation on *all devices * to finish.
7141
+
7142
+
7133
7143
.. topic :: flush_malloc_cache
7134
7144
7135
7145
Free the memory allocation cache maintained by Dr.Jit.
Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ NB_MODULE(_drjit_ext, m_) {
171
171
m.def (" has_backend" , &jit_has_backend, doc_has_backend);
172
172
173
173
m.def (" sync_thread" , &jit_sync_thread, doc_sync_thread)
174
+ .def (" sync_device" , &jit_sync_device, doc_sync_device)
175
+ .def (" sync_all_devices" , &jit_sync_all_devices, doc_sync_all_devices)
174
176
.def (" flush_kernel_cache" , &jit_flush_kernel_cache, doc_flush_kernel_cache)
175
177
.def (" flush_malloc_cache" , &jit_flush_malloc_cache, doc_flush_malloc_cache)
176
178
.def (" malloc_clear_statistics" , &jit_malloc_clear_statistics)
You can’t perform that action at this time.
0 commit comments