]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Remove debug printf master
authorMichal Sojka <michal.sojka@cvut.cz>
Tue, 22 Jan 2019 08:46:11 +0000 (09:46 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 22 Jan 2019 08:46:11 +0000 (09:46 +0100)
src/dynmem.hpp

index 2d6235252310c26447e54e6b63189de2124cee0a..8e4964327899bbe0661ccc19d8b62c0bbb478181 100644 (file)
@@ -51,10 +51,9 @@ template <typename T> class DynMem_ {
     {
 #ifdef CUFFT
         ptr_h = reinterpret_cast<T*>(mmng.get(num_elem));
-        if (!ptr_h) {
-            printf("malloc(%zu)\n", num_elem);
+        if (!ptr_h)
             CudaSafeCall(cudaHostAlloc(reinterpret_cast<void **>(&ptr_h), num_elem * sizeof(T), cudaHostAllocMapped));
-       }
+
         CudaSafeCall(cudaHostGetDevicePointer(reinterpret_cast<void **>(&ptr_d), reinterpret_cast<void *>(ptr_h), 0));
 #else
         ptr_h = new T[num_elem];