Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F86413615
run.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Oct 6, 08:40
Size
752 B
Mime Type
text/x-shellscript
Expires
Tue, Oct 8, 08:40 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
21419008
Attached To
rTSUNAMIPROJECT PHPC-TSUNAMI-PROJECT
run.sh
View Options
#!/bin/bash
if
[
! -d
"Source"
]
;
then
read
-p
"The directory Source with all the files does not seem to exist. Do you want to download it ? [Yy/Nn] "
-n 1 -r
echo
# (optional) move to a new line
if
[[
$REPLY
=
~ ^
[
Yy
]
$
]]
then
wget https://drive.switch.ch/index.php/s/bTf4FbG4upj2ySV/download
fi
fi
if
[
"$1"
=
"SEQ"
]
;
then
cd
SEQUENTIAL
mkdir -p build
cd
build
cmake ..
make
./phpctsunamiproject
elif
[
"$1"
=
"OpenMP"
]
;
then
cd
OpenMP
mkdir -p build
cd
build
cmake ..
make
./phpctsunamiproject
elif
[
"$1"
=
"clean"
]
;
then
rm -rf */build
else
cd
MPI
mkdir -p build
cd
build
cmake ..
make
srun -n 16 phpctsunamiproject
fi
## https://drive.switch.ch/index.php/s/bTf4FbG4upj2ySV/download
Event Timeline
Log In to Comment