QT下的darknet-GPU项目属性

#-------------------------------------------------
#
# Project created by QtCreator 2018-08-04T19:39:17
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = ShipDetectionSystem
TEMPLATE = app


SOURCES += main.cpp
        mainwindow.cpp

HEADERS  += mainwindow.h

FORMS    += mainwindow.ui


#CUDA
DEFINES += GPU CUDNN
LIBS += 
    -L"/usr/local/lib" 
    -L"/usr/local/cuda/lib64" 
    -lcudart -lcufft
DEPENDPATH += .
INCLUDEPATH += /usr/local/cuda/include
QMAKE_LIBDIR += /usr/local/cuda/lib64
CUDA_SOURCES += 
    ./src/activation_kernels.cu 
    ./src/avgpool_layer_kernels.cu 
    ./src/blas_kernels.cu 
    ./src/col2im_kernels.cu 
    ./src/convolutional_kernels.cu 
    ./src/crop_layer_kernels.cu 
    ./src/deconvolutional_kernels.cu 
    ./src/dropout_layer_kernels.cu 
    ./src/im2col_kernels.cu 
    ./src/maxpool_layer_kernels.cu 
    ./src/network_kernels.cu

CUDA_DIR = /usr/local/cuda
CUDA_SDK = /usr/local/cuda
SYSTEM_NAME = linux
SYSTEM_TYPE = 64
CUDA_ARCH = compute_50
CUDA_CODE = [sm_50,compute_50]

CUDA_OBJECTS_DIR = ./Release/obj
CUDA_LIBS = cudart cufft
CUDA_INC = $$join(INCLUDEPATH,'" -I"','-I"','"')

NVCC_OPTIONS = --use_fast_math
NVCC_LIBS = $$join(CUDA_LIBS,' -l','-l','')

CONFIG(Release){
    cuda.input = CUDA_SOURCES
    cuda.output = $$CUDA_OBJECTS_DIR/${QMAKE_FILE_BASE}_cuda.o
    cuda.commands = $$CUDA_DIR/bin/nvcc $$NVCC_OPTIONS $$CUDA_INC $$NVCC_LIBS --machine $$SYSTEM_TYPE -arch=$$CUDA_ARCH -O3 -c -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
    cuda.dependency_type = TYPE_C
    QMAKE_EXTRA_COMPILERS += cuda
}

#AlexeyAB
SOURCES += 
    ./src/activation_layer.c 
    ./src/activations.c 
    ./src/avgpool_layer.c 
    ./src/batchnorm_layer.c 
    ./src/blas.c 
    ./src/box.c 
    ./src/col2im.c 
    ./src/connected_layer.c 
    ./src/convolutional_layer.c 
    ./src/cost_layer.c 
    ./src/cpu_gemm.c 
    ./src/crnn_layer.c 
    ./src/crop_layer.c 
    ./src/cuda.c 
    ./src/data.c 
    ./src/deconvolutional_layer.c 
    ./src/detection_layer.c 
    ./src/detector.c 
    ./src/dropout_layer.c 
    ./src/gemm.c 
    ./src/getopt.c 
    ./src/gru_layer.c 
    ./src/im2col.c 
    ./src/image.c 
    ./src/layer.c 
    ./src/list.c 
    ./src/local_layer.c 
    ./src/matrix.c 
    ./src/maxpool_layer.c 
    ./src/network.c 
    ./src/normalization_layer.c 
    ./src/option_list.c 
    ./src/parser.c 
    ./src/region_layer.c 
    ./src/reorg_layer.c 
    ./src/reorg_old_layer.c 
    ./src/rnn_layer.c 
    ./src/route_layer.c 
    ./src/shortcut_layer.c 
    ./src/softmax_layer.c 
    ./src/tree.c 
    ./src/upsample_layer.c 
    ./src/utils.c 
    ./src/voxel.c 
    ./src/writing.c 
    ./src/yolo_layer.c 
    ./src/yolt2.c

HEADERS += 
    ./src/activation_layer.h 
    ./src/activations.h 
    ./src/avgpool_layer.h 
    ./src/batchnorm_layer.h 
    ./src/blas.h 
    ./src/box.h 
    ./src/col2im.h 
    ./src/connected_layer.h 
    ./src/convolutional_layer.h 
    ./src/cost_layer.h 
    ./src/crnn_layer.h 
    ./src/crop_layer.h 
    ./src/cuda.h 
    ./src/data.h 
    ./src/deconvolutional_layer.h 
    ./src/detection_layer.h 
    ./src/dropout_layer.h 
    ./src/gemm.h 
    ./src/getopt.h 
    ./src/gru_layer.h 
    ./src/http_stream.h 
    ./src/im2col.h 
    ./src/image.h 
    ./src/layer.h 
    ./src/list.h 
    ./src/local_layer.h 
    ./src/matrix.h 
    ./src/maxpool_layer.h 
    ./src/network.h 
    ./src/normalization_layer.h 
    ./src/option_list.h 
    ./src/parser.h 
    ./src/region_layer.h 
    ./src/reorg_layer.h 
    ./src/reorg_old_layer.h 
    ./src/rnn_layer.h 
    ./src/route_layer.h 
    ./src/shortcut_layer.h 
    ./src/softmax_layer.h 
    ./src/stb_image.h 
    ./src/stb_image_write.h 
    ./src/tree.h 
    ./src/unistd.h 
    ./src/upsample_layer.h 
    ./src/utils.h 
    ./src/yolo_layer.h

OTHER_FILES += $$CUDA_SOURCES
  

相关内容推荐