cuda验证WARNING - libGLU.so not found
(2018-01-17 12:21:57)分类: linux |
[root@node2 nbody]# pwd
/usr/local/cuda/samples/5_Simulations/nbody
[root@node2 nbody]# ls
bodysystemcpu.h
bodysystemcuda.cu
bodysystemcuda_impl.h doc
galaxy_20K.bin
nbody.cpp
readme.txt
render_particles.h
bodysystemcpu_impl.h bodysystemcuda.h
bodysystem.h
findgllib.mk Makefile
NsightEclipse.xml
render_particles.cpp
tipsy.h
[root@node2 nbody]# make
>>> WARNING - libGLU.so not
found, refer to CUDA Getting Started Guide for how to find and
install them. <<<</font>
>>> WARNING - libX11.so not
found, refer to CUDA Getting Started Guide for how to find and
install them. <<<</font>
>>> WARNING - glu.h not found,
refer to CUDA Getting Started Guide for how to find and install
them. <<<</font>
>>> WARNING - Xlib.h not found,
refer to CUDA Getting Started Guide for how to find and install
them. <<<</font>
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc
-m64 -ftz=true -gencode arch=compute_20,code=sm_20 -gencode
arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
-gencode arch=compute_37,code=sm_37 -gencode
arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52
-gencode arch=compute_60,code=sm_60 -gencode
arch=compute_60,code=compute_60 -o bodysystemcuda.o -c
bodysystemcuda.cu
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc
-m64 -ftz=true -gencode arch=compute_20,code=sm_20 -gencode
arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
-gencode arch=compute_37,code=sm_37 -gencode
arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52
-gencode arch=compute_60,code=sm_60 -gencode
arch=compute_60,code=compute_60 -o nbody.o -c nbody.cpp
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc
-m64 -ftz=true -gencode arch=compute_20,code=sm_20 -gencode
arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
-gencode arch=compute_37,code=sm_37 -gencode
arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52
-gencode arch=compute_60,code=sm_60 -gencode
arch=compute_60,code=compute_60 -o render_particles.o -c
render_particles.cpp
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -m64 -gencode
arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30
-gencode arch=compute_35,code=sm_35 -gencode
arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50
-gencode arch=compute_52,code=sm_52 -gencode
arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60
-o nbody bodysystemcuda.o nbody.o render_particles.o
-L/usr/lib64/nvidia -lGL -lGLU -lX11 -lglut
[@] mkdir -p ../../bin/ppc64le/linux/release
[@] cp nbody ../../bin/ppc64le/linux/release
解决办法:
安装依赖包:yum install freeglut libXmu-devel
glu*
日志如下:
[root@node2 nbody]# yum install freeglut
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package freeglut.ppc64le 0:2.8.1-3.el7 will be
installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
========================================================================================================================================================================
Installing:
Transaction Summary
========================================================================================================================================================================
Install 1 Package
Total download size: 182 k
Installed size: 679 k
Is this ok [y/d/N]: y
Downloading packages:
freeglut-2.8.1-3.el7.ppc64le.r FAILED
http://mirror.centos.org/altarch/7/os/ppc64le/Packages/freeglut-2.8.1-3.el7.ppc64le.rpm:
[Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2:
Network is unreachable"
Trying other mirror.
freeglut-2.8.1-3.el7.ppc64le.rpm
| 182 kB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installed:
Complete!
[root@node2 nbody]# yum install build
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package build available.
Error: Nothing to do
[root@node2 nbody]# yum install essential
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package essential available.
Error: Nothing to do
[root@node2 nbody]# yum install libxmu
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package libxmu available.
Error: Nothing to do
[root@node2 nbody]# yum install libxmu*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package libxmu* available.
Error: Nothing to do
[root@node2 nbody]# yum install libXmu-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package libXmu-devel.ppc64le 0:1.1.2-2.el7 will be
installed
--> Processing Dependency: libXmu = 1.1.2-2.el7 for
package: libXmu-devel-1.1.2-2.el7.ppc64le
--> Processing Dependency: pkgconfig(xt) for package:
libXmu-devel-1.1.2-2.el7.ppc64le
--> Processing Dependency: pkgconfig(xproto) for package:
libXmu-devel-1.1.2-2.el7.ppc64le
--> Processing Dependency: pkgconfig(xext) for package:
libXmu-devel-1.1.2-2.el7.ppc64le
--> Processing Dependency: pkgconfig(x11) for package:
libXmu-devel-1.1.2-2.el7.ppc64le
--> Processing Dependency: libXmuu.so.1()(64bit) for
package: libXmu-devel-1.1.2-2.el7.ppc64le
--> Processing Dependency: libXmu.so.6()(64bit) for
package: libXmu-devel-1.1.2-2.el7.ppc64le
--> Running transaction check
---> Package libX11-devel.ppc64le 0:1.6.5-1.el7 will be
installed
--> Processing Dependency: pkgconfig(xcb) >= 1.11.1 for
package: libX11-devel-1.6.5-1.el7.ppc64le
--> Processing Dependency: pkgconfig(xcb) for package:
libX11-devel-1.6.5-1.el7.ppc64le
---> Package libXext-devel.ppc64le 0:1.3.3-3.el7 will be
installed
---> Package libXmu.ppc64le 0:1.1.2-2.el7 will be
installed
---> Package libXt-devel.ppc64le 0:1.1.5-3.el7 will be
installed
--> Processing Dependency: pkgconfig(sm) for package:
libXt-devel-1.1.5-3.el7.ppc64le
--> Processing Dependency: pkgconfig(ice) for package:
libXt-devel-1.1.5-3.el7.ppc64le
---> Package xorg-x11-proto-devel.noarch 0:7.7-20.el7 will
be installed
--> Running transaction check
---> Package libICE-devel.ppc64le 0:1.0.9-9.el7 will be
installed
---> Package libSM-devel.ppc64le 0:1.2.2-2.el7 will be
installed
---> Package libxcb-devel.ppc64le 0:1.12-1.el7 will be
installed
--> Processing Dependency: pkgconfig(xau) >= 0.99.2 for
package: libxcb-devel-1.12-1.el7.ppc64le
--> Running transaction check
---> Package libXau-devel.ppc64le 0:1.0.8-2.1.el7 will be
installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
========================================================================================================================================================================
Installing:
Installing for dependencies:
Transaction Summary
========================================================================================================================================================================
Install 1 Package (+9 Dependent
packages)
Total download size: 3.0 M
Installed size: 7.3 M
Is this ok [y/d/N]: y
Downloading packages:
(1/10): libSM-devel-1.2.2-2.el7.ppc64le.rpm
| 12 kB
00:00:06
(2/10): libICE-devel-1.0.9-9.el7.ppc64le.rpm
| 50 kB
00:00:07
(3/10): libXau-devel-1.0.8-2.1.el7.ppc64le.rpm
| 14 kB
00:00:01
(4/10): libXext-devel-1.3.3-3.el7.ppc64le.rpm
| 74 kB
00:00:02
(5/10): libXmu-1.1.2-2.el7.ppc64le.rpm
| 72 kB
00:00:01
(6/10): libXmu-devel-1.1.2-2.el7.ppc64le.rpm
| 24 kB
00:00:00
(7/10): libX11-devel-1.6.5-1.el7.ppc64le.rpm
| 980 kB
00:00:09
(8/10): libXt-devel-1.1.5-3.el7.ppc64le.rpm
| 445 kB
00:00:03
(9/10): xorg-x11-proto-devel-7.7-20.el7.noarch.rpm
| 284 kB
00:00:01
(10/10): libxcb-devel-1.12-1.el7.ppc64le.rpm
| 1.0 MB
00:00:08
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total
120 kB/s | 3.0 MB
00:00:25
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installed:
Dependency Installed:
Complete!
[root@node2 nbody]# yum install libglu
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package libglu available.
Error: Nothing to do
[root@node2 nbody]# yum install libglu*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package freeglut-2.8.1-3.el7.ppc64le already installed and
latest version
Nothing to do
[root@node2 nbody]# make
>>> WARNING - libGLU.so not found, refer to CUDA
Getting Started Guide for how to find and install them.
<<<</div>
>>> WARNING - glu.h not found, refer to CUDA Getting
Started Guide for how to find and install them.
<<<</div>
Package
Arch
Version
Repository
Size
freeglut-devel
ppc64le
2.8.1-3.el7
base
113 k
gl-manpages
noarch
1.1-7.20130122.el7
base
994 k
libXdamage-devel
ppc64le
1.1.4-4.1.el7
base
9.2 k
libXfixes-devel
ppc64le
5.0.3-1.el7
base
12 k
libXxf86vm-devel
ppc64le
1.1.4-1.el7
base
18 k
libdrm-devel
ppc64le
2.4.74-1.el7
base
116 k
mesa-libGL-devel
ppc64le
17.0.1-6.20170307.el7
base
151 k
mesa-libGLU-devel
ppc64le
9.0.0-4.el7
base
8.5 k
Installing :
libXfixes-devel-5.0.3-1.el7.ppc64le
1/8
Installing :
gl-manpages-1.1-7.20130122.el7.noarch
2/8
Installing :
libXdamage-devel-1.1.4-4.1.el7.ppc64le
3/8
Installing :
libdrm-devel-2.4.74-1.el7.ppc64le
4/8
Installing :
libXxf86vm-devel-1.1.4-1.el7.ppc64le
5/8
Installing :
mesa-libGL-devel-17.0.1-6.20170307.el7.ppc64le
6/8
Installing :
mesa-libGLU-devel-9.0.0-4.el7.ppc64le
7/8
Installing :
freeglut-devel-2.8.1-3.el7.ppc64le
8/8
Verifying :
libXxf86vm-devel-1.1.4-1.el7.ppc64le
1/8
Verifying :
mesa-libGLU-devel-9.0.0-4.el7.ppc64le
2/8
Verifying :
libdrm-devel-2.4.74-1.el7.ppc64le
3/8
Verifying :
mesa-libGL-devel-17.0.1-6.20170307.el7.ppc64le
4/8
Verifying :
gl-manpages-1.1-7.20130122.el7.noarch
5/8
Verifying :
libXfixes-devel-5.0.3-1.el7.ppc64le
6/8
Verifying :
libXdamage-devel-1.1.4-4.1.el7.ppc64le
7/8
Verifying :
freeglut-devel-2.8.1-3.el7.ppc64le
8/8
freeglut-devel.ppc64le 0:2.8.1-3.el7
gl-manpages.noarch 0:1.1-7.20130122.el7
libXdamage-devel.ppc64le 0:1.1.4-4.1.el7
libXfixes-devel.ppc64le
0:5.0.3-1.el7
libXxf86vm-devel.ppc64le 0:1.1.4-1.el7
libdrm-devel.ppc64le 0:2.4.74-1.el7
mesa-libGL-devel.ppc64le 0:17.0.1-6.20170307.el7
mesa-libGLU-devel.ppc64le 0:9.0.0-4.el7
-fullscreen
(run n-body simulation in
fullscreen mode)
-fp64
(use double precision floating point values for
simulation)
-hostmem
(stores
simulation data in host memory)
-benchmark
(run benchmark to measure
performance)
-numbodies=
(number of bodies (>= 1) to run in
simulation)
-device=
(where d=0,1,2.... for the CUDA device to
use)
-numdevices= (where
i=(number of CUDA devices > 0) to use for simulation)
-compare
(compares
simulation results running once on the default GPU and once on the
CPU)
-cpu
(run n-body simulation on the
CPU)
-tipsy= (load a tipsy model file for
simulation)
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc
-m64 -ftz=true -gencode arch=compute_20,code=sm_20 -gencode
arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
-gencode arch=compute_37,code=sm_37 -gencode
arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52
-gencode arch=compute_60,code=sm_60 -gencode
arch=compute_60,code=compute_60 -o bodysystemcuda.o -c
bodysystemcuda.cu
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc
-m64 -ftz=true -gencode arch=compute_20,code=sm_20 -gencode
arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
-gencode arch=compute_37,code=sm_37 -gencode
arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52
-gencode arch=compute_60,code=sm_60 -gencode
arch=compute_60,code=compute_60 -o nbody.o -c nbody.cpp
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc
-m64 -ftz=true -gencode arch=compute_20,code=sm_20 -gencode
arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
-gencode arch=compute_37,code=sm_37 -gencode
arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52
-gencode arch=compute_60,code=sm_60 -gencode
arch=compute_60,code=compute_60 -o render_particles.o -c
render_particles.cpp
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -m64 -gencode
arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30
-gencode arch=compute_35,code=sm_35 -gencode
arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50
-gencode arch=compute_52,code=sm_52 -gencode
arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60
-o nbody bodysystemcuda.o nbody.o render_particles.o
-L/usr/lib64/nvidia -lGL -lGLU -lX11 -lglut
[@] mkdir -p ../../bin/ppc64le/linux/release
[@] cp nbody ../../bin/ppc64le/linux/release
[root@node2 nbody]# yum install glu*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package freeglut-2.8.1-3.el7.ppc64le already installed and
latest version
Resolving Dependencies
--> Running transaction check
---> Package freeglut-devel.ppc64le 0:2.8.1-3.el7 will be
installed
--> Processing Dependency: libGLU-devel for package:
freeglut-devel-2.8.1-3.el7.ppc64le
--> Processing Dependency: libGL-devel for package:
freeglut-devel-2.8.1-3.el7.ppc64le
--> Running transaction check
---> Package mesa-libGL-devel.ppc64le
0:17.0.1-6.20170307.el7 will be installed
--> Processing Dependency: pkgconfig(libdrm) >= 2.4.66
for package: mesa-libGL-devel-17.0.1-6.20170307.el7.ppc64le
--> Processing Dependency: pkgconfig(xxf86vm) for package:
mesa-libGL-devel-17.0.1-6.20170307.el7.ppc64le
--> Processing Dependency: pkgconfig(xfixes) for package:
mesa-libGL-devel-17.0.1-6.20170307.el7.ppc64le
--> Processing Dependency: pkgconfig(xdamage) for package:
mesa-libGL-devel-17.0.1-6.20170307.el7.ppc64le
--> Processing Dependency: gl-manpages for package:
mesa-libGL-devel-17.0.1-6.20170307.el7.ppc64le
---> Package mesa-libGLU-devel.ppc64le 0:9.0.0-4.el7 will
be installed
--> Running transaction check
---> Package gl-manpages.noarch 0:1.1-7.20130122.el7 will
be installed
---> Package libXdamage-devel.ppc64le 0:1.1.4-4.1.el7 will
be installed
---> Package libXfixes-devel.ppc64le 0:5.0.3-1.el7 will be
installed
---> Package libXxf86vm-devel.ppc64le 0:1.1.4-1.el7 will be
installed
---> Package libdrm-devel.ppc64le 0:2.4.74-1.el7 will be
installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
========================================================================================================================================================================
Installing:
Installing for dependencies:
Transaction Summary
========================================================================================================================================================================
Install 1 Package (+7 Dependent
packages)
Total download size: 1.4 M
Installed size: 2.8 M
Is this ok [y/d/N]: y
Downloading packages:
(1/8): freeglut-devel-2.8.1-3.el7.ppc64le.rpm
| 113 kB
00:00:08
(2/8): libXdamage-devel-1.1.4-4.1.el7.ppc64le.rpm
| 9.2 kB
00:00:00
(3/8): libXfixes-devel-5.0.3-1.el7.ppc64le.rpm
| 12 kB
00:00:00
(4/8): libXxf86vm-devel-1.1.4-1.el7.ppc64le.rpm
| 18 kB
00:00:00
(5/8): libdrm-devel-2.4.74-1.el7.ppc64le.rpm
| 116 kB
00:00:00
(6/8): mesa-libGL-devel-17.0.1-6.20170307.el7.ppc64le.rpm
| 151 kB
00:00:00
(7/8): mesa-libGLU-devel-9.0.0-4.el7.ppc64le.rpm
| 8.5 kB
00:00:00
(8/8): gl-manpages-1.1-7.20130122.el7.noarch.rpm
| 994 kB
00:00:15
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total
94 kB/s |
1.4 MB 00:00:15
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installed:
Dependency Installed:
Complete!
[root@node2 nbody]# make
/usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc
-m64
-ftz=true -gencode arch=compute_20,code=sm_20
-gencode arch=compute_30,code=sm_30 -gencode
arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37
-gencode arch=compute_50,code=sm_50 -gencode
arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60
-gencode arch=compute_60,code=compute_60 -o bodysystemcuda.o -c
bodysystemcuda.cu
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21'
architectures are deprecated, and may be removed in a future
release (Use -Wno-deprecated-gpu-targets to suppress
warning).
/usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc
-m64
-ftz=true -gencode arch=compute_20,code=sm_20
-gencode arch=compute_30,code=sm_30 -gencode
arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37
-gencode arch=compute_50,code=sm_50 -gencode
arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60
-gencode arch=compute_60,code=compute_60 -o nbody.o -c
nbody.cpp
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21'
architectures are deprecated, and may be removed in a future
release (Use -Wno-deprecated-gpu-targets to suppress
warning).
/usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc
-m64
-ftz=true -gencode arch=compute_20,code=sm_20
-gencode arch=compute_30,code=sm_30 -gencode
arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37
-gencode arch=compute_50,code=sm_50 -gencode
arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60
-gencode arch=compute_60,code=compute_60 -o render_particles.o -c
render_particles.cpp
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21'
architectures are deprecated, and may be removed in a future
release (Use -Wno-deprecated-gpu-targets to suppress
warning).
/usr/local/cuda-8.0/bin/nvcc -ccbin g++
-m64
-gencode arch=compute_20,code=sm_20 -gencode
arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35
-gencode arch=compute_37,code=sm_37 -gencode
arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52
-gencode arch=compute_60,code=sm_60 -gencode
arch=compute_60,code=compute_60 -o nbody bodysystemcuda.o nbody.o
render_particles.o -L/usr/lib64/nvidia -lGL -lGLU
-lX11 -lglut
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21'
architectures are deprecated, and may be removed in a future
release (Use -Wno-deprecated-gpu-targets to suppress
warning).
mkdir -p ../../bin/ppc64le/linux/release
cp nbody ../../bin/ppc64le/linux/release
[root@node2 nbody]# ls
bodysystemcpu.h
bodysystemcuda.h
bodysystem.h
galaxy_20K.bin nbody.cpp
readme.txt
render_particles.o
bodysystemcpu_impl.h bodysystemcuda_impl.h
doc
Makefile
nbody.o
render_particles.cpp
tipsy.h
bodysystemcuda.cu
bodysystemcuda.o
findgllib.mk nbody
NsightEclipse.xml
render_particles.h
[root@node2 nbody]# ./nbody
Run "nbody -benchmark [-numbodies=]" to measure
performance.
NOTE: The CUDA Samples are not meant for performance
measurements. Results may vary when GPU Boost is enabled.
> Windowed mode
> Simulation data stored in video memory
> Single precision floating point simulation
> 1 Devices used for simulation
freeglut (./nbody): failed to open display ':0'
[root@node2 nbody]#