OpenMP

Manuel
2010-04-05
2013-06-06
1 2 > >> (Page 1 of 2)
  • Manuel
    Manuel
    2010-04-05

    I tried to use OpenMP, but it doesnt work.
    I included omp.h but it seems there is no lib to link to. I couldnt find the "libgomp".
    Can anyone help?

     
  • Jonathan Yong
    Jonathan Yong
    2010-04-06

    Where did you get gcc from? Sezero's builds or autobuilds?

    The autobuilds don't have openmp enabled, if its Sezero's buids, its probably a packaging error.

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-06

    Jon, did you actually look at the automated builds? The omp.h header he has comes from mingw-w64-headers and not from gcc's make install. It is present in automated builds as well as my personal builds. The real question is, why are we providing it?

     
  • Kai Tietz
    Kai Tietz
    2010-04-06

    Hmm, this omp.h file in our platform headers seems to be wrong. Not sure why it is here and why we have it in our repository.
    So - as long as we don't know why it is there and I don't remember at the moment why I added it - I would suggest to remove it from trunk & branch and keep current version of it in experimental for historical reasons.

    Kai

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-06

    Deleted omp.h from v1.0 branch and trunk, moved it under /experimental/include_old in svn rev. 2148.

     
  • Manuel
    Manuel
    2010-04-06

    I downloaded this file:
    mingw-w64-bin_i686-mingw_20100322.zip

    but i will download this file now:
    mingw-w64-bin_i686-mingw_20100327_sezero.zip

    Hope it works ;)

    btw, you answered really fast, thats great.

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-06

    > but i will download this file now:
    > mingw-w64-bin_i686-mingw_20100327_sezero.zip
    >

    Thanks for using my build ;)
    but…

    > Hope it works ;)
    >

    … no, OpenMP will not work, because it is not
    enabled in any of our gcc builds. In previous cases
    you managed to include omp.h because it was there
    by accident, in newer builds it won't be.

     
  • Manuel
    Manuel
    2010-04-06

    Ok, downloaded the package, but still there is no libgomp library

     
  • Manuel
    Manuel
    2010-04-06

    ignore the last post, didnt saw your post.
    Do you plan to enable OpenMP for future builds?

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-06

    As far as I know, libgomp is not enabled for win32/win64 targets in gcc (someone correct me if I am wrong). I don't know the reason, maybe Kai can answer that better.

     
  • Manuel
    Manuel
    2010-04-06

    GCC 4.2 supports OpenMP 2.5
    and GCC 4.4  and later will support OpenMP 3.0

    http://gcc.gnu.org/projects/gomp/

     
  • Jonathan Yong
    Jonathan Yong
    2010-04-06

    sezero,

    for windows targets, it needs to be enabled explcitly with -enable-libgomp. Of course, you should already have pthreads installed first.

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-06

    > sezero,
    >
    > for windows targets, it needs to be enabled explcitly with
    > -enable-libgomp. Of course, you should already have
    > pthreads installed first.

    OK, I see, thanks.  I never ever messed with openmp before.
    Do you know about its w64-friendliness (or lack thereof) ?

     
  • Manuel
    Manuel
    2010-04-06

    so can you implement it into the next build?

     
  • Jonathan Yong
    Jonathan Yong
    2010-04-06

    sezero,

    I have built gcc for win64 with libgomp enabled, but I don't know if it works since I don't own a win64 machine.

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-06

    > sezero,
    >
    > I have built gcc for win64 with libgomp enabled, but I don't know if it works
    > since I don't own a win64 machine.

    Hmm, any suspicious warnings in your build log?
    I have a w64 machine, so if there are test programs
    I can run them and see if they succeed (of course,
    I have to know the indications for success…)

     
  • Jonathan Yong
    Jonathan Yong
    2010-04-06

    Sorry, I don't usually log my personal builds, but I don't remember any warnings either.

    I can send you some test executables by email if you like, codes are from wikipedia, as I don't actually know how to use OpenMP.

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-06

    > Sorry, I don't usually log my personal builds, but I don't remember any warnings
    > either.
    >

    OK,

    > I can send you some test executables by email if you like, codes are from wikipedia,

    Please do,

    > as I don't actually know how to use OpenMP.

    Neither do I, that's why I need documented tests ;)

     
  • Manuel
    Manuel
    2010-04-06

    i can also send you tests(exe, source code)

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-07

    > By: fear411
    >
    > i can also send you tests(exe, source code)
    >

    I'd like to have that. However I'm having a bit problems
    building libgomp myself (I'm currently using gcc-4.4, it
    may need a little adjusting to make it behave), so I'd
    ask for that after I fix my build (which may or may not
    be easy).

    On the other hand, the automated builds use gcc-4.5
    and the compilation of libgomp should be free of problems
    with it. So, please ask the automated build guys for the
    addition of libgomp support for the time being.

     
  • Manuel
    Manuel
    2010-04-08

    ok just contact me via mail if you need examples. I will send you my mail via pm.
    Where can i ask the guys of the automated build? Do they read this thread? If yes can you "automated build guys" ;) add OpenMP support?

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-10

    I uploaded my personal builds, sezero_20100410, with OpenMP (libgomp) support enabled. Remember to extract the pthreads zip (or tar.gz) files in the package that you download (libgomp depends on pthreads). I hope that those builds will be useful for you.

     
  • NightStrike
    NightStrike
    2010-04-11

    but I don't know if it works since I don't own a win64 machine.

    Email me privately and I can set you up with my personal machine.  We were donated some licenses, and I set up a computer for project members to use for just this purpose.

     

  • Anonymous
    2010-04-12

    When will OpenMP support be added by default in release builds? I will try to use sezero build for now. Where should I put pthreads.zip?
    Lack of OpenMP would be deal breaker :( Actually OpenMP 3.0 support is one of the main reasons people get interested in GCC on Windows, cause Visual C++ Express editions come without it.

     
  • Ozkan Sezer
    Ozkan Sezer
    2010-04-12

    > use sezero build for now. Where should I put pthreads.zip?

    If the toolchain is at c:\mingw64 then extract the
    contained pthreads.zip into c:\mingw64\

     
1 2 > >> (Page 1 of 2)