Compare commits
No commits in common. "b1819a9034271fd901cd4d0df8ebc9ffebe5c558" and "e006a591c075595093fd4e2564168b083cc26db6" have entirely different histories.
b1819a9034
...
e006a591c0
Binary file not shown.
50
libgmem.spec
50
libgmem.spec
@ -1,17 +1,13 @@
|
|||||||
%define gmem_path /usr/local/gmem
|
|
||||||
%define with_gmem 0
|
|
||||||
|
|
||||||
Name: libgmem
|
Name: libgmem
|
||||||
Version: 0.1
|
Version: 0.1
|
||||||
Release: 6
|
Release: 1
|
||||||
Summary: Library of Generalized Memory Management
|
Summary: Library of Generalized Memory Management
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
URL: https://gitee.com/openeuler/libgmem
|
URL: https://gitee.com/openeuler/libgmem
|
||||||
Source0: https://gitee.com/openeuler/libgmem/repository/archive/%{name}-v%{version}.tar.gz
|
Source0: https://gitee.com/openeuler/libgmem/repository/archive/%{name}-v%{version}.tar.gz
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
BuildRequires: gcc glibc-devel make kernel-headers
|
BuildRequires: gcc glibc-devel make
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libgmem is the abstract layer of GMEM(Generalized Memory Management) user-mode interface,
|
libgmem is the abstract layer of GMEM(Generalized Memory Management) user-mode interface,
|
||||||
@ -24,7 +20,6 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
The libgmem-devel package provides header files used for GMEM.
|
The libgmem-devel package provides header files used for GMEM.
|
||||||
|
|
||||||
%if %{with_gmem}
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-v%{version}
|
%autosetup -p1 -n %{name}-v%{version}
|
||||||
|
|
||||||
@ -34,8 +29,6 @@ sh ./autogen.sh
|
|||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -dp %{buildroot}/%{gmem_path}
|
|
||||||
install -Dp %{_builddir}/%{name}-v%{version}/scripts/install_npu_driver.sh %{buildroot}/%{gmem_path}/
|
|
||||||
%make_install
|
%make_install
|
||||||
%delete_la
|
%delete_la
|
||||||
|
|
||||||
@ -48,46 +41,7 @@ install -Dp %{_builddir}/%{name}-v%{version}/scripts/install_npu_driver.sh %{bu
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/libgmem.h
|
%{_includedir}/libgmem.h
|
||||||
%dir %{gmem_path}
|
|
||||||
%{gmem_path}/install_npu_driver.sh
|
|
||||||
%else
|
|
||||||
%prep
|
|
||||||
%autosetup -p1 -n %{name}-v%{version}
|
|
||||||
|
|
||||||
%install
|
|
||||||
install -dp %{buildroot}/%{gmem_path}
|
|
||||||
install -dp %{buildroot}/%{_includedir}
|
|
||||||
install -Dp %{_builddir}/%{name}-v%{version}/License %{buildroot}/%{gmem_path}/
|
|
||||||
install -Dp %{_builddir}/%{name}-v%{version}/include/libgmem.h %{buildroot}/%{_includedir}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%{gmem_path}/License
|
|
||||||
|
|
||||||
%files devel
|
|
||||||
%{_includedir}/libgmem.h
|
|
||||||
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Feb 2 2024 Yang Yanchao <yangyanchap6@huawei.com> - 0.1-6
|
|
||||||
-update libgmem-v0.1.tar.gz to 4dc188c
|
|
||||||
Skip building when the kernel does not support GMEM[I8Z5F4]
|
|
||||||
|
|
||||||
* 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
|
* Sun Aug 13 2023 Yang Yanchao <yangyanchao6@huawei.com> - 0.1-1
|
||||||
- Init Package
|
- Init Package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user