-
在安装有openEuler-22.03的X86_64的超聚变服务器上,下载cuda-sample测试用例
git clone https://github.com/NVIDIA/cuda-samples.git -
进入cuda-samples目录,执行make test命令,进行编译,测试.
[root@localhost cuda-samples]# make test
…
./postProcessGL -radius=2 -file=teapot_2.ppm
Waiving execution as X server is not running
make[1]: *** [Makefile:362: testrun] Error 2
make[1]: Leaving directory ‘/home/bshang/cuda-samples/Samples/5_Domain_Specific/postProcessGL’
make: *** [Makefile:48: Samples/5_Domain_Specific/postProcessGL/Makefile.ph_test] Error 2 -
在编译测试的过程中出现了上面的错误:Waiving execution as X server is not running
-
为测试用例设置一个能远程能显示的X server,Display环境变量
[root@localhost cuda-samples]# export DISPLAY=128.224.32.151:0.0 -
设置完成后,再次跑对应的测试,能正常显示图像,测试通过。