编译Cuda Accelrated Linpack hpl_2.0_FERMI时出错


0

我用

  • Ubuntu 11.04 x86_64
  • CUDA 4.0
  • OpenMpi 1.4稳定
  • MKL

编译时,出现以下错误:

ar r -L/home/limksadmin/hpl-2.0_FERMI_v13/lib/CUDA/libhpl.a  HPL_dlacpy.o           HPL_dlatcpy.o          HPL_fprintf.o HPL_warn.o             HPL_abort.o            HPL_dlaprnt.o HPL_dlange.o HPL_dlamch.o
ar: -L/home/limksadmin/hpl-2.0_FERMI_v13/lib/CUDA/libhpl.a: No such file or directory
make[2]: *** [lib.grd] Error 9
make[2]: Leaving directory `/home/limksadmin/hpl-2.0_FERMI_v13/src/auxil/CUDA'
make[1]: *** [build_src] Error 2
make[1]: Leaving directory `/home/limksadmin/hpl-2.0_FERMI_v13'
make: *** [build] Error 2

Make.CUDA:

LAdir        = /opt/intel/mkl/lib/intel64
LAlib        = -L $(TOPdir)/src/cuda  -ldgemm -L/usr/local/cuda/lib64 -lcuda -lcudart -lcublas -L$(LAdir) -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5
MPdir        = /usr/local/mpi/openmpi
MPinc        = -I$(MPdir)/include
MPlib        = -L$(MPdir)/lib/libmpi.so

CC      = /usr/local/mpi/openmpi/bin/mpicc

可能是什么问题呢?

Answers:


1
ar: -L/home/limksadmin/hpl-2.0_FERMI_v13/lib/CUDA/libhpl.a: No such file or directory

此行表示无法为CUDA找到正确的HPL静态库文件。您可以尝试做的一件事(如果您确定自己是100%肯定的,则Makefile中的所有设置都正确设置)是将确切的路径(不带文件名)添加到LD_LIBRARY_PATH环境变量中:

export LD_LIBRARY_PATH=/home/limksadmin/hpl-2.0_FERMI_v13/lib/CUDA/:$LD_LIBRARY_PATH

0

尝试更换-openmp-fopenmpCCFLAGS变量。

这样指定可用于Intel编译器,但是这样的概念使gcc混淆(这是默认的ubuntu OpenMPI安装的基础),使其认为penmp是所需的输出文件名(实际上并非如此)。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.