-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
01_vector_add test compile error. Just want to confirm can this test be well supported. #211
Comments
I found the same issue. Looking further up in the error log, I saw the following message from the assembler:
I manually printed the assembly source from python (
I guess the assembler needs this path to be one string rather than split into two, meaning it should be
For now, as a really dirty fix, I inserted the following at line with open(src, "r") as f:
src_txt = f.read()
src_txt = src_txt.replace('" "', "/")
with open(src, "w") as f:
f.write(src_txt) Basically, this will manually combine the path into one string in the assembly source before compiling. It seems to be working fine for me so far, although I would obviously hope a more proper fix is implemented. |
I've seen such a problem previously. It was caused by |
|
In our flows we use GCC 11, Binutils 2.38 or newer, so upgrading should resolve the issue. A possible workaround is to use |
Describe the bug
user guide test vector_add test, just fail to make_so,get error information as follows:
ret = subprocess.check_call(cc_cmd)
File "/usr/local/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/rh/gcc-toolset-11/root/usr/bin/gcc', '/tmp/tmp59kzdlsc/kernel.s', '-O3', '-shared', '-fPIC', '-Wno-psabi', '-o', '/tmp/tmp59kzdlsc/kernel.cpython-310-x86_64-linux-gnu.so', '-lm', '-lTritonCPURuntime', '-lsleef', '-lgcc', '-L/home/workspace/torch-triton/triton-cpu/python/triton/_C', '-L/usr/local/lib', '-I/usr/local/include', '-I/tmp/tmp59kzdlsc', '-I/usr/local/include/python3.10', '-Wl,-rpath', PosixPath('/home/workspace/torch-triton/triton-cpu/python/triton/_C'), '-Wl,-rpath', '/usr/local/lib', '-g']' returned non-zero exit status 1.
Environment details
use the newest master && cpu backend test
The text was updated successfully, but these errors were encountered: