File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -253,4 +253,20 @@ nixlGpuReadSignal(const void *signal) {
253253 return ucp_device_counter_read<static_cast <ucs_device_level_t >(level)>(signal);
254254}
255255
256+ /* *
257+ * @brief Write value to the local signal.
258+ *
259+ * This function can be used to set a signal to a specific value.
260+ *
261+ * The signal must be initialized with the host function @ref prepGpuSignal.
262+ *
263+ * @param signal [in,out] Address of the signal.
264+ * @param value [in] Value to write to the signal.
265+ */
266+ template <nixl_gpu_level_t level = nixl_gpu_level_t ::THREAD>
267+ __device__ void
268+ nixlGpuWriteSignal (void *signal, uint64_t value) {
269+ ucp_device_counter_write<static_cast <ucs_device_level_t >(level)>(signal, value);
270+ }
271+
256272#endif // _NIXL_DEVICE_CUH
You can’t perform that action at this time.
0 commit comments