mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[GH-ISSUE #11] self.lib.launch(*cargs, ctypes.byref(return_code)) #10
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)) 这个函数具体实现
@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 parameterscargsand stores the return value inreturn_code.