diff --git a/unit_tests/Test_AvgPoolingImpl.cpp b/unit_tests/Test_AvgPoolingImpl.cpp index 4ad761a588ec6a9c5d4edaa1511d6d216670a35d..b658ee759d946249c7fc3c56c80dfa367fa0371f 100644 --- a/unit_tests/Test_AvgPoolingImpl.cpp +++ b/unit_tests/Test_AvgPoolingImpl.cpp @@ -236,8 +236,8 @@ TEST_CASE("[gpu/operator] AvgPooling(forward)", "[AvgPooling][GPU]") delete[] array0; cudaFree(array0_d); } - fmt::print("INFO: Number of elements over time spent: {}\n", number_of_operation / duration.count()); - fmt::print("INFO: Total time: {}μs\n", duration.count()); + Log::info("Number of elements over time spent: {}\n", number_of_operation / duration.count()); + Log::info("Total time: {}μs\n", duration.count()); } } diff --git a/unit_tests/Test_GlobalAveragePoolingImpl.cpp b/unit_tests/Test_GlobalAveragePoolingImpl.cpp index fb67fa5b1472ac4c22bf4bdbbd703d1a31024a0e..5c13f45bc40d3aaa874209f2475468e9b59d500e 100644 --- a/unit_tests/Test_GlobalAveragePoolingImpl.cpp +++ b/unit_tests/Test_GlobalAveragePoolingImpl.cpp @@ -178,8 +178,8 @@ TEST_CASE("[gpu/operator] GlobalAveragePooling", delete[] array0; cudaFree(array0_d); } - fmt::print("INFO: Number of elements over time spent: {}\n", number_of_operation / duration.count()); - fmt::print("INFO: Total time: {}μs\n", duration.count()); + Log::info("Number of elements over time spent: {}\n", number_of_operation / duration.count()); + Log::info("Total time: {}μs\n", duration.count()); } } } // namespace Aidge diff --git a/unit_tests/Test_MaxPoolingImpl.cpp b/unit_tests/Test_MaxPoolingImpl.cpp index e6fcc80157d921bbd10d5f3e99ee7312e3fa3406..0474a70dee755ccb1830a7ac27761fbf522e1260 100644 --- a/unit_tests/Test_MaxPoolingImpl.cpp +++ b/unit_tests/Test_MaxPoolingImpl.cpp @@ -193,7 +193,7 @@ TEST_CASE("[gpu/operator] MaxPooling(forward)", "[MaxPooling][GPU]") { delete[] array0; cudaFree(array0_d); } - fmt::print("INFO: Number of elements over time spent: {}\n", number_of_operation / duration.count()); - fmt::print("INFO: Total time: {}μs\n", duration.count()); + Log::info("Number of elements over time spent: {}\n", number_of_operation / duration.count()); + Log::info("Total time: {}μs\n", duration.count()); } } \ No newline at end of file diff --git a/unit_tests/Test_PowImpl.cpp b/unit_tests/Test_PowImpl.cpp index 60629cadd4d3005d5eff8a9b310c092a1d60a68d..78be1ca2c92ccb7fc444dbbfa4ea53e0894c99f1 100644 --- a/unit_tests/Test_PowImpl.cpp +++ b/unit_tests/Test_PowImpl.cpp @@ -148,8 +148,8 @@ TEST_CASE("[gpu/operator] Pow", "[Pow][GPU]") { cudaFree(array0_d); cudaFree(array1_d); } - fmt::print("INFO: Number of elements over time spent: {}\n", number_of_operation / duration.count()); - fmt::print("INFO: Total time: {}μs\n", duration.count()); + Log::info("Number of elements over time spent: {}\n", number_of_operation / duration.count()); + Log::info("Total time: {}μs\n", duration.count()); } SECTION("+1-D Tensor / +1-D Tensor - broadcasting") { @@ -256,8 +256,8 @@ TEST_CASE("[gpu/operator] Pow", "[Pow][GPU]") { const std::size_t nb_elements = std::accumulate(dimsOut.cbegin(), dimsOut.cend(), std::size_t(1), std::multiplies<std::size_t>()); number_of_operation += nb_elements; } - fmt::print("INFO: Number of elements over time spent: {}\n", number_of_operation / duration.count()); - fmt::print("INFO: Total time: {}μs\n", duration.count()); + Log::info("Number of elements over time spent: {}\n", number_of_operation / duration.count()); + Log::info("Total time: {}μs\n", duration.count()); } SECTION("+1-D Tensor / 1-D Tensor") { // Create Pow Operator @@ -361,8 +361,8 @@ TEST_CASE("[gpu/operator] Pow", "[Pow][GPU]") { const std::size_t nb_elements = std::accumulate(dimsOut.cbegin(), dimsOut.cend(), std::size_t(1), std::multiplies<std::size_t>()); number_of_operation += nb_elements; } - fmt::print("INFO: Number of elements over time spent: {}\n", number_of_operation / duration.count()); - fmt::print("INFO: Total time: {}μs\n", duration.count()); + Log::info("Number of elements over time spent: {}\n", number_of_operation / duration.count()); + Log::info("Total time: {}μs\n", duration.count()); } } } diff --git a/unit_tests/Test_ReLUImpl.cpp b/unit_tests/Test_ReLUImpl.cpp index 58a395319685b59802d165123bed3b50c27ada20..d55ccd1c1ca17e2992ac2178f556a178914694b8 100644 --- a/unit_tests/Test_ReLUImpl.cpp +++ b/unit_tests/Test_ReLUImpl.cpp @@ -174,7 +174,7 @@ TEST_CASE("[gpu/operator] ReLU(forward)", "[ReLU][GPU]") { delete[] input_h; cudaFree(input_d); } - fmt::print("INFO: Number of elements over time spent: {}\n", number_of_operation / duration.count()); - fmt::print("INFO: Total time: {}μs\n", duration.count()); + Log::info("Number of elements over time spent: {}\n", number_of_operation / duration.count()); + Log::info("Total time: {}μs\n", duration.count()); } } diff --git a/unit_tests/Test_ReshapeImpl.cpp b/unit_tests/Test_ReshapeImpl.cpp index 60828ad53becaa180e50b2f148618a0698de1ed7..d62fc4625c51ff4affb207d8dd7c30d0661ad294 100644 --- a/unit_tests/Test_ReshapeImpl.cpp +++ b/unit_tests/Test_ReshapeImpl.cpp @@ -185,8 +185,8 @@ TEST_CASE("[gpu/operator] Reshape(forward)") { delete[] array0; cudaFree(array0_d); } - fmt::print("INFO: Number of elements over time spent: {}\n", number_of_operation / duration.count()); - fmt::print("INFO: Total time: {}μs\n", duration.count()); + Log::info("Number of elements over time spent: {}\n", number_of_operation / duration.count()); + Log::info("Total time: {}μs\n", duration.count()); } } diff --git a/unit_tests/Test_SqrtImpl.cpp b/unit_tests/Test_SqrtImpl.cpp index c381b69d4ff13edbe84d4fec6d90bb8b911db89a..934cb0949be2ea110758a916846afbcfc85cec70 100644 --- a/unit_tests/Test_SqrtImpl.cpp +++ b/unit_tests/Test_SqrtImpl.cpp @@ -116,7 +116,7 @@ constexpr std::uint16_t NBTRIALS = 10; delete[] array0; cudaFree(array0_d); } - fmt::print("INFO: Number of elements over time spent: {}\n", number_of_operation / duration.count()); - fmt::print("INFO: Total time: {}μs\n", duration.count()); + Log::info("Number of elements over time spent: {}\n", number_of_operation / duration.count()); + Log::info("Total time: {}μs\n", duration.count()); } } // namespace Aidge