-
Notifications
You must be signed in to change notification settings - Fork 158
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
Install error on Ubuntu 14.04, CUDA 6.5 with setup.py/pip #36
Comments
Per the installation instructions were you trying to install system-wide via Can you also supply the permissions of |
I tried both!
|
Interesting. For me it installs fine under Ubuntu 14.04 and CUDA 6.5. Why does your shell find |
Yes, cuda is in PATH. Plus otherwise it would not compile when I call make on your previous commit. |
Still:
There must be something different. Unless we're misinterpreting the error message and it finds |
One other thing that would help us try and track down the source of the error would be to add |
I did not see you meant in the setup.py. I just did it, cuda is not inside. |
When I add the |
This doesn't change where Note that when you're using |
Yes,thank you so much! Sorry I didn't get your email since Gmail is not available in mainland of China.
发自网易邮箱大师
On 12/19/2016 02:38, htso wrote: Has this issue been resolved? Run into exactly the same problem. Tried sudo PATH="$PATH" pip install . Didn't work.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/cudamat/cudamat","title":"cudamat/cudamat","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/cudamat/cudamat"}},"updates":{"snippets":[{"icon":"PERSON","message":"@htso in #36: Has this issue been resolved? Run into exactly the same problem. Tried `sudo PATH=\"$PATH\" pip install .` Didn't work."}],"action":{"name":"View Issue","url":"#36 (comment)"}}}
|
Try not run python in the directory "cudamat".
|
@flavianh I don't know how you got it to work, even with nvcc in my sudo and user path, it wouldn't work. I had to change the lines: class CUDA_build_ext(build_ext):
"""
Custom build_ext command that compiles CUDA files.
Note that all extension source files will be processed with this compiler.
"""
def build_extensions(self):
self.compiler.src_extensions.append('.cu')
self.compiler.set_executable('compiler_so', 'nvcc')
self.compiler.set_executable('linker_so', 'nvcc --shared')
if hasattr(self.compiler, '_c_extensions'):
self.compiler._c_extensions.append('.cu') # needed for Windows
self.compiler.spawn = self.spawn
build_ext.build_extensions(self) to class CUDA_build_ext(build_ext):
"""
Custom build_ext command that compiles CUDA files.
Note that all extension source files will be processed with this compiler.
"""
def build_extensions(self):
self.compiler.src_extensions.append('.cu')
self.compiler.set_executable('compiler_so', '/usr/local/cuda/bin/nvcc')
self.compiler.set_executable('linker_so', '/usr/local/cuda/bin/nvcc --shared')
if hasattr(self.compiler, '_c_extensions'):
self.compiler._c_extensions.append('.cu') # needed for Windows
self.compiler.spawn = self.spawn
build_ext.build_extensions(self) Note that I had to provide the full path to nvcc for it to work. |
@nateGeorge: What about |
nvcc -I/usr/include/python2.7 -c cudamat/cudamat.cu -o build/temp.linux-x86_64-2.7/cudamat/cudamat.o -O --ptxas-options=-v --compiler-options '-fPIC' unable to execute nvcc: No such file or directory error: command 'nvcc' failed with exit status 1
There is little chance that this comes from my configuration, since I reverted to a346369 and ran
make
and the tests successfully.The text was updated successfully, but these errors were encountered: