Advertisement
starchyfort

notwork

May 19th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.32 KB | None | 0 0
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2018-05-18T16:59:59
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT       += core gui
  8. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  9.  
  10. TARGET = MyProject
  11. TEMPLATE = app
  12.  
  13. CONFIG += console
  14.  
  15. #CONFIG -= app_bundle
  16.  
  17. # Define output directories
  18. DESTDIR = release
  19. OBJECTS_DIR = release/obj
  20. CUDA_OBJECTS_DIR = release/cuda
  21.  
  22. # Source files
  23. SOURCES += main.cpp
  24.  
  25. # This makes the .cu files appear in your project
  26. OTHER_FILES +=  vectorAddition.cu
  27.  
  28. # CUDA settings <-- may change depending on your system
  29. CUDA_SOURCES += vectorAddition.cu
  30. CUDA_DIR = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1"            # Path to cuda toolkit install
  31. SYSTEM_NAME = x64         # Depending on your system either 'Win32', 'x64', or 'Win64'
  32. SYSTEM_TYPE = 64            # '32' or '64', depending on your system
  33. CUDA_ARCH = sm_52           # Type of CUDA architecture, for example 'compute_10', 'compute_11', 'sm_10'
  34. NVCC_OPTIONS = --use_fast_math
  35.  
  36. # include paths
  37. INCLUDEPATH += $$CUDA_DIR/include \
  38.                $$CUDA_SDK/common/inc/ \
  39.                $$CUDA_SDK/../shared/inc/
  40.  
  41. # library directories
  42. QMAKE_LIBDIR += $$CUDA_DIR/lib/$$SYSTEM_NAME \
  43.                 $$CUDA_SDK/common/lib/$$SYSTEM_NAME \
  44.                 $$CUDA_SDK/../shared/lib/$$SYSTEM_NAME
  45. # Add the necessary libraries
  46. LIBS += -lcuda -lcudart
  47.  
  48. # The following library conflicts with something in Cuda
  49. QMAKE_LFLAGS_RELEASE = /NODEFAULTLIB:msvcrt.lib
  50. QMAKE_LFLAGS_DEBUG   = /NODEFAULTLIB:msvcrtd.lib
  51.  
  52. # The following makes sure all path names (which often include spaces) are put between quotation marks
  53. CUDA_INC = $$join(INCLUDEPATH,'" -I"','-I"','"')
  54.  
  55. # Configuration of the Cuda compiler
  56. # Release mode
  57. cuda.input = CUDA_SOURCES
  58. cuda.output = $$CUDA_OBJECTS_DIR/${QMAKE_FILE_BASE}_cuda.o
  59. cuda.commands = $$CUDA_DIR/bin/nvcc.exe $$NVCC_OPTIONS $$CUDA_INC $$LIBS --machine $$SYSTEM_TYPE -arch=$$CUDA_ARCH -c -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
  60. cuda.dependency_type = TYPE_C
  61.  
  62. QMAKE_EXTRA_COMPILERS += cuda
  63.  
  64. # The following define makes your compiler emit warnings if you use
  65. # any feature of Qt which has been marked as deprecated (the exact warnings
  66. # depend on your compiler). Please consult the documentation of the
  67. # deprecated API in order to know how to port your code away from it.
  68. DEFINES += QT_DEPRECATED_WARNINGS
  69.  
  70. # You can also make your code fail to compile if you use deprecated APIs.
  71. # In order to do so, uncomment the following line.
  72. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  73. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
  74.  
  75.  
  76. SOURCES += \
  77.         main.cpp \
  78.         MyGUI.cpp \
  79.  
  80. HEADERS += \
  81.         MyGUI.h \
  82.     curl/curl.h \
  83.     curl/curlver.h \
  84.     curl/easy.h \
  85.     curl/mprintf.h \
  86.     curl/multi.h \
  87.     curl/stdcheaders.h \
  88.     curl/system.h \
  89.     curl/typecheck-gcc.h \
  90.     nlohmann/adl_serializer.hpp \
  91.     nlohmann/json.hpp \
  92.     nlohmann/json_fwd.hpp \
  93.     nlohmann/detail/exceptions.hpp \
  94.     nlohmann/detail/json_pointer.hpp \
  95.     nlohmann/detail/json_ref.hpp \
  96.     nlohmann/detail/macro_scope.hpp \
  97.     nlohmann/detail/macro_unscope.hpp \
  98.     nlohmann/detail/meta.hpp \
  99.     nlohmann/detail/value_t.hpp \
  100.     nlohmann/detail/output/binary_writer.hpp \
  101.     nlohmann/detail/output/output_adapters.hpp \
  102.     nlohmann/detail/output/serializer.hpp \
  103.     nlohmann/detail/iterators/internal_iterator.hpp \
  104.     nlohmann/detail/iterators/iter_impl.hpp \
  105.     nlohmann/detail/iterators/iteration_proxy.hpp \
  106.     nlohmann/detail/iterators/json_reverse_iterator.hpp \
  107.     nlohmann/detail/iterators/primitive_iterator.hpp \
  108.     nlohmann/detail/input/binary_reader.hpp \
  109.     nlohmann/detail/input/input_adapters.hpp \
  110.     nlohmann/detail/input/lexer.hpp \
  111.     nlohmann/detail/input/parser.hpp \
  112.     nlohmann/detail/conversions/from_json.hpp \
  113.     nlohmann/detail/conversions/to_chars.hpp \
  114.     nlohmann/detail/conversions/to_json.hpp \
  115.  
  116. FORMS += \
  117.         MyGUI.ui
  118.  
  119. #INCLUDEPATH += $$PWD/.
  120. #DEPENDPATH += $$PWD/.
  121.  
  122. DISTFILES += \
  123.     libcurl.lib
  124.  
  125. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/./ -llibcurl
  126. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/./ -llibcurld
  127.  
  128. INCLUDEPATH += $$PWD/.
  129. DEPENDPATH += $$PWD/.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement