Bug 5749 - [Anolis23][x86_64][epao]cuda-samples 多个用例需要用到nvsci的库和头文件,请确认是否需要引入
Summary: [Anolis23][x86_64][epao]cuda-samples 多个用例需要用到nvsci的库和头文件,请确认是否需要引入
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: xuchunmei
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-06 14:57 UTC by yunmeng365524
Modified: 2023-07-07 11:04 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yunmeng365524 2023-07-06 14:57:56 UTC
Description of problem:
cuda-samples 多个用例需要用到nvsci的库和头文件,请确认是否需要引入

Version-Release number of selected component (if applicable):
[root@iZbp1eypdp3hunewckvjqvZ FilterBorderControlNPP]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[root@iZbp1eypdp3hunewckvjqvZ FilterBorderControlNPP]# yum repoinfo
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 2:26:24 ago on Thu Jul  6 08:19:23 2023.
Repo-id            : AppStream-AI
Repo-name          : AnolisOS- - AppStream-AI
Repo-revision      : 1688384045
Repo-updated       : Mon Jul  3 19:34:05 2023
Repo-pkgs          : 669
Repo-available-pkgs: 669
Repo-size          : 10 G
Repo-baseurl       : https://mirrors.openanolis.cn/epao/23/x86_64/
Repo-expire        : 172800 second(s) (last: Thu Jul  6 08:19:23 2023)
Repo-filename      : /etc/yum.repos.d/ai.repo

Repo-id            : AppStream-AI-Source
Repo-name          : AnolisOS- - AppStream-AI-Source
Repo-revision      : 1688384055
Repo-updated       : Mon Jul  3 19:34:15 2023
Repo-pkgs          : 114
Repo-available-pkgs: 114
Repo-size          : 19 G
Repo-baseurl       : https://mirrors.openanolis.cn/epao/23/source/
Repo-expire        : 172800 second(s) (last: Thu Jul  6 08:19:23 2023)
Repo-filename      : /etc/yum.repos.d/ai.repo

Repo-id            : AppStream-Test
Repo-name          : AnolisOS-23 - AppStream-Test
Repo-revision      : 1688057505
Repo-updated       : Fri Jun 30 00:51:44 2023
Repo-pkgs          : 12604
Repo-available-pkgs: 12604
Repo-size          : 13 G
Repo-baseurl       : http://mirrors.openanolis.cn/anolis/23/Nightly/AppStream/x86_64/os
Repo-expire        : 172800 second(s) (last: Thu Jul  6 08:19:23 2023)
Repo-filename      : /etc/yum.repos.d/AnolisOS-Test.repo

Repo-id            : AppStream-debuginfo
Repo-name          : AnolisOS-23 - AppStream Debuginfo
Repo-revision      : 1684909010
Repo-updated       : Wed May 24 14:16:50 2023
Repo-pkgs          : 1866
Repo-available-pkgs: 1866
Repo-size          : 9.4 G
Repo-baseurl       : http://mirrors.cloud.aliyuncs.com/anolis/23/AppStream/x86_64/debug
Repo-expire        : 172800 second(s) (last: Thu Jul  6 08:19:22 2023)
Repo-filename      : /etc/yum.repos.d/AnolisOS-Debuginfo.repo

Repo-id            : BaseOS-Test
Repo-name          : AnolisOS-23 - BaseOS-Test
Repo-revision      : 1688057352
Repo-updated       : Fri Jun 30 00:49:11 2023
Repo-pkgs          : 946
Repo-available-pkgs: 946
Repo-size          : 1.0 G
Repo-baseurl       : http://mirrors.openanolis.cn/anolis/23/Nightly/BaseOS/x86_64/os
Repo-expire        : 172800 second(s) (last: Thu Jul  6 08:19:23 2023)
Repo-filename      : /etc/yum.repos.d/AnolisOS-Test.repo

Repo-id            : BaseOS-debuginfo
Repo-name          : AnolisOS-23 - BaseOS Debuginfo
Repo-revision      : 1685324515
Repo-updated       : Mon May 29 09:41:55 2023
Repo-pkgs          : 2615
Repo-available-pkgs: 2615
Repo-size          : 12 G
Repo-baseurl       : http://mirrors.cloud.aliyuncs.com/anolis/23/BaseOS/x86_64/debug
Repo-expire        : 172800 second(s) (last: Thu Jul  6 08:19:23 2023)
Repo-filename      : /etc/yum.repos.d/AnolisOS-Debuginfo.repo

How reproducible:
1、 git clone https://github.com/NVIDIA/cuda-samples.git
2、 进入case目录,如
/tmp/tone/run/cuda-samples/Samples/4_CUDA_Libraries/cudaNvSci
3、 make
>>> WARNING - libnvscibuf.so not found, Waiving the sample <<<
>>> WARNING - libnvscisync.so not found, Waiving the sample <<<
>>> WARNING - nvscibuf.h not found, Waiving the sample <<<
>>> WARNING - nvscisync.h not found, Waiving the sample <<<

Steps to Reproduce:
如上

Actual results:
缺少nvsci相关文件,用例编译失败

Expected results:
用例编译成功

Additional info:
[root@iZbp1eypdp3hunewckvjqvZ cudaNvSci]# yum search nvsci
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 1:47:10 ago on Thu Jul  6 13:09:23 2023.
No matches found.


请确认是否需要引入FreeImage
Comment 1 yunmeng365524 2023-07-07 11:04:32 UTC
ubuntu也没有相应的包
root@iZbp14gj0szjqpkn0bb9m2Z:~/cuda-samples/Samples/4_CUDA_Libraries/cudaNvSci# make clean
>>> WARNING - libnvscibuf.so not found, Waiving the sample <<<
>>> WARNING - libnvscisync.so not found, Waiving the sample <<<
>>> WARNING - nvscibuf.h not found, Waiving the sample <<<
>>> WARNING - nvscisync.h not found, Waiving the sample <<<
>>> GCC Version is greater or equal to 4.7.0 <<<
rm -f cudaNvSci cudaNvSci.o imageKernels.o main.o
rm -rf ../../../bin/x86_64/linux/release/cudaNvSci
root@iZbp14gj0szjqpkn0bb9m2Z:~/cuda-samples/Samples/4_CUDA_Libraries/cudaNvSci# apt-cache search nvsci
root@iZbp14gj0szjqpkn0bb9m2Z:~/cuda-samples/Samples/4_CUDA_Libraries/cudaNvSci#