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. omp with mac

omp with mac

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.8k 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.
  • M Offline
    M Offline
    marco123
    wrote on last edited by
    #1

    Hi everyone,

    we work with qt 5.5 on qtcreator on mac 10.9 with clang 3.5

    we need compile our software with omp programming.
    same source code on windows with omp is very fast respect without

    we would use the same service for the same code on mac.
    we have compiled the code on mac with clang-omp but we haven't found improvements.

    could you explain the procedure to add omp service on mac?

    thanks

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

      Hi and welcome to devnet,

      I haven't used OpenMP yet on OS X but:

      • Are you sure you are using your custom compiler ?
      • Did you check that your application is currently loading the corresponding OpenMP libraries ?

      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
      • M Offline
        M Offline
        marco123
        wrote on last edited by
        #3

        Hi,

        yes we added omp library and the include omp.h in the source code
        the code in the same of windows
        the problem is that qtcreator compiles with the xcode's compiler(clang without omp)

        if i create a kit with another compiler in qtcreator,i't's use always xcode's compiler

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

          I haven't tested it but I'd go with a new mkspec (based on the OS X clang) rather than trying to change the compiler in Qt Creator

          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