Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
specfem3d/compile.sh
specfem3d/compile.sh
+9
-6
No files found.
specfem3d/compile.sh
View file @
c79ab795
...
@@ -6,6 +6,7 @@ echo " - marenostrum "
...
@@ -6,6 +6,7 @@ echo " - marenostrum "
echo
" - marconi-knl "
echo
" - marconi-knl "
echo
" - daint-gpu "
echo
" - daint-gpu "
echo
" - daint-mc "
echo
" - daint-mc "
echo
" - davide "
read
machine
read
machine
source
./env/env_
${
machine
}
source
./env/env_
${
machine
}
...
@@ -55,16 +56,18 @@ Install(){
...
@@ -55,16 +56,18 @@ Install(){
rm
-rf
SPECFEM3D_TestCaseB
rm
-rf
SPECFEM3D_TestCaseB
fi
fi
cd
$install_dir
/specfem3d_globe
cd
$install_dir
/specfem3d_globe
if
[
$machine
=
"daint-gpu"
]
;
then
if
[
$machine
=
"daint-gpu"
]
||
[
$machine
=
"davide"
]
;
then
echo
"Configure for CPU+GPU system"
echo
"Configure for CPU+GPU system"
### replace `use mpi` if needed ###
### replace `use mpi` if needed ###
#cd utils
#cd utils
#perl replace_use_mpi_with_include_mpif_dot_h.pl
#perl replace_use_mpi_with_include_mpif_dot_h.pl
#cd ..
#cd ..
sed
-i
s/
"GPU_MODE = .false."
/
"GPU_MODE = .true."
/g
$install_dir
/specfem3d_globe/DATA/Par_file
sed
-i
s/
"GPU_MODE = .false."
/
"GPU_MODE = .true."
/g
$install_dir
/specfem3d_globe/DATA/Par_file
export
MPI_INC
=
$MPICH_DIR
/include
if
[
$machine
=
"daint-gpu"
]
;
then
export
CUDA_LIB
=
"
$CUDATOOLKIT_HOME
/lib64"
export
MPI_INC
=
$MPICH_DIR
/include
export
CUDA_INC
=
"
$CUDATOOLKIT_HOME
/include"
export
CUDA_LIB
=
"
$CUDATOOLKIT_HOME
/lib64"
export
CUDA_INC
=
"
$CUDATOOLKIT_HOME
/include"
fi
./configure
--build
=
ppc64
--with-cuda
=
cuda5
./configure
--build
=
ppc64
--with-cuda
=
cuda5
else
else
echo
"Configure for CPU only system"
echo
"Configure for CPU only system"
...
@@ -91,12 +94,12 @@ Clean(){
...
@@ -91,12 +94,12 @@ Clean(){
Deploy
(){
Deploy
(){
echo
"install_dir ="
$install_dir
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
:"
echo
"==> Install on
$machine
:"
#Clean
#Clean
mkdir
-p
$install_dir
mkdir
-p
$install_dir
export
ueabs_dir
=
`
pwd
`
export
ueabs_dir
=
`
pwd
`
Untar
#
Untar
Install
Install
else
else
echo
"Wrong machine !"
echo
"Wrong machine !"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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