Results 1 to 7 of 7

Thread: compiling OpenMP

  1. #1
    Join Date
    Apr 2009
    Beans
    19

    Unhappy compiling OpenMP

    hello all,

    my gcc doesn't compile openmp programs.

    gcc -fopenmp hellomp.c
    hellomp.c:2:17: error: omp.h: No such file or directory


    gcc -v

    Using built-in specs.
    Target: i686-pc-linux-gnu
    Configured with: /home/build/svn/trunk/eng/prod/gcc/configure --prefix=/home/build/32/local/cilk --with-gas-weakref=no --with-comdat-group --enable-checking --disable-bootstrap --disable-libgomp --enable-languages=c,c++ --disable-libstdcxx-pch --enable-targets=all --with-cilk-version=10100 --with-cilk-build=8503
    Thread model: posix
    gcc version 4.2.4 (Cilk Arts build 8503)


    Thanks

  2. #2
    Join Date
    Apr 2009
    Beans
    19

    Angry compiling OpenMP

    hello all,

    my gcc doesn't compile openmp programs.

    gcc -fopenmp hellomp.c
    hellomp.c:2:17: error: omp.h: No such file or directory


    gcc -v

    Using built-in specs.
    Target: i686-pc-linux-gnu
    Configured with: /home/build/svn/trunk/eng/prod/gcc/configure --prefix=/home/build/32/local/cilk --with-gas-weakref=no --with-comdat-group --enable-checking --disable-bootstrap --disable-libgomp --enable-languages=c,c++ --disable-libstdcxx-pch --enable-targets=all --with-cilk-version=10100 --with-cilk-build=8503
    Thread model: posix
    gcc version 4.2.4 (Cilk Arts build 8503)


    Thanks

  3. #3
    Join Date
    Apr 2006
    Beans
    800
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: compiling OpenMP

    Did you include omp.h? What's your code?
    See this: http://wiki.bath.ac.uk/display/HPC/OpenMP
    Last edited by lykeion; February 22nd, 2011 at 03:30 PM.

  4. #4
    Join Date
    Feb 2011
    Beans
    3

    Thumbs down Re: compiling OpenMP

    You have configured gcc without openmp support. The --disable-libgomp configure option is what does this. You must either reconfigure and recompile your version of gcc without this option or use a version of gcc that supports openmp, such as the one that comes with your version of ubuntu.

  5. #5
    Join Date
    Feb 2010
    Beans
    91

    Re: compiling OpenMP

    The compiler you are trying to use is the now decprecated Cilk Arts Cilk++ compiler. It supports compiler assisted parallelism, but not OpenMP.

  6. #6
    Join Date
    Apr 2009
    Location
    Germany
    Beans
    2,134
    Distro
    Ubuntu Development Release

    Re: compiling OpenMP

    don't open multiple threads on the same issue ...
    http://ubuntuforums.org/showthread.php?t=1693003

    edit: obsolete, merged by the helpful moderators (wow < 1 min reaction time)
    Last edited by MadCow108; February 22nd, 2011 at 11:02 PM.

  7. #7
    Join Date
    Oct 2006
    Beans
    56,253

    Re: compiling OpenMP

    Threads merged.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •