mirror of
https://github.com/deepseek-ai/DeepGEMM
synced 2025-06-26 23:15:49 +00:00
Add __assertfail
This commit is contained in:
@@ -48,7 +48,7 @@ class Runtime:
|
|||||||
command = [f'{CUDA_HOME}/bin/cuobjdump', '-symbols', path]
|
command = [f'{CUDA_HOME}/bin/cuobjdump', '-symbols', path]
|
||||||
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
||||||
assert result.returncode == 0
|
assert result.returncode == 0
|
||||||
illegal_names = ['vprintf', '__instantiate_kernel', '__internal']
|
illegal_names = ['vprintf', '__instantiate_kernel', '__internal', '__assertfail']
|
||||||
check_illegal = lambda line: any([name in line for name in illegal_names])
|
check_illegal = lambda line: any([name in line for name in illegal_names])
|
||||||
kernel_names = [line.split()[-1] for line in result.stdout.splitlines()
|
kernel_names = [line.split()[-1] for line in result.stdout.splitlines()
|
||||||
if line.startswith('STT_FUNC') and not check_illegal(line)]
|
if line.startswith('STT_FUNC') and not check_illegal(line)]
|
||||||
|
|||||||
Reference in New Issue
Block a user