Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis with no test #327

Closed
wants to merge 105 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
ce8482d
add travis file
jsaksris Jun 16, 2017
94151a5
fixed tab in travis
jsaksris Jun 16, 2017
bb83357
remove sudo in travis
jsaksris Jun 16, 2017
92fbfa7
remove sudo in travis
jsaksris Jun 16, 2017
747aefb
cmake stuff
jsaksris Jun 16, 2017
b88d481
fixed cmake version
jsaksris Jun 16, 2017
f6827b6
cmake thing
jsaksris Jun 16, 2017
9160b79
add ls
jsaksris Jun 16, 2017
499d7d1
don't care
jsaksris Jun 16, 2017
4eff2c8
don't care
jsaksris Jun 16, 2017
ba8823d
install cmake on travis
jsaksris Jun 16, 2017
4a0d393
test travis'
jsaksris Jun 16, 2017
27ed0e9
give it a little space
jsaksris Jun 16, 2017
7acb38f
Merge branch 'travis' into travis1
jsaksris Jun 16, 2017
ce978e2
add OS
jsaksris Jun 16, 2017
8b5bc38
load cmake on travis
jsaksris Jun 16, 2017
5c4de42
load cmake on travis
jsaksris Jun 16, 2017
39533a1
load cmake on travis
jsaksris Jun 16, 2017
1911fcf
load cmake on travis
jsaksris Jun 16, 2017
5fd885b
load cmake on travis
jsaksris Jun 16, 2017
c271a73
load cmake on travis
jsaksris Jun 16, 2017
cb612be
load cmake on travis
jsaksris Jun 16, 2017
fc8db17
change cmakelists.txt
jsaksris Jun 16, 2017
f122c67
change cmakelists.txt
jsaksris Jun 16, 2017
0317bcb
change cmakelists.txt
jsaksris Jun 16, 2017
f288f04
change cmakelists.txt
jsaksris Jun 16, 2017
cc49f11
mess with CMakeLists.txt
jsaksris Jun 16, 2017
a4dfe1c
mess with CMakeLists.txt
jsaksris Jun 16, 2017
2e95398
mess with CMakeLists.txt
jsaksris Jun 16, 2017
9313c32
mess with CMakeLists.txt
jsaksris Jun 16, 2017
e10d93a
mess with CMakeLists.txt
jsaksris Jun 16, 2017
4a424c1
mess with CMakeLists.txt
jsaksris Jun 16, 2017
4e61d5f
mess with CMakeLists.txt
jsaksris Jun 16, 2017
befa2c7
mess with CMakeLists.txt
jsaksris Jun 16, 2017
efba3b9
mess with CMakeLists.txt
jsaksris Jun 16, 2017
bcd96f1
add gcc update
jsaksris Jun 19, 2017
125099e
add apt-get
jsaksris Jun 19, 2017
652feef
postgresql stuff
jsaksris Jun 19, 2017
aa1975f
postgresql stuff
jsaksris Jun 19, 2017
d6a1aff
postgresql stuff
jsaksris Jun 19, 2017
29a4042
postgresql stuff
jsaksris Jun 19, 2017
77c2ecb
just update
jsaksris Jun 19, 2017
e955d49
update just the g++
jsaksris Jun 19, 2017
af7d998
just update2
jsaksris Jun 19, 2017
5c56198
no toolchain
jsaksris Jun 19, 2017
2028adc
no upgrade
jsaksris Jun 19, 2017
b43abf0
upgrade with ignore
jsaksris Jun 19, 2017
dab8213
upgrade only with eigen
jsaksris Jun 19, 2017
1691b01
add marking and no upgrade
jsaksris Jun 19, 2017
641f69c
add marking and no upgrade
jsaksris Jun 19, 2017
3581af7
add findmodules cmake
jsaksris Jun 19, 2017
2791696
just the system
jsaksris Jun 19, 2017
cfc032b
postgresql stuff
jsaksris Jun 19, 2017
4522aa1
postgresql stuff
jsaksris Jun 19, 2017
911a2ec
postgresql stuff no install
jsaksris Jun 19, 2017
9591657
no postgresql CPU only
jsaksris Jun 19, 2017
97fcd33
original no sql
jsaksris Jun 19, 2017
3e5f01c
solve eigen3
jsaksris Jun 19, 2017
ba6189b
cmake trace
jsaksris Jun 19, 2017
45638ac
install openCV
jsaksris Jun 19, 2017
26c3d77
trace on top
jsaksris Jun 19, 2017
9e01287
install boost
jsaksris Jun 19, 2017
97600e9
trace cmake
jsaksris Jun 19, 2017
bf9ed9a
boost static libs on
jsaksris Jun 19, 2017
e23a4bc
change boost version
jsaksris Jun 19, 2017
99c957f
install eigen3 lib
jsaksris Jun 20, 2017
89b6873
fixing if
jsaksris Jun 20, 2017
b51b635
install protoc
jsaksris Jun 20, 2017
1b0ed7d
install protoc
jsaksris Jun 20, 2017
6fed46e
gflags
jsaksris Jun 20, 2017
31a0265
BLAS
jsaksris Jun 20, 2017
d901b63
add include
jsaksris Jun 20, 2017
fdbba58
add path
jsaksris Jun 20, 2017
b53fd38
trying
jsaksris Jun 20, 2017
5c0ebf9
trying
jsaksris Jun 20, 2017
90dcd96
hdf5 install
jsaksris Jun 20, 2017
dd328c8
hdf5 install
jsaksris Jun 20, 2017
900d82b
update caffe
jsaksris Jun 20, 2017
3035bb4
hdf5
jsaksris Jun 20, 2017
c8949d4
DIR stuff
jsaksris Jun 20, 2017
22a2fac
test
jsaksris Jun 20, 2017
479cd23
test
jsaksris Jun 20, 2017
5bd3442
fix location
jsaksris Jun 20, 2017
1baaebf
fix location
jsaksris Jun 20, 2017
87ed8b1
absolute path
jsaksris Jun 20, 2017
912939a
absolute path
jsaksris Jun 20, 2017
6523cdb
finding absolute path
jsaksris Jun 20, 2017
cd648bb
got absolute path
jsaksris Jun 20, 2017
19e02ce
re-arrange
jsaksris Jun 20, 2017
67fad42
export the including lib
jsaksris Jun 20, 2017
b54df0f
test
jsaksris Jun 20, 2017
d3c9bdf
test
jsaksris Jun 20, 2017
7eb3f17
Merge branch 'travis2' into travis1
jsaksris Jun 20, 2017
9bdd0c2
Merge branch 'travis1' into backup
jsaksris Jun 20, 2017
9a4fda7
Merge branch 'master' of https://github.com/beniz/deepdetect
beniz Jun 12, 2017
8921ded
Merge branch 'master' of https://github.com/beniz/deepdetect
beniz Jun 12, 2017
15fa3e0
comeback
jsaksris Jun 26, 2017
1a8d52d
retry
jsaksris Jun 26, 2017
9417f0a
retry
jsaksris Jun 26, 2017
ea01576
retry
jsaksris Jun 26, 2017
1e831ef
retry
jsaksris Jun 26, 2017
41a0aaf
Merge branch 'backup' into travis1
jsaksris Jun 26, 2017
93ba74b
removed .travis.yml.orig
jsaksris Jun 26, 2017
cc8ff79
Merge branch 'master' into travis1
jsaksris Jun 26, 2017
5a1fe0b
Merge branch 'travis2' into travis1
jsaksris Jun 26, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: cpp
compiler: gcc
sudo: required
dist: trusty

