mdaiter / openMVG

openMVG with a LATCH descriptor, an ORB descriptor, DEEP descriptors from the cvpr15compare repo, PNNet/Torch loader and a GPU-based L2 matcher integrated
Other
31 stars 20 forks source link

cutorch error #14

Open eokeeffe opened 7 years ago

eokeeffe commented 7 years ago

Hey dude, I've tried to compile but I'm having some difficulties around the cutorch dependencies.

[ 70%] Building NVCC (Device) object openMVG/features/deep/cunnproduction/CMakeFiles/cunn.dir/cunn_generated_SpatialConvolution.cu.o /home/evan/Modelling/openMVG_GPULatch/src/openMVG/features/deep/cunnproduction/SpatialConvolution.cu(176): error: identifier "THCudaBlas_gemm" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00002e42_00000000-7_SpatialConvolution.cpp1.ii". CMake Error at cunn_generated_SpatialConvolution.cu.o.cmake:263 (message): Error generating file /home/evan/Modelling/openMVG_GPULatch/build/openMVG/features/deep/cunnproduction/CMakeFiles/cunn.dir//./cunn_generated_SpatialConvolution.cu.o

openMVG/features/deep/cunnproduction/CMakeFiles/cunn.dir/build.make:635: recipe for target 'openMVG/features/deep/cunnproduction/CMakeFiles/cunn.dir/cunn_generated_SpatialConvolution.cu.o' failed make[2]: * [openMVG/features/deep/cunnproduction/CMakeFiles/cunn.dir/cunn_generated_SpatialConvolution.cu.o] Error 1 CMakeFiles/Makefile2:2521: recipe for target 'openMVG/features/deep/cunnproduction/CMakeFiles/cunn.dir/all' failed make[1]: * [openMVG/features/deep/cunnproduction/CMakeFiles/cunn.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *\ [all] Error 2

Ubuntu 16.04, opencv 3.1 everything tested and working. I'm using Cuda 8.0 and torch 7 with cutorch installed as well. I have a feeling it's a path error but can't for the life of me find out where the problem is.

Thanks a mill Evan

mdaiter commented 7 years ago

Hey, I wrote my additions to this library when Torch 4 was out -- I don't know if "THCudaBlas_gemm" is still defined in the cutorch repo. It should be in this file: https://github.com/torch/cutorch/blob/master/lib/THC/THCBlas.cu A similar issue appeared here with the same function call: https://groups.google.com/forum/#!topic/torch7/jIyveGldcE0 Still debating the workaround to this. I'll update the library ASAP. Best, Matt

eokeeffe commented 7 years ago

Just for anyone else, if you want this to work for you go into your torch directory (if cloned with git) enter the commands below:

git reset --hard 722262711ce35a73c9a2847c005a65d887e51f1e
./clean.sh
./install.sh

This version of torch works fine. Tested on Ubuntu 16.04

mdaiter commented 7 years ago

Thanks @eokeeffe !