Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
5dad959a
Commit
5dad959a
authored
Apr 09, 2016
by
Davis King
Browse files
Made the cuda test include some header files to make it a little more
realistic.
parent
c81825c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
dlib/dnn/test_for_cuda/CMakeLists.txt
dlib/dnn/test_for_cuda/CMakeLists.txt
+12
-9
dlib/dnn/test_for_cuda/cuda_test.cu
dlib/dnn/test_for_cuda/cuda_test.cu
+2
-1
No files found.
dlib/dnn/test_for_cuda/CMakeLists.txt
View file @
5dad959a
cmake_minimum_required
(
VERSION 2.8.4
)
cmake_minimum_required
(
VERSION 2.8.4
)
project
(
cuda_test
)
project
(
cuda_test
)
find_package
(
CUDA 7.0 REQUIRED
)
include_directories
(
..
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
add_definitions
(
-DDLIB_USE_CUDA
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11;-D__STRICT_ANSI__"
)
find_package
(
CUDA 7.0 REQUIRED
)
cuda_add_library
(
cuda_test STATIC cuda_test.cu
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11;-D__STRICT_ANSI__"
)
cuda_add_library
(
cuda_test STATIC cuda_test.cu
)
dlib/dnn/test_for_cuda/cuda_test.cu
View file @
5dad959a
// Copyright (C) 2015 Davis E. King (davis@dlib.net)
// Copyright (C) 2015 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
// License: Boost Software License See LICENSE.txt for the full license.
#include <cuda_runtime.h>
#include "cuda_utils.h"
#include "cuda_dlib.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