From f03d486760da03c690f069b23e72fc33bd76f3ea Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Thu, 8 Feb 2018 01:09:30 +0300 Subject: [PATCH] Makefile added hints to compile for Jetson Tx1 and Tx2 --- Makefile | 8 ++++++++ build/darknet/yolo_cpp_dll.vcxproj | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cd39151d..2952ccf8 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,17 @@ ARCH= -gencode arch=compute_30,code=sm_30 \ -gencode arch=compute_52,code=[sm_52,compute_52] \ -gencode arch=compute_61,code=[sm_61,compute_61] + +# For Jetson Tx1 uncomment: +# ARCH= -gencode arch=compute_51,code=[sm_51,compute_51] + +# For Jetson Tx2 uncomment: +# ARCH= -gencode arch=compute_62,code=[sm_62,compute_62] + # This is what I use, uncomment if you know your arch and want to specify # ARCH= -gencode arch=compute_52,code=compute_52 + VPATH=./src/ EXEC=darknet OBJDIR=./obj/ diff --git a/build/darknet/yolo_cpp_dll.vcxproj b/build/darknet/yolo_cpp_dll.vcxproj index 2cdb3909..ee45c38c 100644 --- a/build/darknet/yolo_cpp_dll.vcxproj +++ b/build/darknet/yolo_cpp_dll.vcxproj @@ -134,7 +134,7 @@ true true ..\..\3rdparty\include;%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir);$(cudnn)\include - CUDNN;YOLODLL_EXPORTS;_TIMESPEC_DEFINED;_CRT_SECURE_NO_WARNINGS;GPU;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + CUDNN;GPU;YOLODLL_EXPORTS;_TIMESPEC_DEFINED;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) c11 c++1y CompileAsCpp