dipanjans12 / GraphReduce

Apache License 2.0
2 stars 0 forks source link

Compilation error, should be library dependency issue #1

Open sgpyc opened 8 years ago

sgpyc commented 8 years ago

Hi, I'm trying to run GraphReduce for comparison purpose. My environment is K40c + CUDA 8.0 + gcc 4.8.5 + ubuntu 14.04.

It seems like GraphReduce requires external dependencies. But I'm not sure what are they and where to put them. Anyone have any suggest? Thanks

output from make is as following:

make
nvcc -c -g -o pagerank.o pagerank.cu -O3 -Xptxas -abi=no -I../moderngpu/include -L../moderngpu -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from gpugas.h:65:0,
                 from pagerank.cu:19:
gpugas_kernels.cuh:21:37: fatal error: device/ctaloadbalance.cuh: No such file or directory
 #include "device/ctaloadbalance.cuh"
                                     ^
compilation terminated.
make: *** [pagerank.o] Error 1
sgpyc commented 8 years ago

Hi, I got GraphReduce compiled after the following steps: 1) place the moderngpu dir parallel to GraphReduce. 2) copy Makefile_mgpu_src to moderngpu/src/ and change it to Makefile 3) run make there 4) run make in GraphReduce

and also compiled mtx2gr, gr2mtx and createCCGraph by changing their extension to .cu, and modify the Makefile as following. Please advise whether these are the correct steps to get the library working.

However, mtx2gr run into segmentation fault, I will open another issue (#2) for this error.

...
BINARIES = pagerank sssp bfs connected_component createCCGraph mtx2gr gr2mtx
...
createCCGraph: createCCGraph.cu graphio.o
    nvcc $(NVCC_OPTS) $(NVCC_ARCHS) -g -o $@ $^ $(LD_LIBS) 

mtx2gr: mtx2gr.cu graphio.o util.o
    nvcc $(NVCC_OPTS) $(NVCC_ARCHS) -g -o $@ $^ $(LD_LIBS)

gr2mtx: gr2mtx.cu graphio.o util.o
    nvcc $(NVCC_OPTS) $(NVCC_ARCHS) -g -o $@ $^ $(LD_LIBS) 
...