mirror of
https://github.com/deepseek-ai/DeepGEMM
synced 2025-06-26 23:15:49 +00:00
Fix JIT tests
This commit is contained in:
@@ -74,7 +74,8 @@ static void __instantiate_kernel() {{
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('Generated code:')
|
||||
code = VectorAddRuntime.generate(T='float')
|
||||
kwargs = {'T': 'float'}
|
||||
code = VectorAddRuntime.generate(kwargs)
|
||||
print(code)
|
||||
print()
|
||||
|
||||
@@ -85,7 +86,7 @@ if __name__ == '__main__':
|
||||
|
||||
# Build
|
||||
print('Building ...')
|
||||
func = compiler_cls.build('test_func', code, VectorAddRuntime)
|
||||
func = compiler_cls.build('test_func', code, VectorAddRuntime, kwargs)
|
||||
|
||||
# Run and check
|
||||
a = torch.randn((1024, ), dtype=torch.float32, device='cuda')
|
||||
|
||||
Reference in New Issue
Block a user