Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Use QtQuick with cuda 8.0 cause the Application blinking when resize

Use QtQuick with cuda 8.0 cause the Application blinking when resize

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 501 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • thamT Offline
    thamT Offline
    tham
    wrote on last edited by
    #1

    OS : win10 64bits
    laptop : Y410P

    I am developing an object recognition app with dlib cnn module, if I do not link to cuda, everything works fine, but if I link to cuda, the screen will blink(turn to black) when I resize the application window.

    Following are my .pro file. I do not register any type or use any class which manipulate cuda in qml parts, what I did is compile and link to the object file(those cpp files) which leverage cuda and cuDNN.

    QT += qml quick
    
    CONFIG += c++11
    
    INCLUDEPATH += ../
    
    DEFINES += DLIB_USE_CUDA
    DEFINES += DLIB_JPEG_SUPPORT
    DEFINES += DLIB_PNG_SUPPORT
    
    CUDA_LIB = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64
    
    LIBS += "$${CUDA_LIB}/cublas.lib"
    LIBS += "$${CUDA_LIB}/cublas_device.lib"
    LIBS += "$${CUDA_LIB}/cuda.lib"
    LIBS += "$${CUDA_LIB}/cudadevrt.lib"
    LIBS += "$${CUDA_LIB}/cudart.lib"
    LIBS += "$${CUDA_LIB}/cudnn.lib"
    LIBS += "$${CUDA_LIB}/cufft.lib"
    LIBS += "$${CUDA_LIB}/curand.lib"
    
    include(../../pri/dlibs.pri)
    
    SOURCES += main.cpp \
        ../logics/smart_eye.cpp \
        ../logics/smoke_eye.cpp
    
    RESOURCES += qml.qrc \
        icons.qrc \
        train_model.qrc
    
    # Additional import path used to resolve QML modules in Qt Creator's code model
    QML_IMPORT_PATH =
    
    # Default rules for deployment.
    include(deployment.pri)
    
    HEADERS += \
        ../logics/smart_eye.hpp \
        ../logics/smoke_eye.hpp \
        ../logics/smoke_network.hpp
    

    How could I fix this issue?Thanks

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved