-
Notifications
You must be signed in to change notification settings - Fork 64
Trouble Installing TVM Extension #77
Comments
I hope you created a symbolic link to llvm-config. By default the llvm-8 installation installs llvm-config-8, so you can create a symbolic link by ln -s /usr/bin/llvm-config-8 /usr/bin/llvm-config |
I just tried creating a symbolic link, but I got the same error. I think it might be an issue with cmake rather than llvm? |
perhaps you need to if not, after creating that symlink, could you try |
It fixed my issue with python setup.py install, but it errors when I try to run python setup.py test: =========================================================== ERRORS ============================================================ -- Docs: https://docs.pytest.org/en/latest/warnings.html |
Could the undefined symbol errors have something to do with the PyTorch version? |
Yep, it certainly could be the version of PyTorch, but The other issue might be a mismatch caused by the More concretely that would mean changing https://github.com/pytorch/tvm/blob/master/CMakeLists.txt#L10 to either
or
|
I tried doing rebuilding the nightly version of PyTorch and changing the line in CMakeLists.txt, and I think it fixed my previous errors, but now I have new errors with python setup.py test: _________________________________________________________ ERROR collecting test/test_core.py __________________________________________________________ -- Docs: https://docs.pytest.org/en/latest/warnings.html This seems kind of similar to this: apache/tvm#521, so I think this has something to do with llvm, but I'm not sure how to fix it. I tried setting the LLVM-CONFIG environmental variable to llvm-config-8.0 and I've checked my gcc version (it's 7.4.0), but that doesn't seem to help. I'm running llvm-8.0 and I've created the symbolic link from llvm-config-8. to llvm-config. Do you have any ideas what else I could try? Sorry about all the questions. |
It worked once I built PyTorch from source! I think the nightly build of PyTorch was causing the errors. |
Which version it is in your case? I have also built from source, but it failed. |
When I try running python setup.py install to install the TVM extension, I get a subprocesss.CalledProcess Error:
make: *** No targets specified and no makefile found. Stop.
Traceback (most recent call last):
File "setup.py", line 273, in
url='https://github.com/pytorch/tvm',
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 203, in run
setuptools.command.install.install.run(self)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/setuptools/command/install.py", line 65, in run
orig.install.run(self)
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 187, in run
self.run_command('cmake_build')
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/ubuntu/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 176, in run
self._run_build()
File "setup.py", line 165, in _run_build
subprocess.check_call(build_args)
File "/home/ubuntu/anaconda3/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/cmake', '--build', '.', '--', '-j', '4']' returned non-zero exit status 2.
I'm running an 18.04 Ubuntu instance and the latest PyTorch nightly build. I have llvm-8 installed.
The text was updated successfully, but these errors were encountered: