[packages/llvm-openmp] - initial

qboosh qboosh at pld-linux.org
Fri Jan 23 16:13:19 CET 2015


commit f09639cbedf746323ba694d4658d24a8f2217aae
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jan 23 16:15:06 2015 +0100

    - initial

 llvm-openmp.spec | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 openmp-pld.patch | 11 +++++++
 2 files changed, 110 insertions(+)
---
diff --git a/llvm-openmp.spec b/llvm-openmp.spec
new file mode 100644
index 0000000..d7d7d41
--- /dev/null
+++ b/llvm-openmp.spec
@@ -0,0 +1,99 @@
+# TODO: offload library? (requires Intel COI Runtime + Intel MYO Runtime)
+#
+# Conditional build:
+%bcond_without	fortran		# Fortran modules
+#
+Summary:	Intel OpenMP runtime library implementation for use with Clang
+Summary(pl.UTF-8):	Implementacja biblioteki uruchomieniowej OpenMP firmy Intel dla kompilatora Clang
+Name:		llvm-openmp
+Version:	3.5.1
+Release:	1
+License:	BSD-like or MIT
+Group:		Libraries
+Source0:	http://llvm.org/releases/%{version}/openmp-%{version}.src.tar.xz
+# Source0-md5:	121ddb10167d7fc38b1f7e4b029cf059
+Patch0:		openmp-pld.patch
+URL:		http://openmp.llvm.org/
+BuildRequires:	cmake >= 2.8
+%{?with_fortran:BuildRequires:	gcc-fortran}
+BuildRequires:	rpmbuild(macros) >= 1.605
+ExclusiveArch:	%{ix86} %{x8664} arm ppc64
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%ifarch %{ix86}
+%define		iomp_arch	32
+%endif
+%ifarch %{x8664}
+%define		iomp_arch	32e
+%endif
+%ifarch arm ppc64
+%define		iomp_arch	%{_arch}
+%endif
+
+%description
+The OpenMP subproject of LLVM is intended to contain all of the
+components required to build an executing OpenMP program that are
+outside the compiler itself. Support for OpenMP 3.1 in Clang is in the
+process of being promoted into the Clang mainline, and can be found at
+OpenMP/Clang: <http://clang-omp.github.io/>. 
+
+%description -l pl.UTF-8
+Podprojekt OpenMP projektu LLVM ma na celu skompletowanie wszystkich
+komponentów wymaganych do zbudowania działającego programu OpenMP poza
+samym kompilatorem. Obsługa OpenMP 3.1 w Clangu jest w trakcie
+włączania do głównej linii kompilatora i można ją znaleźć w
+repozytorium OpenMP/Clang: <http://clang-omp.github.io/>. 
+
+%package fortran-devel
+Summary:	Fortran modules for Intel OpenMP implementation
+Summary(pl.UTF-8):	Moduły Fortranu implementacji OpenMP firmy Intel
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description fortran-devel
+Fortran modules for Intel OpenMP implementation.
+
+%description fortran-devel -l pl.UTF-8
+Moduły Fortranu implementacji OpenMP firmy Intel.
+
+%prep
+%setup -q -n openmp-%{version}.src
+%patch0 -p1
+
+%build
+cd runtime
+install -d build
+cd build
+%cmake .. \
+%ifarch arm ppc64
+	-Darch=%{iomp_arch} \
+%endif
+	%{?with_fortran:-Dcreate_fortran_modules=ON}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_includedir}/iomp,%{_libdir}}
+
+cp -p runtime/exports/common.pld/include/omp_lib.f90 $RPM_BUILD_ROOT%{_includedir}/iomp
+cp -p runtime/exports/lin_%{iomp_arch}.pld/include/omp_lib*.mod $RPM_BUILD_ROOT%{_includedir}/iomp
+cp -p runtime/exports/lin_%{iomp_arch}.pld/include_compat/iomp_lib.h $RPM_BUILD_ROOT%{_includedir}/iomp
+install runtime/exports/lin_%{iomp_arch}.pld/lib/libiomp5.so $RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CREDITS.txt LICENSE.txt www/{README.txt,Reference.pdf,*.{html,css}}
+%attr(755,root,root) %{_libdir}/libiomp5.so
+
+%if %{with fortran}
+%files fortran-devel
+%defattr(644,root,root,755)
+%{_includedir}/iomp
+%endif
diff --git a/openmp-pld.patch b/openmp-pld.patch
new file mode 100644
index 0000000..87096f8
--- /dev/null
+++ b/openmp-pld.patch
@@ -0,0 +1,11 @@
+--- openmp-3.5.1.src/runtime/CMakeLists.txt.orig	2014-08-07 13:16:59.000000000 +0200
++++ openmp-3.5.1.src/runtime/CMakeLists.txt	2015-01-22 17:31:26.169293063 +0100
+@@ -50,7 +50,7 @@
+ # Build Configuration
+ set(os_possible_values          lin mac win mic)
+ set(arch_possible_values        32e 32 arm ppc64)
+-set(build_type_possible_values  release debug relwithdebinfo)
++set(build_type_possible_values  release debug relwithdebinfo pld)
+ set(omp_version_possible_values 40 30)
+ set(lib_type_possible_values    normal profile stubs)
+ set(mic_arch_possible_values    knf knc)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm-openmp.git/commitdiff/f09639cbedf746323ba694d4658d24a8f2217aae



More information about the pld-cvs-commit mailing list