Fix bugs when compiling cpu kernels
This commit is contained in:
parent
1f34060390
commit
68873da921
|
@ -144,6 +144,7 @@ class CPUKernel:
|
||||||
kernel_file = source_code[:-2] + ".so"
|
kernel_file = source_code[:-2] + ".so"
|
||||||
compile_command = "gcc -O3 -fPIC -std=c99 {} -shared -o {}".format(source_code, kernel_file)
|
compile_command = "gcc -O3 -fPIC -std=c99 {} -shared -o {}".format(source_code, kernel_file)
|
||||||
print("Compiling", compile_command)
|
print("Compiling", compile_command)
|
||||||
|
exit_state = os.system(compile_command)
|
||||||
else:
|
else:
|
||||||
compile_command = "gcc -O3 -fPIC -std=c99 {} -shared -o {}".format(source_code, kernel_file)
|
compile_command = "gcc -O3 -fPIC -std=c99 {} -shared -o {}".format(source_code, kernel_file)
|
||||||
print("Compiling", compile_command)
|
print("Compiling", compile_command)
|
||||||
|
|
Loading…
Reference in New Issue