before_install:
# - sudo apt-mark hold postgresql-9.3 postgresql-9.4 postgresql-9.5 postgresql-9.6
# - sudo apt-get update && sudo apt-get upgrade -y
- sudo apt-get install build-essential libgoogle-glog-dev libgflags-dev libeigen3-dev libopencv-dev libcppnetlib-dev libboost-dev libboost-iostreams-dev libcurlpp-dev libcurl4-openssl-dev protobuf-compiler libopenblas-dev libhdf5-dev libprotobuf-dev libleveldb-dev libsnappy-dev liblmdb-dev libutfcpp-dev

- pip install pyyaml

install:
- mkdir build
- cd build
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
- cmake -DBUILD_TESTS=ON ..
- make

before_script:
-
script:
-
notifications:
email:
on_success: always
on_failure: always
125 changes: 62 additions & 63 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,15 @@ configure_file(
# dependency on Eigen for confusion matrix fast computation
if (USE_TF)
else()
find_package(Eigen3 REQUIRED)
include_directories("${EIGEN3_INCLUDE_DIR}")
include_directories("${EIGEN3_INCLUDE_DIR}")
find_package(PkgConfig)
pkg_search_module(Eigen3 REQUIRED eigen3)
endif()

set(eigen_archive_hash "50812b426b7c")

#include_directories("$ENV{HOME}/include")

set(EIGEN3_INCLUDE_DIR ${CMAKE_BINARY_DIR}/tensorflow/src/tensorflow/dbuild/external/eigen_archive/eigen-eigen-${eigen_archive_hash} ${CMAKE_BINARY_DIR}/tensorflow/src/tensorflow/dbuild/external/eigen_archive)
set(EIGEN3_INCLUDE_DIR ${CMAKE_BINARY_DIR}/tensorflow/src/tensorflow/dbuild/external/eigen_archive/eigen-eigen-${eigen_archive_hash} ${CMAKE_BINARY_DIR}/tensorflow/src/tensorflow/dbuild/external/eigen_archive /usr/include/eigen3)
include_directories("${EIGEN3_INCLUDE_DIR}")

# dependency on Boost
Expand Down Expand Up @@ -122,78 +121,78 @@ else()
if (CUDA_ARCH)
else()
if (NOT ${CUDA_VERSION} MATCHES "8.0")
set(CUDA_ARCH "-gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52")
set(CUDA_ARCH "-gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52")
else()
set(CUDA_ARCH "-gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_61,code=compute_61")
set(CUDA_ARCH "-gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_61,code=compute_61")
endif()
endif()
if (HAVE_CUDNN AND USE_CUDNN)
if (USE_TF)
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
URL https://github.com/beniz/caffe/archive/master.tar.gz
CONFIGURE_COMMAND ln -sf Makefile.config.gpu.cudnn Makefile.config && echo "OPENCV_VERSION:=${OPENCV_VERSION}" >> Makefile.config && ${CMAKE_COMMAND} -E env PATH=${CMAKE_BINARY_DIR}/protobuf/bin:$ENV{PATH} make CUDA_ARCH=${CUDA_ARCH} -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
else() # USE_TF
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
URL https://github.com/beniz/caffe/archive/master.tar.gz
CONFIGURE_COMMAND ln -sf Makefile.config.gpu.cudnn Makefile.config && echo "OPENCV_VERSION:=${OPENCV_VERSION}" >> Makefile.config && make CUDA_ARCH=${CUDA_ARCH} -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND wget https://github.com/beniz/caffe/archive/master.tar.gz && tar xfz master.tar.gz --strip-components=1 -C caffe_dd
CONFIGURE_COMMAND ln -sf Makefile.config.gpu.cudnn Makefile.config && echo -e "OPENCV_VERSION:=${OPENCV_VERSION}\\nINCLUDE_DIRS += /usr/include:${INCLUDE_DIRS}" >> Makefile.config && ${CMAKE_COMMAND} -E env PATH=${CMAKE_BINARY_DIR}/protobuf/bin:$ENV{PATH} make CUDA_ARCH=${CUDA_ARCH} -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
else() # !USE_TF
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND wget https://github.com/beniz/caffe/archive/master.tar.gz && tar xfz master.tar.gz --strip-components=1 -C caffe_dd
CONFIGURE_COMMAND ln -sf Makefile.config.gpu.cudnn Makefile.config && echo -e "OPENCV_VERSION:=${OPENCV_VERSION}\\nINCLUDE_DIRS += /usr/include:${INCLUDE_DIRS}" >> Makefile.config && make CUDA_ARCH=${CUDA_ARCH} -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
endif()
else() # HAVE_CUDNN
else() # !HAVE_CUDNN
if (USE_TF)
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
URL https://github.com/beniz/caffe/archive/master.tar.gz
CONFIGURE_COMMAND ln -sf Makefile.config.gpu Makefile.config && echo "OPENCV_VERSION:=${OPENCV_VERSION}" >> Makefile.config && ${CMAKE_COMMAND} -E env PATH=${CMAKE_BINARY_DIR}/protobuf/bin:$ENV{PATH} make CUDA_ARCH=${CUDA_ARCH} -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
else() # USE_TF
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
URL https://github.com/beniz/caffe/archive/master.tar.gz
CONFIGURE_COMMAND ln -sf Makefile.config.gpu Makefile.config && echo "OPENCV_VERSION:=${OPENCV_VERSION}" >> Makefile.config && make CUDA_ARCH=${CUDA_ARCH} -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND wget https://github.com/beniz/caffe/archive/master.tar.gz && tar xfz master.tar.gz --strip-components=1 -C caffe_dd
CONFIGURE_COMMAND ln -sf Makefile.config.gpu Makefile.config && echo -e "OPENCV_VERSION:=${OPENCV_VERSION}\\nINCLUDE_DIRS += /usr/include:${INCLUDE_DIRS}" >> Makefile.config && ${CMAKE_COMMAND} -E env PATH=${CMAKE_BINARY_DIR}/protobuf/bin:$ENV{PATH} make -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
else() # !USE_TF && !HAVE_CUDNN
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND wget https://github.com/beniz/caffe/archive/master.tar.gz && tar xfz master.tar.gz --strip-components=1 -C caffe_dd
CONFIGURE_COMMAND ln -sf Makefile.config.gpu Makefile.config && echo -e "OPENCV_VERSION:=${OPENCV_VERSION}\\nINCLUDE_DIRS += /usr/include:${INCLUDE_DIRS}" >> Makefile.config && make -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
endif()
endif() # HAVE_CUDNN
else() # CUDA_FOUND
else() #!CUDA_FOUND
add_definitions(-DUSE_CAFFE_CPU_ONLY)
if (USE_TF)
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
URL https://github.com/beniz/caffe/archive/master.tar.gz
CONFIGURE_COMMAND ln -sf Makefile.config.cpu Makefile.config && echo "OPENCV_VERSION:=${OPENCV_VERSION}" >> Makefile.config && ${CMAKE_COMMAND} -E env PATH=${CMAKE_BINARY_DIR}/protobuf/bin:$ENV{PATH} make -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
else() # USE_TF
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND wget https://github.com/beniz/caffe/archive/master.tar.gz && tar xfz master.tar.gz --strip-components=1 -C caffe_dd
CONFIGURE_COMMAND ln -sf Makefile.config.cpu Makefile.config && echo -e "OPENCV_VERSION:=${OPENCV_VERSION}\\nINCLUDE_DIRS += /usr/include:${INCLUDE_DIRS}" >> Makefile.config && ${CMAKE_COMMAND} -E env PATH=${CMAKE_BINARY_DIR}/protobuf/bin:$ENV{PATH} make -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
else() # !USE_TF
ExternalProject_Add(
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
URL https://github.com/beniz/caffe/archive/master.tar.gz
CONFIGURE_COMMAND ln -sf Makefile.config.cpu Makefile.config && echo "OPENCV_VERSION:=${OPENCV_VERSION}" >> Makefile.config && make -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
caffe_dd
PREFIX caffe_dd
INSTALL_DIR ${CMAKE_BINARY_DIR}
DOWNLOAD_COMMAND wget https://github.com/beniz/caffe/archive/master.tar.gz && tar xfz master.tar.gz --strip-components=1 -C caffe_dd
CONFIGURE_COMMAND ln -sf Makefile.config.cpu Makefile.config && echo -e "OPENCV_VERSION:=${OPENCV_VERSION}\\nINCLUDE_DIRS += /usr/include:${INCLUDE_DIRS}" >> Makefile.config && make -j${N}
INSTALL_COMMAND ""
BUILD_IN_SOURCE 1
)
endif()
endif()
if (CUDA_FOUND)
Expand Down
61 changes: 60 additions & 1 deletion cmake/Cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,65 @@ macro(deepdetect_list_unique)
endmacro()

################################################################################################
# Helper function to detect Darwin version, i.e. 10.8, 10.9, 10.10, ....
# Usage:
# deepdetect_detect_darwin_version(<version_variable>)
function(deepdetect_detect_darwin_version output_var)
if(APPLE)
execute_process(COMMAND /usr/bin/sw_vers -productVersion
RESULT_VARIABLE __sw_vers OUTPUT_VARIABLE __sw_vers_out
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)

set(${output_var} ${__sw_vers_out} PARENT_SCOPE)
else()
set(${output_var} "" PARENT_SCOPE)
endif()
endfunction()

########################################################################################################
# An option that the user can select. Can accept condition to control when option is available for user.
# Usage:
# deepdetect_option(<option_variable> "doc string" <initial value or boolean expression> [IF <condition>])
function(deepdetect_option variable description value)
set(__value ${value})
set(__condition "")
set(__varname "__value")
foreach(arg ${ARGN})
if(arg STREQUAL "IF" OR arg STREQUAL "if")
set(__varname "__condition")
else()
list(APPEND ${__varname} ${arg})
endif()
endforeach()
unset(__varname)
if("${__condition}" STREQUAL "")
set(__condition 2 GREATER 1)
endif()

if(${__condition})
if("${__value}" MATCHES ";")
if(${__value})
option(${variable} "${description}" ON)
else()
option(${variable} "${description}" OFF)
endif()
elseif(DEFINED ${__value})
if(${__value})
option(${variable} "${description}" ON)
else()
option(${variable} "${description}" OFF)
endif()
else()
option(${variable} "${description}" ${__value})
endif()
else()
unset(${variable} CACHE)
endif()
endfunction()


################################################################################################

# Function for selecting GPU arch flags for nvcc based on CUDA_ARCH_NAME
# Usage:
# deepdetect_select_nvcc_arch_flags(out_variable)
Expand Down Expand Up @@ -139,7 +198,7 @@ function(deepdetect_select_nvcc_arch_flags out_variable)
endfunction()

################################################################################################
# Short command for cuda comnpilation
# Short command for cuda compilation
# Usage:
# deepdetect_cuda_compile(<objlist_variable> <cuda_files>)
macro(deepdetect_cuda_compile objlist_variable)
Expand Down