Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Armadillo with openblasin Qt
Forum Updated to NodeBB v4.3 + New Features

Armadillo with openblasin Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 997 Views 2 Watching
  • 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.
  • A Offline
    A Offline
    AndersDK
    wrote on last edited by
    #1

    Hello

    I'm trying to use openblas with armadillo in Qt creator. All works fine when I link against blas_win64_MT from the armadillo directory, but when I link to openblas (compiled succesfull after this guide https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio), my program compiles, but then the command prompt just displays "Press <RETURN> to close this window...". I've also tried using nvblas to make armadillo run on my GPU and the same thing happens.

    So anyone knows what is going on? No error messages or anything just a blank program with no outputs. Also it doesn't matter if I remove all aramdillo code from the program it stills does nothing, so i guess it is just the linking to openblas that makes the program do nothing?

    I use mcvs 2017 as a compiler in Qt creator.

    kshegunovK 1 Reply Last reply
    0
    • A AndersDK

      Hello

      I'm trying to use openblas with armadillo in Qt creator. All works fine when I link against blas_win64_MT from the armadillo directory, but when I link to openblas (compiled succesfull after this guide https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio), my program compiles, but then the command prompt just displays "Press <RETURN> to close this window...". I've also tried using nvblas to make armadillo run on my GPU and the same thing happens.

      So anyone knows what is going on? No error messages or anything just a blank program with no outputs. Also it doesn't matter if I remove all aramdillo code from the program it stills does nothing, so i guess it is just the linking to openblas that makes the program do nothing?

      I use mcvs 2017 as a compiler in Qt creator.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      Did you compile armadillo for your openblas binary? More precisely, did you make sure that the armadillo binary you got is linked properly against a compatible openblas library (this includes the compiler ABI)?

      but then the command prompt just displays "Press <RETURN> to close this window...". I've also tried using nvblas to make armadillo run on my GPU and the same thing happens.

      You can inspect QtCreator's debug log, however almost certainly the loader can't find a library and gives up.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      2
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Adding to @kshegunov, blas_win64_MT heavily suggests that it's using the static Windows Runtime which is going to clash with Qt since it's using the Dynamic Runtime.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • A Offline
          A Offline
          AndersDK
          wrote on last edited by
          #4

          I sure I did not do that, because I not entirely sure what it means. Any information about how I should do that?

          Is it the same thing with nvblas? It is my understanding that when using nvblas I need both that, and a backup Blas library, so for that I should make it link correct to two Blas libraries at the same time.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            You have here a nice explanation about the differences between MD and MT.

            I haven't seen anything in the instructions you linked with regards to the runtime. Did you generate all the libraries or use the ones from conda ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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