-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaveo.spec.in
72 lines (63 loc) · 2.13 KB
/
aveo.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Summary: VE Offloading Framework based on VE-UDMA RPC
Name: @PACKAGE@
Version: @VERSION@
Release: @RELEASE@%{?dist}
Vendor: @VENDOR@
Group: System Environment/Libraries
License: LGPL
BuildRoot: %{_tmppath}/%{name}-buildroot-%{version}-%{release}
Source0: @PACKAGE@-@VERSION@.tar.gz
Requires: veos
BuildRequires: vedebuginfo
%if 0%{?rhel} == 8
Requires: platform-python
BuildRequires: platform-python-devel
%endif
%description
The Alternative VE Offloading framework (AVEO) is a faster and much
lower latency replacement to VEO which brings multi-VE support,
simultaneous debugging of VE and VH side, API extensions. It allows
heterogeneous programming of SX-Aurora TSUBASA vector engines with
an accelerator-alike heterogeneous programming model like OpenMP and
OpenACC.
%package devel
Summary: Development package for VE Offloading Framework based on VE-UDMA RPC
Requires: %{name} = %{version}-%{release}
Obsoletes: veoffload-devel veoffload-veorun-devel
%description devel
This package includes header files of VE offloading Framework
%define _prefix @PREFIX@
%define _subprefix @SUBPREFIX@
%define _subprefix_com /opt/nec/ve
%define _libdir %{_prefix}/lib64
%define _libexecdir %{_prefix}/libexec
%define _includedir %{_prefix}/include
%define _vebindir %{_subprefix_com}/bin
%define _velibexecdir %{_subprefix}/libexec
%define _velibdir %{_subprefix}/lib
%define _unpackaged_files_terminate_build 0
%prep
%setup -q -n @PACKAGE@-@VERSION@
%if 0%{?rhel} == 8
pathfix.py -pn -i /usr/bin/python3 $RPM_BUILD_DIR/@PACKAGE@-@VERSION@/scripts/gen_veorun_static_symtable
%endif
%build
make all-vh DEST=%{_prefix} VEDEST=%{_subprefix} VEDEST_COM=%{_subprefix_com} PREF=%{buildroot}
%install
make install-vh DEST=%{_prefix} VEDEST=%{_subprefix} VEDEST_COM=%{_subprefix_com} PREF=%{buildroot}
%post
/sbin/ldconfig
%files
%{_libdir}/libveo.so.1
%{_libdir}/libveo.so.1.0.0
%{_vebindir}/mk_veorun_static
%{_vebindir}/relink_aveorun
%files devel
%{_includedir}/ve_offload.h
%{_includedir}/veo_hmem.h
%{_includedir}/veo_veshm.h
%{_includedir}/veo_vhveshm.h
%{_includedir}/veo_vedma.h
%{_includedir}/veo_veshm_defs.h
%{_libdir}/libveo.so
%{_libexecdir}/gen_veorun_static_symtable