Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
b1819a9034
!12 升级软件包,清理多余补丁,解决issueI8Z5F4
From: @yang_yanchao 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2024-02-02 01:25:49 +00:00
openeuler-robot
2b6e28f6f1 update libgmem-v0.1.tar.gz to 4dc188c
Skip building when the kernel does not support GMEM
2024-02-02 01:04:24 +08:00
openeuler-ci-bot
c5a15b2ece
!10 add install_npu_driver.sh
From: @LemmyHuang 
Reviewed-by: @yang_yanchao 
Signed-off-by: @yang_yanchao
2023-09-21 01:28:33 +00:00
Lemmy Huang
ed762ffc8f add install_npu_driver.sh
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
2023-09-20 16:40:56 +08:00
openeuler-ci-bot
40c17135e1
!8 Structures and macros use the default definition of the kernel
From: @yang_yanchao 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2023-09-12 06:23:15 +00:00
Yang Yanchao
29c9237b0c Structures and macros use the default definition of the kernel [I80K89]
optimize headers file

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2023-09-12 12:29:52 +08:00
openeuler-ci-bot
ae33eb6373
!6 fix three issue
From: @yang_yanchao 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2023-09-07 03:06:10 +00:00
Yang Yanchao
10c2b83331 fix three issue
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]

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2023-09-06 20:29:21 +08:00
openeuler-ci-bot
bd9d1749e9
!4 use ioctl instand of syscall
From: @yang_yanchao 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2023-08-29 11:04:01 +00:00
Yang Yanchao
4f0ece3f75 use ioctl instead of syscall 2023-08-29 18:56:17 +08:00
2 changed files with 48 additions and 2 deletions

Binary file not shown.

View File

@ -1,13 +1,17 @@
%define gmem_path /usr/local/gmem
%define with_gmem 0
Name: libgmem
Version: 0.1
Release: 1
Release: 6
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
BuildRequires: autoconf automake libtool
BuildRequires: gcc glibc-devel make
BuildRequires: gcc glibc-devel make kernel-headers
%description
libgmem is the abstract layer of GMEM(Generalized Memory Management) user-mode interface,
@ -20,6 +24,7 @@ Requires: %{name} = %{version}-%{release}
%description devel
The libgmem-devel package provides header files used for GMEM.
%if %{with_gmem}
%prep
%autosetup -p1 -n %{name}-v%{version}
@ -29,6 +34,8 @@ sh ./autogen.sh
%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
@ -41,7 +48,46 @@ sh ./autogen.sh
%files devel
%{_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
* 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
- Init Package