Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#46821 - [clang] OpenMP support

Attached to Project: Arch Linux
Opened by Maciek Borzecki (bboozzoo) - Wednesday, 21 October 2015, 19:54 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 26 October 2015, 01:40 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Clang supports OpenMP 3.1 since 3.7 release with OpenMP 4.0 coming in 3.8 and subsequent releases. The support is enabled by passing `-fopenmp=libomp` in command line. It is my understanding that libomp might actually be a separate package http://openmp.llvm.org/ so to actually use LLVM's version of OpenMP we might need an additional package. Since clang's functionality is limited as this point I'm filing this bug for clang at this point.

Additional info:

local/clang 3.7.0-4
local/clang 3.7.0-4
local/lib32-llvm-libs 3.7.0-2
local/llvm 3.7.0-4
local/llvm-libs 3.7.0-4

This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Monday, 26 October 2015, 01:40 GMT
Reason for closing:  Implemented
Additional comments about closing:  openmp 3.7.0-1
Comment by Yvan Fournier (yfournier) - Monday, 26 October 2015, 01:13 GMT
Does not seem to be working:

clang -fopenmp=libomp testprog.c
fails il testprog.c contains
#include <omp.h>,

and "find /usr/include/clang* -name omp.h" does not find anything.

Any OpenMP "hello-world like" program will do, for example: https://computing.llnl.gov/tutorials/openMP/samples/C/omp_hello.c
Comment by Evangelos Foutras (foutrelis) - Monday, 26 October 2015, 01:40 GMT
Install openmp and it'll work. (In the future it'll be a dep or optdep.)

Loading...