From b0ad30800760f889507ffaf4ad5d81fb38915aa8 Mon Sep 17 00:00:00 2001 From: ming <2657262686@qq.com> Date: Fri, 16 Dec 2022 16:37:29 +0800 Subject: [PATCH] 优化makefile --- src/Makefile | 6 ++++-- src/main.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index f5ae7f7..d70884b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,12 +1,14 @@ XX = g++ -NVCC = nvcc + +CUDA_ROOT = /usr/local/cuda-11.1 +NVCC = $(CUDA_ROOT)/bin/nvcc PROJECT_ROOT= /mnt/e/fiss/FFNvDecoder DEPEND_DIR = $(PROJECT_ROOT)/bin SRC_ROOT = $(PROJECT_ROOT)/src -CUDA_ROOT = /usr/local/cuda + TARGET= $(DEPEND_DIR)/lib/test diff --git a/src/main.cpp b/src/main.cpp index 1df4833..b2cb6bd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -279,7 +279,7 @@ int main(){ std::this_thread::sleep_for(std::chrono::milliseconds(5000)); FFNvDecoderManager* pDecManager = FFNvDecoderManager::getInstance(); int count = pDecManager->count(); - cout << "当前运行路数: " << pDecManager->count() << endl; + cout << "当前时间:" << get_cur_time() << " 当前运行路数: " << pDecManager->count() << endl; if (count <= 0) { break; -- libgit2 0.21.4