Skip to content

Commit

Permalink
updated python/setup.py to not load libnvgraph_rapids.so (libnvgraph_…
Browse files Browse the repository at this point in the history
…rapids.so is merged into libcugraph.so)
  • Loading branch information
seunghwak committed May 28, 2019
1 parent 809aa48 commit db8ad31
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,6 @@ def find_in_path(name, path):
return None


def locate_nvgraph():
if 'CONDA_PREFIX' in os.environ:
nvgraph_found = find_in_path('lib/libnvgraph_rapids.so',
os.environ['CONDA_PREFIX'])
if nvgraph_found is None:
nvgraph_found = find_in_path('libnvgraph_rapids.so',
os.environ['LD_LIBRARY_PATH'])
if nvgraph_found is None:
raise EnvironmentError('The nvgraph library could not be located')
nvgraph_config = {
'include': pjoin(os.path.dirname(os.path.dirname(nvgraph_found)),
'include', 'nvgraph'),
'lib': os.path.dirname(nvgraph_found)}

print('nvgraph_config = ' + str(nvgraph_config))

return nvgraph_config


NVGRAPH = locate_nvgraph()

try:
NUMPY_INCLUDE = numpy.get_include()
except AttributeError:
Expand All @@ -60,14 +39,13 @@ def locate_nvgraph():
sources=CYTHON_FILES,
include_dirs=[NUMPY_INCLUDE,
CUDF_INCLUDE,
# NVGRAPH['include'],
'../cpp/src',
'../cpp/include',
'../cpp/build/gunrock',
'../cpp/build/gunrock/externals/moderngpu/include',
'../cpp/build/gunrock/externals/cub'],
library_dirs=[get_python_lib(), NVGRAPH['lib']],
libraries=['cugraph', 'cudf', 'nvgraph_rapids'],
library_dirs=[get_python_lib()],
libraries=['cugraph', 'cudf'],
language='c++',
extra_compile_args=['-std=c++14'])
]
Expand Down

0 comments on commit db8ad31

Please sign in to comment.