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
538de238
Commit
538de238
authored
Apr 10, 2016
by
Davis King
Browse files
merged
parents
f9cb3150
5dad959a
Changes
2
Show 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 @
538de238
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
cmake_minimum_required
(
VERSION 2.8.4
)
cmake_minimum_required
(
VERSION 2.8.4
)
project
(
cuda_test
)
project
(
cuda_test
)
include_directories
(
..
)
add_definitions
(
-DDLIB_USE_CUDA
)
find_package
(
CUDA 7.5 REQUIRED
)
find_package
(
CUDA 7.5 REQUIRED
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11;-D__STRICT_ANSI__"
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11;-D__STRICT_ANSI__"
)
...
...
dlib/dnn/test_for_cuda/cuda_test.cu
View file @
538de238
// 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