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
989e72e0
"tests/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "3d6548432370060f4e231e0d0edb5df4b0318d12"
Commit
989e72e0
authored
Jan 22, 2018
by
Davis King
Browse files
Added global properties that tell how dlib was compiled.
parent
70225783
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
tools/python/src/dlib.cpp
tools/python/src/dlib.cpp
+27
-0
No files found.
tools/python/src/dlib.cpp
View file @
989e72e0
...
@@ -43,6 +43,33 @@ PYBIND11_MODULE(dlib, m)
...
@@ -43,6 +43,33 @@ PYBIND11_MODULE(dlib, m)
#define DLIB_QUOTE_STRING2(x) #x
#define DLIB_QUOTE_STRING2(x) #x
m
.
attr
(
"__version__"
)
=
DLIB_QUOTE_STRING
(
DLIB_VERSION
);
m
.
attr
(
"__version__"
)
=
DLIB_QUOTE_STRING
(
DLIB_VERSION
);
#ifdef DLIB_USE_CUDA
m
.
attr
(
"DLIB_USE_CUDA"
)
=
true
;
#else
m
.
attr
(
"DLIB_USE_CUDA"
)
=
false
;
#endif
#ifdef DLIB_USE_BLAS
m
.
attr
(
"DLIB_USE_BLAS"
)
=
true
;
#else
m
.
attr
(
"DLIB_USE_BLAS"
)
=
false
;
#endif
#ifdef DLIB_USE_LAPACK
m
.
attr
(
"DLIB_USE_LAPACK"
)
=
true
;
#else
m
.
attr
(
"DLIB_USE_LAPACK"
)
=
false
;
#endif
#ifdef DLIB_HAVE_AVX
m
.
attr
(
"USE_AVX_INSTRUCTIONS"
)
=
true
;
#else
m
.
attr
(
"USE_AVX_INSTRUCTIONS"
)
=
false
;
#endif
#ifdef DLIB_HAVE_NEON
m
.
attr
(
"USE_NEON_INSTRUCTIONS"
)
=
true
;
#else
m
.
attr
(
"USE_NEON_INSTRUCTIONS"
)
=
false
;
#endif
bind_matrix
(
m
);
bind_matrix
(
m
);
bind_vector
(
m
);
bind_vector
(
m
);
...
...
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