Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
592361ed
Commit
592361ed
authored
Apr 06, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the CUDA stuff into its own folder.
parent
49a5d39d
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
28 additions
and
28 deletions
+28
-28
CMakeLists.txt
dlib/CMakeLists.txt
+9
-9
source.cpp
dlib/all/source.cpp
+2
-2
CMakeLists.txt
dlib/cmake_utils/test_for_cuda/CMakeLists.txt
+1
-1
CMakeLists.txt
dlib/cmake_utils/test_for_cudnn/CMakeLists.txt
+1
-1
cpu_dlib.cpp
dlib/cuda/cpu_dlib.cpp
+0
-0
cpu_dlib.h
dlib/cuda/cpu_dlib.h
+0
-0
cublas_dlibapi.cpp
dlib/cuda/cublas_dlibapi.cpp
+0
-0
cublas_dlibapi.h
dlib/cuda/cublas_dlibapi.h
+0
-0
cuda_data_ptr.cpp
dlib/cuda/cuda_data_ptr.cpp
+0
-0
cuda_data_ptr.h
dlib/cuda/cuda_data_ptr.h
+0
-0
cuda_dlib.cu
dlib/cuda/cuda_dlib.cu
+0
-0
cuda_dlib.h
dlib/cuda/cuda_dlib.h
+0
-0
cuda_errors.h
dlib/cuda/cuda_errors.h
+0
-0
cuda_utils.h
dlib/cuda/cuda_utils.h
+0
-0
cudnn_dlibapi.cpp
dlib/cuda/cudnn_dlibapi.cpp
+0
-0
cudnn_dlibapi.h
dlib/cuda/cudnn_dlibapi.h
+0
-0
curand_dlibapi.cpp
dlib/cuda/curand_dlibapi.cpp
+0
-0
curand_dlibapi.h
dlib/cuda/curand_dlibapi.h
+0
-0
cusolver_dlibapi.cu
dlib/cuda/cusolver_dlibapi.cu
+0
-0
cusolver_dlibapi.h
dlib/cuda/cusolver_dlibapi.h
+0
-0
gpu_data.cpp
dlib/cuda/gpu_data.cpp
+0
-0
gpu_data.h
dlib/cuda/gpu_data.h
+0
-0
gpu_data_abstract.h
dlib/cuda/gpu_data_abstract.h
+0
-0
tensor.h
dlib/cuda/tensor.h
+0
-0
tensor_abstract.h
dlib/cuda/tensor_abstract.h
+0
-0
tensor_tools.cpp
dlib/cuda/tensor_tools.cpp
+0
-0
tensor_tools.h
dlib/cuda/tensor_tools.h
+0
-0
dnn.h
dlib/dnn.h
+3
-3
core.h
dlib/dnn/core.h
+2
-2
core_abstract.h
dlib/dnn/core_abstract.h
+1
-1
input.h
dlib/dnn/input.h
+1
-1
layers.h
dlib/dnn/layers.h
+2
-2
layers_abstract.h
dlib/dnn/layers_abstract.h
+1
-1
loss.h
dlib/dnn/loss.h
+1
-1
solvers.h
dlib/dnn/solvers.h
+1
-1
solvers_abstract.h
dlib/dnn/solvers_abstract.h
+1
-1
trainer.h
dlib/dnn/trainer.h
+1
-1
cublas.cpp
dlib/test/cublas.cpp
+1
-1
No files found.
dlib/CMakeLists.txt
View file @
592361ed
...
...
@@ -254,8 +254,8 @@ if (NOT TARGET dlib)
threads/async.cpp
timer/timer.cpp
stack_trace.cpp
dnn
/cpu_dlib.cpp
dnn
/tensor_tools.cpp
cuda
/cpu_dlib.cpp
cuda
/tensor_tools.cpp
)
if
(
UNIX
)
...
...
@@ -657,13 +657,13 @@ if (NOT TARGET dlib)
if
(
CUDA_FOUND AND cudnn
AND
(
NOT USING_OLD_VISUAL_STUDIO_COMPILER
)
AND cuda_test_compile_worked AND cudnn_test_compile_worked AND cudnn_include
)
set
(
source_files
${
source_files
}
dnn
/cuda_dlib.cu
dnn
/cudnn_dlibapi.cpp
dnn
/cublas_dlibapi.cpp
dnn
/cusolver_dlibapi.cu
dnn
/curand_dlibapi.cpp
dnn
/cuda_data_ptr.cpp
dnn
/gpu_data.cpp
cuda
/cuda_dlib.cu
cuda
/cudnn_dlibapi.cpp
cuda
/cublas_dlibapi.cpp
cuda
/cusolver_dlibapi.cu
cuda
/curand_dlibapi.cpp
cuda
/cuda_data_ptr.cpp
cuda
/gpu_data.cpp
)
set
(
dlib_needed_libraries
${
dlib_needed_libraries
}
${
CUDA_CUBLAS_LIBRARIES
}
...
...
dlib/all/source.cpp
View file @
592361ed
...
...
@@ -79,8 +79,8 @@
#include "../gui_core/gui_core_kernel_2.cpp"
#endif // DLIB_NO_GUI_SUPPORT
#include "../
dnn
/cpu_dlib.cpp"
#include "../
dnn
/tensor_tools.cpp"
#include "../
cuda
/cpu_dlib.cpp"
#include "../
cuda
/tensor_tools.cpp"
#endif // DLIB_ISO_CPP_ONLY
...
...
dlib/cmake_utils/test_for_cuda/CMakeLists.txt
View file @
592361ed
...
...
@@ -2,7 +2,7 @@
cmake_minimum_required
(
VERSION 2.8.12
)
project
(
cuda_test
)
include_directories
(
../../
dnn
)
include_directories
(
../../
cuda
)
add_definitions
(
-DDLIB_USE_CUDA
)
# Override the FindCUDA.cmake setting to avoid duplication of host flags if using a toolchain:
...
...
dlib/cmake_utils/test_for_cudnn/CMakeLists.txt
View file @
592361ed
...
...
@@ -14,6 +14,6 @@ include(find_cudnn.txt)
if
(
cudnn_include AND cudnn
)
include_directories
(
${
cudnn_include
}
)
cuda_add_library
(
cudnn_test STATIC ../../
dnn
/cudnn_dlibapi.cpp
${
cudnn
}
)
cuda_add_library
(
cudnn_test STATIC ../../
cuda
/cudnn_dlibapi.cpp
${
cudnn
}
)
enable_cpp11_for_target
(
cudnn_test
)
endif
()
dlib/
dnn
/cpu_dlib.cpp
→
dlib/
cuda
/cpu_dlib.cpp
View file @
592361ed
File moved
dlib/
dnn
/cpu_dlib.h
→
dlib/
cuda
/cpu_dlib.h
View file @
592361ed
File moved
dlib/
dnn
/cublas_dlibapi.cpp
→
dlib/
cuda
/cublas_dlibapi.cpp
View file @
592361ed
File moved
dlib/
dnn
/cublas_dlibapi.h
→
dlib/
cuda
/cublas_dlibapi.h
View file @
592361ed
File moved
dlib/
dnn
/cuda_data_ptr.cpp
→
dlib/
cuda
/cuda_data_ptr.cpp
View file @
592361ed
File moved
dlib/
dnn
/cuda_data_ptr.h
→
dlib/
cuda
/cuda_data_ptr.h
View file @
592361ed
File moved
dlib/
dnn
/cuda_dlib.cu
→
dlib/
cuda
/cuda_dlib.cu
View file @
592361ed
File moved
dlib/
dnn
/cuda_dlib.h
→
dlib/
cuda
/cuda_dlib.h
View file @
592361ed
File moved
dlib/
dnn
/cuda_errors.h
→
dlib/
cuda
/cuda_errors.h
View file @
592361ed
File moved
dlib/
dnn
/cuda_utils.h
→
dlib/
cuda
/cuda_utils.h
View file @
592361ed
File moved
dlib/
dnn
/cudnn_dlibapi.cpp
→
dlib/
cuda
/cudnn_dlibapi.cpp
View file @
592361ed
File moved
dlib/
dnn
/cudnn_dlibapi.h
→
dlib/
cuda
/cudnn_dlibapi.h
View file @
592361ed
File moved
dlib/
dnn
/curand_dlibapi.cpp
→
dlib/
cuda
/curand_dlibapi.cpp
View file @
592361ed
File moved
dlib/
dnn
/curand_dlibapi.h
→
dlib/
cuda
/curand_dlibapi.h
View file @
592361ed
File moved
dlib/
dnn
/cusolver_dlibapi.cu
→
dlib/
cuda
/cusolver_dlibapi.cu
View file @
592361ed
File moved
dlib/
dnn
/cusolver_dlibapi.h
→
dlib/
cuda
/cusolver_dlibapi.h
View file @
592361ed
File moved
dlib/
dnn
/gpu_data.cpp
→
dlib/
cuda
/gpu_data.cpp
View file @
592361ed
File moved
dlib/
dnn
/gpu_data.h
→
dlib/
cuda
/gpu_data.h
View file @
592361ed
File moved
dlib/
dnn
/gpu_data_abstract.h
→
dlib/
cuda
/gpu_data_abstract.h
View file @
592361ed
File moved
dlib/
dnn
/tensor.h
→
dlib/
cuda
/tensor.h
View file @
592361ed
File moved
dlib/
dnn
/tensor_abstract.h
→
dlib/
cuda
/tensor_abstract.h
View file @
592361ed
File moved
dlib/
dnn
/tensor_tools.cpp
→
dlib/
cuda
/tensor_tools.cpp
View file @
592361ed
File moved
dlib/
dnn
/tensor_tools.h
→
dlib/
cuda
/tensor_tools.h
View file @
592361ed
File moved
dlib/dnn.h
View file @
592361ed
...
...
@@ -9,7 +9,7 @@
# pragma warning( disable: 4503 )
#endif
#include "
dnn
/tensor.h"
#include "
cuda
/tensor.h"
#include "dnn/input.h"
// Problem: Visual Studio's vcpkgsrv.exe constantly uses a single CPU core,
...
...
@@ -27,8 +27,8 @@
#include "dnn/core.h"
#include "dnn/solvers.h"
#include "dnn/trainer.h"
#include "
dnn
/cpu_dlib.h"
#include "
dnn
/tensor_tools.h"
#include "
cuda
/cpu_dlib.h"
#include "
cuda
/tensor_tools.h"
#include "dnn/utilities.h"
#include "dnn/validation.h"
...
...
dlib/dnn/core.h
View file @
592361ed
...
...
@@ -4,7 +4,7 @@
#define DLIB_DNn_CORE_H_
#include "core_abstract.h"
#include "tensor.h"
#include "
../cuda/
tensor.h"
#include <iterator>
#include <memory>
#include <sstream>
...
...
@@ -16,7 +16,7 @@
#include <tuple>
#include <cmath>
#include <vector>
#include "tensor_tools.h"
#include "
../cuda/
tensor_tools.h"
#include <type_traits>
#include "../metaprogramming.h"
...
...
dlib/dnn/core_abstract.h
View file @
592361ed
...
...
@@ -3,7 +3,7 @@
#undef DLIB_DNn_CORE_ABSTRACT_H_
#ifdef DLIB_DNn_CORE_ABSTRACT_H_
#include "tensor_abstract.h"
#include "
../cuda/
tensor_abstract.h"
#include <memory>
#include <type_traits>
#include <tuple>
...
...
dlib/dnn/input.h
View file @
592361ed
...
...
@@ -10,7 +10,7 @@
#include "../image_processing.h"
#include <sstream>
#include <array>
#include "tensor_tools.h"
#include "
../cuda/
tensor_tools.h"
namespace
dlib
...
...
dlib/dnn/layers.h
View file @
592361ed
...
...
@@ -4,13 +4,13 @@
#define DLIB_DNn_LAYERS_H_
#include "layers_abstract.h"
#include "tensor.h"
#include "
../cuda/
tensor.h"
#include "core.h"
#include <iostream>
#include <string>
#include "../rand.h"
#include "../string.h"
#include "tensor_tools.h"
#include "
../cuda/
tensor_tools.h"
#include "../vectorstream.h"
#include "utilities.h"
#include <sstream>
...
...
dlib/dnn/layers_abstract.h
View file @
592361ed
...
...
@@ -3,7 +3,7 @@
#undef DLIB_DNn_LAYERS_ABSTRACT_H_
#ifdef DLIB_DNn_LAYERS_ABSTRACT_H_
#include "tensor_abstract.h"
#include "
../cuda/
tensor_abstract.h"
#include "core_abstract.h"
...
...
dlib/dnn/loss.h
View file @
592361ed
...
...
@@ -6,7 +6,7 @@
#include "loss_abstract.h"
#include "core.h"
#include "../matrix.h"
#include "tensor_tools.h"
#include "
../cuda/
tensor_tools.h"
#include "../geometry.h"
#include "../image_processing/box_overlap_testing.h"
#include "../image_processing/full_object_detection.h"
...
...
dlib/dnn/solvers.h
View file @
592361ed
...
...
@@ -4,7 +4,7 @@
#define DLIB_DNn_SOLVERS_H_
#include "solvers_abstract.h"
#include "tensor.h"
#include "
../cuda/
tensor.h"
#include <iostream>
#include "layers.h"
...
...
dlib/dnn/solvers_abstract.h
View file @
592361ed
...
...
@@ -3,7 +3,7 @@
#undef DLIB_DNn_SOLVERS_ABSTRACT_H_
#ifdef DLIB_DNn_SOLVERS_ABSTRACT_H_
#include "tensor_abstract.h"
#include "
../cuda/
tensor_abstract.h"
#include <iostream>
namespace
dlib
...
...
dlib/dnn/trainer.h
View file @
592361ed
...
...
@@ -14,7 +14,7 @@
#include "../pipe.h"
#include "../threads.h"
#include "cuda_dlib.h"
#include "
../cuda/
cuda_dlib.h"
#include "../statistics/running_gradient.h"
#include <atomic>
#include <cstdio>
...
...
dlib/test/cublas.cpp
View file @
592361ed
...
...
@@ -8,7 +8,7 @@
#include <cstdlib>
#include <ctime>
#include <vector>
#include "../
dnn
/tensor_tools.h"
#include "../
cuda
/tensor_tools.h"
#include "tester.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment