blob: de6d1887b76d0720c6351785bfa3dd59260a62f7 (
plain)
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
73
74
|
%define gmem_path /usr/local/gmem
Name: libgmem
Version: 0.1
Release: 5
Summary: Library of Generalized Memory Management
License: MulanPSL-2.0
URL: https://gitee.com/openeuler/libgmem
Source0: https://gitee.com/openeuler/libgmem/repository/archive/%{name}-v%{version}.tar.gz
PATCH0001: use-ioctl-instead-of-syscall.patch
PATCH0002: fix-three-issue-I7YV2X-I7XQMW-I7Z2RF.patch
Patch0003: Structures-and-macros-use-the-default-definition-of-.patch
Patch0004: optimize-headers-file.patch
Patch0005: add-install_npu_driver.sh.patch
BuildRequires: autoconf automake libtool
BuildRequires: gcc glibc-devel make kernel-headers
%description
libgmem is the abstract layer of GMEM(Generalized Memory Management) user-mode interface,
which encapsulates some memory characteristics and semantics of GMEM
%package devel
Summary: Header files for libgmem development
Requires: %{name} = %{version}-%{release}
%description devel
The libgmem-devel package provides header files used for GMEM.
%prep
%autosetup -p1 -n %{name}-v%{version}
%build
sh ./autogen.sh
%configure --with-device=Ascend
%make_build
%install
install -dp %{buildroot}/%{gmem_path}
install -Dp %{_builddir}/%{name}-v%{version}/scripts/install_npu_driver.sh %{buildroot}/%{gmem_path}/
%make_install
%delete_la
%ldconfig_scriptlets
%files
%license License
%{_libdir}/%{name}.so*
%files devel
%{_includedir}/libgmem.h
%dir %{gmem_path}
%{gmem_path}/install_npu_driver.sh
%changelog
* Wed Sep 20 2023 Lemmy Huang <huangliming5@huawei.com> - 0.1-5
- add install_npu_driver.sh
* Tue Sep 12 2023 Yang Yanchao <yangyanchao6@huawei.com> - 0.1-4
- Structures and macros use the default definition of the kernel [I80K89]
optimize headers file
* Wed Sep 06 2023 Yang Yanchao <yangyanchao6@huawei.com> - 0.1-3
- Check the return ptr of the malloc[#I7YV2X]
add hnid in gmemPrefetch [#I7XQMW]
free userData in stream to avoid async operations accessing illeagal address[#I7Z2RF]
* Tue Aug 29 2023 Yang Yanchao <yangyanchao6@huawei.com> - 0.1-2
- use ioctl instead of syscall
* Sun Aug 13 2023 Yang Yanchao <yangyanchao6@huawei.com> - 0.1-1
- Init Package
|