[GH-ISSUE #11] self.lib.launch(*cargs, ctypes.byref(return_code)) #10

Closed
opened 2026-10-26 21:10:27 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @wavelet2008 on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/11

self.lib.launch(*cargs, ctypes.byref(return_code)) 这个函数具体实现

Originally created by @wavelet2008 on GitHub (Feb 26, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/11 self.lib.launch(*cargs, ctypes.byref(return_code)) 这个函数具体实现
Author
Owner

@zheanxu commented on GitHub (Feb 26, 2025):

self.lib = ctypes.CDLL(os.path.join(self.path, 'kernel.so')) loads the executable kernel.
Then calling self.lib.launch(*cargs, ctypes.byref(return_code)) runs this kernel with input parameters cargs and stores the return value in return_code.

<!-- gh-comment-id:2684156365 --> @zheanxu commented on GitHub (Feb 26, 2025): `self.lib = ctypes.CDLL(os.path.join(self.path, 'kernel.so'))` loads the executable kernel. Then calling `self.lib.launch(*cargs, ctypes.byref(return_code))` runs this kernel with input parameters `cargs` and stores the return value in `return_code`.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepGEMM#10
No description provided.