From 68873da92104a23cfc1553421aecf32dd862f703 Mon Sep 17 00:00:00 2001 From: songxxzp Date: Thu, 6 Apr 2023 20:09:56 +0800 Subject: [PATCH] Fix bugs when compiling cpu kernels --- quantization.py | 1 + 1 file changed, 1 insertion(+) diff --git a/quantization.py b/quantization.py index 61d69c2..07e78b1 100644 --- a/quantization.py +++ b/quantization.py @@ -144,6 +144,7 @@ class CPUKernel: kernel_file = source_code[:-2] + ".so" compile_command = "gcc -O3 -fPIC -std=c99 {} -shared -o {}".format(source_code, kernel_file) print("Compiling", compile_command) + exit_state = os.system(compile_command) else: compile_command = "gcc -O3 -fPIC -std=c99 {} -shared -o {}".format(source_code, kernel_file) print("Compiling", compile_command)