Skip to content
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

[REVIEW] Moving setup.py to project root for readthedocs.io #2

Merged
merged 2 commits into from
Oct 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ FROM pygdf
ADD ml-prims /cuML/ml-prims
ADD cuML /cuML/cuML
ADD python /cuML/python
ADD setup.py /cuML/setup.py

WORKDIR /cuML/python
WORKDIR /cuML
RUN source activate gdf && conda install cython
RUN source activate gdf && python setup.py install
6 changes: 3 additions & 3 deletions python/setup.py → setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ def build_extensions(self):


ext = Extension('cuML',
sources=['../cuML/src/pca/pca.cu', '../cuML/src/tsvd/tsvd.cu', '../cuML/src/dbscan/dbscan.cu', 'cuML/cuml.pyx'],
depends=['../cuML/src/tsvd/tsvd.cu'],
sources=['cuML/src/pca/pca.cu', 'cuML/src/tsvd/tsvd.cu', 'cuML/src/dbscan/dbscan.cu', 'python/cuML/cuml.pyx'],
depends=['cuML/src/tsvd/tsvd.cu'],
library_dirs=[CUDA['lib64']],
libraries=['cudart','cublas','cusolver'],
language='c++',
runtime_library_dirs=[CUDA['lib64']],
# this syntax is specific to this build system
extra_compile_args={'gcc': ['-std=c++11'],
'nvcc': ['-arch=sm_60', '--ptxas-options=-v', '-c', '--compiler-options', "'-fPIC'",'-std=c++11','--expt-extended-lambda']},
include_dirs = [numpy_include, CUDA['include'], '../cuML/src', '../cuML/external/ml-prims/src','../cuML/external/ml-prims/external/cutlass', '../cuML/external/cutlass','../cuML/external/ml-prims/external/cub'],
include_dirs = [numpy_include, CUDA['include'], 'cuML/src', 'cuML/external/ml-prims/src','cuML/external/ml-prims/external/cutlass', 'cuML/external/cutlass','cuML/external/ml-prims/external/cub'],
extra_link_args=["-std=c++11"])


Expand Down