Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UEABS
ueabs
Commits
c79ab795
Commit
c79ab795
authored
Dec 18, 2018
by
Cedric Jourdain
Browse files
Add script part for davide
parent
34f69a34
Changes
1
Hide whitespace changes
Inline
Side-by-side
specfem3d/compile.sh
View file @
c79ab795
...
...
@@ -6,6 +6,7 @@ echo " - marenostrum "
echo
" - marconi-knl "
echo
" - daint-gpu "
echo
" - daint-mc "
echo
" - davide "
read
machine
source
./env/env_
${
machine
}
...
...
@@ -55,16 +56,18 @@ Install(){
rm
-rf
SPECFEM3D_TestCaseB
fi
cd
$install_dir
/specfem3d_globe
if
[
$machine
=
"daint-gpu"
]
;
then
if
[
$machine
=
"daint-gpu"
]
||
[
$machine
=
"davide"
]
;
then
echo
"Configure for CPU+GPU system"
### replace `use mpi` if needed ###
#cd utils
#perl replace_use_mpi_with_include_mpif_dot_h.pl
#cd ..
sed
-i
s/
"GPU_MODE = .false."
/
"GPU_MODE = .true."
/g
$install_dir
/specfem3d_globe/DATA/Par_file
export
MPI_INC
=
$MPICH_DIR
/include
export
CUDA_LIB
=
"
$CUDATOOLKIT_HOME
/lib64"
export
CUDA_INC
=
"
$CUDATOOLKIT_HOME
/include"
if
[
$machine
=
"daint-gpu"
]
;
then
export
MPI_INC
=
$MPICH_DIR
/include
export
CUDA_LIB
=
"
$CUDATOOLKIT_HOME
/lib64"
export
CUDA_INC
=
"
$CUDATOOLKIT_HOME
/include"
fi
./configure
--build
=
ppc64
--with-cuda
=
cuda5
else
echo
"Configure for CPU only system"
...
...
@@ -91,12 +94,12 @@ Clean(){
Deploy
(){
echo
"install_dir ="
$install_dir
if
[
$machine
=
"occigen"
]
||
[
$machine
=
"marenostrum"
]
||
[
$machine
=
"marconi-knl"
]
||
[
$machine
=
"daint-mc"
]
||
[
$machine
=
"daint-gpu"
]
;
then
if
[
$machine
=
"occigen"
]
||
[
$machine
=
"marenostrum"
]
||
[
$machine
=
"marconi-knl"
]
||
[
$machine
=
"daint-mc"
]
||
[
$machine
=
"daint-gpu"
]
||
[
$machine
=
"davide"
]
;
then
echo
"==> Install on
$machine
:"
#Clean
mkdir
-p
$install_dir
export
ueabs_dir
=
`
pwd
`
Untar
#
Untar
Install
else
echo
"Wrong machine !"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment