projects
/
platform
/
upstream
/
caffeonacl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b62555a
)
syncedmem bugfix
author
Yangqing Jia
<jiayq84@gmail.com>
Mon, 28 Oct 2013 18:29:03 +0000
(11:29 -0700)
committer
Yangqing Jia
<jiayq84@gmail.com>
Mon, 28 Oct 2013 18:29:03 +0000
(11:29 -0700)
include/caffe/syncedmem.hpp
patch
|
blob
|
history
diff --git
a/include/caffe/syncedmem.hpp
b/include/caffe/syncedmem.hpp
index
1229adb
..
539f0d4
100644
(file)
--- a/
include/caffe/syncedmem.hpp
+++ b/
include/caffe/syncedmem.hpp
@@
-20,9
+20,9
@@
inline void CaffeMallocHost(void** ptr, size_t size) {
inline void CaffeFreeHost(void* ptr) {
if (Caffe::mode() == Caffe::GPU) {
- CUDA_CHECK(cudaFreeHost(ptr))
)
;
+ CUDA_CHECK(cudaFreeHost(ptr));
} else {
- free(ptr)
+ free(ptr)
;
}
}