-
Notifications
You must be signed in to change notification settings - Fork 134
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
problem about install scs for gpu #184
Comments
Just tried it using Zorin OS (based on Ubuntu 20.04), didn't work either, essentially the same error with a slightly more verbose output :
Also tried building from source on Windows 10, and also got some "-O3" error. EDIT : Just realized my Linux setup doesn't have a proper GPU. That might be the case for the original issue as well. |
@BptGrm The errors about missing @1359347500cwc Your error is about missing |
Seems obvious now that you mention it, sorry about that. |
I think it should be compatible so long as you tell it where the header files and the cuda binaries are. If you run into problems just open an issue. |
@BptGrm When I execute command: python setup.py install --scs --gpu,The same problem was encountered . Have you finally solved this problem? |
@zhonglinliu123 Make sure you have CUDA installed, in my case it was directly in the conda environment, but I think a standalone install should work |
Specifications
Description
when i use setup.py -- setup.py install --scs --gpu it give me a fatal error: scs_matrix.h: No such file or directory
Output
GMTracker) cwc@imc-Z9PE-D8-WS:~/GMTracker/scs-python$ python setup.py install --scs --gpu
Namespace(blas64=False, extraverbose=False, float32=False, gpu=True, gpu_atrans=True, int32=False, scs=True)
running install
running bdist_egg
running egg_info
writing scs.egg-info/PKG-INFO
writing dependency_links to scs.egg-info/dependency_links.txt
writing requirements to scs.egg-info/requires.txt
writing top-level names to scs.egg-info/top_level.txt
blas_mkl_info:
NOT AVAILABLE
blis_info:
NOT AVAILABLE
openblas_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
blas_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_mkl_info:
NOT AVAILABLE
openblas_lapack_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
{'libraries': ['mkl_rt', 'pthread'], 'library_dirs': ['/home/cwc/anaconda3/envs/GMTracker/lib'], 'define_macros': [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)], 'include_dirs': ['/usr/local/include', '/usr/include', '/home/cwc/anaconda3/envs/GMTracker/include']}
{'libraries': ['mkl_rt', 'pthread'], 'library_dirs': ['/home/cwc/anaconda3/envs/GMTracker/lib'], 'define_macros': [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)], 'include_dirs': ['/usr/local/include', '/usr/include', '/home/cwc/anaconda3/envs/GMTracker/include']}
In file included from /home/cwc/anaconda3/envs/GMTracker/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /home/cwc/anaconda3/envs/GMTracker/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/cwc/anaconda3/envs/GMTracker/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/scsmodule.c:5:
/home/cwc/anaconda3/envs/GMTracker/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
src/scsmodule.c:7:10: fatal error: scs_matrix.h: No such file or directory
#include "scs_matrix.h"
^~~~~~~~~~~~~~
compilation terminated.
error: Command "gcc -pthread -B /home/cwc/anaconda3/envs/GMTracker/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYTHON -DCTRLC=1 -DCOPYAMATRIX -DUSE_LAPACK -DSCIPY_MKL_H -DHAVE_CBLAS -DSCIPY_MKL_H -DHAVE_CBLAS -Iscs/include -Iscs/linsys -Iscs/linsys/cpu/direct/ -Iscs/linsys/external/amd -Iscs/linsys/external/dqlql -I/home/cwc/anaconda3/envs/GMTracker/lib/python3.6/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I/home/cwc/anaconda3/envs/GMTracker/include -I/usr/local/include -I/usr/include -I/home/cwc/anaconda3/envs/GMTracker/include -I/home/cwc/anaconda3/envs/GMTracker/include/python3.6m -c src/scsmodule.c -o build/temp.linux-x86_64-3.6/src/scsmodule.o -O3" failed with exit status 1
The text was updated successfully, but these errors were encountered: