Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeed Maleki committed Aug 2, 2023
1 parent 7c09605 commit ce0f30e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/sm_channel_py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ void register_sm_channel(nb::module_& m) {
uintptr_t src) { new (smChannel) SmChannel(semaphore, dst, (void*)src); })
.def("__init__",
[](SmChannel* smChannel, std::shared_ptr<SmDevice2DeviceSemaphore> semaphore, RegisteredMemory dst,
uintptr_t src, uintptr_t get_packet_buffer) { new (smChannel) SmChannel(semaphore, dst, (void*)src, (void*) get_packet_buffer); })
uintptr_t src, uintptr_t get_packet_buffer) {
new (smChannel) SmChannel(semaphore, dst, (void*)src, (void*)get_packet_buffer);
})
.def("device_handle", &SmChannel::deviceHandle);

m.def("device_handle", &deviceHandle<SmChannel>, nb::arg("smChannel"));
Expand Down

0 comments on commit ce0f30e

Please sign in to comment.