luanfujun / deep-painterly-harmonization

Code and data for paper "Deep Painterly Harmonization": https://arxiv.org/abs/1804.03189
6.08k stars 628 forks source link

require 'libcuda_utils' Segmentation fault (core dumped) #10

Closed wusai80 closed 6 years ago

wusai80 commented 6 years ago

Hi, this is a great work.

I am trying to run it on CUDA 9.1, but failed. When I load the libcuda_utils.so library in torch, I get the "Segmentation fault " error. Then, I fall back to CUDA 8.0 and recompile. Still get the same problem. I run other torch project like style transfer. It runs good.

This is surely some version conflicts when compiling libcuda_utils.so. But I am not sure which ones. Could you give some hints?

make /usr/local/cuda-9.1/bin/nvcc -arch sm_35 -O3 -DNDEBUG -Xcompiler -fopenmp --compiler-options '-fPIC' -o libcuda_utils.so --shared cuda_utils.cu -I/home/chris/torch/install/include/THC -I/home/chris/torch/install/include/TH -I/home/chris/torch/install/include -L/home/chris/torch/install/lib -Xlinker -rpath,/home/chris/torch/install/lib -lluaT -lTHC -lTH -lpng -lluajit -lgomp

wusai80 commented 6 years ago

I re-install CUDA 8.0. Problem solved.