From 5f87ddf7133f2f86bdae6a08c926ed80a70003ec Mon Sep 17 00:00:00 2001 From: noone <365867978@qq.com> Date: Tue, 2 May 2023 23:06:57 -0700 Subject: [PATCH] fixed compilation on 3090 --- CMakeLists.txt | 2 +- docker/run_container.sh | 2 +- src/Utils.cpp | 5 ----- src/Utils.h | 3 --- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ddc2485..dfc919f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(BundleTrack) set(CMAKE_BUILD_TYPE Release) add_compile_options(-std=c++14 -fpermissive -fPIC -g) -set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcompiler;-fPIC;-gencode arch=compute_30,code=sm_30;-gencode arch=compute_61,code=sm_61;-gencode arch=compute_75,code=sm_75;-O3;-std=c++11;-use_fast_math;--default-stream per-thread) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcompiler;-fPIC;-gencode arch=compute_61,code=sm_61;-gencode arch=compute_75,code=sm_75;-O3;-std=c++11;-use_fast_math;--default-stream per-thread) if (${CMAKE_BUILD_TYPE} STREQUAL "Release") set(COMPILE_OPTIONS -fopenmp -march=native -msse -msse2 -msse3 -msse4 -msse4.2 -mavx2 -ftree-vectorize) diff --git a/docker/run_container.sh b/docker/run_container.sh index 63cb279..3125165 100644 --- a/docker/run_container.sh +++ b/docker/run_container.sh @@ -5,4 +5,4 @@ echo "BUNDLETRACK_DIR $BUNDLETRACK_DIR" echo "NOCS_DIR $NOCS_DIR" echo "YCBINEOAT_DIR $YCBINEOAT_DIR" -docker run --gpus all -it --network=host --name bundletrack -m 16000m --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $BUNDLETRACK_DIR:$BUNDLETRACK_DIR:rw -v $NOCS_DIR:$NOCS_DIR -v $YCBINEOAT_DIR:$YCBINEOAT_DIR -v /tmp:/tmp --ipc=host -e DISPLAY=${DISPLAY} -e GIT_INDEX_FILE wenbowen123/bundletrack:latest bash +docker run --gpus all -it --network=host --name bundletrack -m 16000m --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $BUNDLETRACK_DIR:$BUNDLETRACK_DIR:rw -v $NOCS_DIR:$NOCS_DIR -v $YCBINEOAT_DIR:$YCBINEOAT_DIR -v /tmp:/tmp --ipc=host -e DISPLAY=${DISPLAY} -e GIT_INDEX_FILE wenbowen123/bundletrack:3090 bash diff --git a/src/Utils.cpp b/src/Utils.cpp index 2b31dca..9fdd168 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -33,11 +33,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "Utils.h" -#include -#include -#include -#include -#include namespace Utils diff --git a/src/Utils.h b/src/Utils.h index 1e0f8f5..2ecca38 100755 --- a/src/Utils.h +++ b/src/Utils.h @@ -77,9 +77,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include "opencv2/calib3d/calib3d.hpp" -// For Visualization -// #include -// #include #include #include