DeepGraphLearning / graphvite

GraphVite: A General and High-performance Graph Embedding System
https://graphvite.io
Apache License 2.0
1.22k stars 151 forks source link

KNNGraph: Aborted (core dumped) #36

Closed chaleeluo closed 4 years ago

chaleeluo commented 4 years ago

I am trying to use graphvite visualize and extract the vectors after dimension reduction in largevis, thus i install graphvite from source, an error is thrown in loading step of graph.KNNGraph:

KNNGraph<uint32>
------------------ Graph -------------------
#vertex: 1789406000, #nearest neighbor: 1634496008
perplexity: 1.81753e+31, vector normalization: yes
Faiss assertion 'err == cudaSuccess || err == cudaErrorInvalidValue' failed in int faiss::gpu::getDeviceForAddress(const void*) at gpu/utils/DeviceUtils.cu:105
Aborted (core dumped)

OS: Ubuntu 16.04 Graphvite version: 0.2.1 Faiss version: 1.6.0 python3.6 cuda10.1

however, while i use the same dataset in the envs from conda install, it works. the build process shown as below: image image

Any help would be grateful.

KiddoZhu commented 4 years ago

Hi. The compiling process seems good. Did you modify any C++ source code?

It looks like compatibility issue between graphvite and faiss. Previously graphvite is based on v1.5.1. I will take a look at the latest version.

KiddoZhu commented 4 years ago

I just pulled the repo and installed from source, using faiss v1.6.1. graphvite visualize worked as expected.

Maybe you have modified some code?

chaleeluo commented 4 years ago

You're right, i haven't modify any c++, its compatibility issue. I reinstall faiss with v1.4.0 (cuda10.1, graphvite0.2.1), that is absolutely fine!

Many thanks !!