当前位置:   article > 正文

QT下的darknet-GPU项目属性

src/activation kernels.cu
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2018-08-04T19:39:17
  4. #
  5. #-------------------------------------------------
  6. QT += core gui
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = ShipDetectionSystem
  9. TEMPLATE = app
  10. SOURCES += main.cpp\
  11. mainwindow.cpp
  12. HEADERS += mainwindow.h
  13. FORMS += mainwindow.ui
  14. #CUDA
  15. DEFINES += GPU CUDNN
  16. LIBS += \
  17. -L"/usr/local/lib" \
  18. -L"/usr/local/cuda/lib64" \
  19. -lcudart -lcufft
  20. DEPENDPATH += .
  21. INCLUDEPATH += /usr/local/cuda/include
  22. QMAKE_LIBDIR += /usr/local/cuda/lib64
  23. CUDA_SOURCES += \
  24. ./src/activation_kernels.cu \
  25. ./src/avgpool_layer_kernels.cu \
  26. ./src/blas_kernels.cu \
  27. ./src/col2im_kernels.cu \
  28. ./src/convolutional_kernels.cu \
  29. ./src/crop_layer_kernels.cu \
  30. ./src/deconvolutional_kernels.cu \
  31. ./src/dropout_layer_kernels.cu \
  32. ./src/im2col_kernels.cu \
  33. ./src/maxpool_layer_kernels.cu \
  34. ./src/network_kernels.cu
  35. CUDA_DIR = /usr/local/cuda
  36. CUDA_SDK = /usr/local/cuda
  37. SYSTEM_NAME = linux
  38. SYSTEM_TYPE = 64
  39. CUDA_ARCH = compute_50
  40. CUDA_CODE = [sm_50,compute_50]
  41. CUDA_OBJECTS_DIR = ./Release/obj
  42. CUDA_LIBS = cudart cufft
  43. CUDA_INC = $$join(INCLUDEPATH,'" -I"','-I"','"')
  44. NVCC_OPTIONS = --use_fast_math
  45. NVCC_LIBS = $$join(CUDA_LIBS,' -l','-l','')
  46. CONFIG(Release){
  47. cuda.input = CUDA_SOURCES
  48. cuda.output = $$CUDA_OBJECTS_DIR/${QMAKE_FILE_BASE}_cuda.o
  49. 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}
  50. cuda.dependency_type = TYPE_C
  51. QMAKE_EXTRA_COMPILERS += cuda
  52. }
  53. #AlexeyAB
  54. SOURCES += \
  55. ./src/activation_layer.c \
  56. ./src/activations.c \
  57. ./src/avgpool_layer.c \
  58. ./src/batchnorm_layer.c \
  59. ./src/blas.c \
  60. ./src/box.c \
  61. ./src/col2im.c \
  62. ./src/connected_layer.c \
  63. ./src/convolutional_layer.c \
  64. ./src/cost_layer.c \
  65. ./src/cpu_gemm.c \
  66. ./src/crnn_layer.c \
  67. ./src/crop_layer.c \
  68. ./src/cuda.c \
  69. ./src/data.c \
  70. ./src/deconvolutional_layer.c \
  71. ./src/detection_layer.c \
  72. ./src/detector.c \
  73. ./src/dropout_layer.c \
  74. ./src/gemm.c \
  75. ./src/getopt.c \
  76. ./src/gru_layer.c \
  77. ./src/im2col.c \
  78. ./src/image.c \
  79. ./src/layer.c \
  80. ./src/list.c \
  81. ./src/local_layer.c \
  82. ./src/matrix.c \
  83. ./src/maxpool_layer.c \
  84. ./src/network.c \
  85. ./src/normalization_layer.c \
  86. ./src/option_list.c \
  87. ./src/parser.c \
  88. ./src/region_layer.c \
  89. ./src/reorg_layer.c \
  90. ./src/reorg_old_layer.c \
  91. ./src/rnn_layer.c \
  92. ./src/route_layer.c \
  93. ./src/shortcut_layer.c \
  94. ./src/softmax_layer.c \
  95. ./src/tree.c \
  96. ./src/upsample_layer.c \
  97. ./src/utils.c \
  98. ./src/voxel.c \
  99. ./src/writing.c \
  100. ./src/yolo_layer.c \
  101. ./src/yolt2.c
  102. HEADERS += \
  103. ./src/activation_layer.h \
  104. ./src/activations.h \
  105. ./src/avgpool_layer.h \
  106. ./src/batchnorm_layer.h \
  107. ./src/blas.h \
  108. ./src/box.h \
  109. ./src/col2im.h \
  110. ./src/connected_layer.h \
  111. ./src/convolutional_layer.h \
  112. ./src/cost_layer.h \
  113. ./src/crnn_layer.h \
  114. ./src/crop_layer.h \
  115. ./src/cuda.h \
  116. ./src/data.h \
  117. ./src/deconvolutional_layer.h \
  118. ./src/detection_layer.h \
  119. ./src/dropout_layer.h \
  120. ./src/gemm.h \
  121. ./src/getopt.h \
  122. ./src/gru_layer.h \
  123. ./src/http_stream.h \
  124. ./src/im2col.h \
  125. ./src/image.h \
  126. ./src/layer.h \
  127. ./src/list.h \
  128. ./src/local_layer.h \
  129. ./src/matrix.h \
  130. ./src/maxpool_layer.h \
  131. ./src/network.h \
  132. ./src/normalization_layer.h \
  133. ./src/option_list.h \
  134. ./src/parser.h \
  135. ./src/region_layer.h \
  136. ./src/reorg_layer.h \
  137. ./src/reorg_old_layer.h \
  138. ./src/rnn_layer.h \
  139. ./src/route_layer.h \
  140. ./src/shortcut_layer.h \
  141. ./src/softmax_layer.h \
  142. ./src/stb_image.h \
  143. ./src/stb_image_write.h \
  144. ./src/tree.h \
  145. ./src/unistd.h \
  146. ./src/upsample_layer.h \
  147. ./src/utils.h \
  148. ./src/yolo_layer.h
  149. OTHER_FILES += $$CUDA_SOURCES

  

转载于:https://www.cnblogs.com/aimhabo/p/9424386.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/379994?site
推荐阅读
相关标签
  

闽ICP备14008679号