root / addons / Build.Debian_CUBLAS.sh
Historique | Voir | Annoter | Télécharger (798 octet)
1 |
# CUBLAS script to build HPL using CUBLAS Thunking |
---|---|
2 |
# |
3 |
# 2010-11-26 : Initial release |
4 |
# Emmanuel Quemener <emmanuel.quemener@ens-lyon.fr> |
5 |
# |
6 |
# Copy this script on HPL root folder and execute |
7 |
|
8 |
# Define root folder for CUDA toolkit (default dir is /usr/local/cuda) |
9 |
CUDASRC=/opt/cuda |
10 |
# Clean all objects files |
11 |
find . -name "*.o" -exec rm {} \; |
12 |
# Copy of source for thunking CUBLAS approach |
13 |
cp $CUDASRC/src/fortran_thunking.c $CUDASRC/src/fortran_thunking.h $CUDASRC/src/fortran_common.h . |
14 |
# Patch Thunking prototypes to compile on Debian Lenny |
15 |
patch fortran_common.h patch_thunking.h |
16 |
# patching file fortran_common.h |
17 |
gcc -funroll-loops -W -I$CUDASRC/include -Wall -O3 -c fortran_thunking.c |
18 |
# Clean old builds |
19 |
make arch=Debian_CUBLAS_OpenMPI clean_all_arch |
20 |
# Compile HPL |
21 |
make arch=Debian_CUBLAS_OpenMPI |