---
# System prepended metadata

title: GPU版HPL

---

# GPU版HPL

安裝於NSCC(使用CUDA7.5)
流程見[流程](/Sk9NcGScd)

參考網站
[參考一](http://blog.sina.cn/dpool/blog/s/blog_699f1fcc0101149h.html)
[參考二](https://luyanan.com/article/info/19561499527168.html)
[參考三](https://www.796t.com/article.php?id=98046)
[參考四](https://www.itread01.com/content/1538226309.html)
[參考五](https://unix.stackexchange.com/questions/594250/compiling-hpl-2-0-fermiv15)
[參考六](https://www.itread01.com/content/1538226309.html)

## 資源
wget http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/15816/l_mkl_2019.5.281.tgz

wget https://files.cnblogs.com/files/liu-shaobo/hpl-2.0_FERMI_v15.tar.gz

## MODULE LOAD
module load cuda/7.5

## EXPORT指令
```
export PATH=$PATH:/home/users/industry/isc2020/iscst04/scratch/hpcc/openmpi-3.1.4.i/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/users/industry/isc2020/iscst04/scratch/hpcc/openmpi-3.1.4.i/lib
export PATH=/app/cuda/7.5/bin:$PATH
export CPATH=/app/cuda/7.5/include:$CPATH

export LIBRARY_PATH=/app/cuda/7.5/lib64:$LIBRARY_PATH
export LIBRARY_PATH=/app/cuda/7.5/lib:$LIBRARY_PATH
export LIBRARY_PATH=/app/cuda/7.5/lib64/stubs:$LIBRARY_PATH
export LIBRARY_PATH=/home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/l_mkl_2019.5.281/compilers_and_libraries/linux/lib/intel64:$LIBRARY_PATH
export LIBRARY_PATH=/home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/hpl-2.0_FERMI_v15/src/cuda:$LIBRARY_PATH
export LIBRARY_PATH=/home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/l_mkl_2019.5.281/mkl/lib/intel64:$LIBRARY_PATH

export LD_LIBRARY_PATH=/app/cuda/7.5/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/app/cuda/7.5/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/app/cuda/7.5/lib64/stubs:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/l_mkl_2019.5.281/compilers_and_libraries/linux/lib/intel64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/hpl-2.0_FERMI_v15/src/cuda:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/l_mkl_2019.5.281/mkl/lib/intel64:$LD_LIBRARY_PATH
```





## Make.CUDA 參數
```
TOPdir      = /home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/hpl-2.0_FERMI_v15

MPdir       = /home/users/industry/isc2020/iscst04/scratch/hpcc/openmpi-3.1.4.i

LAdir       = /home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/l_mkl_2019.5.281/mkl/lib/intel64

LAMP5dir    = /home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/l_mkl_2019.5.281/compilers_and_libraries/linux/lib/intel64

LAinc       = -I/home/users/industry/isc2020/iscst04/scratch/hpcc/gpu/l_mkl_2019.5.281/mkl/include -I/app/cuda/7.5/include

LAlib        = -L $(TOPdir)/src/cuda  -ldgemm -L/app/cuda/7.5/lib64 -lcuda -lcudart -lcublas -L$(LAdir) -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5

HPL_INCLUDES = -I$(INCdir) -I$(INCdir)/$(ARCH) $(LAinc) $(MPinc) -I/app/cuda/7.5/include 
```