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
argupta
openfpm_pdata
Commits
b966326f
Commit
b966326f
authored
Dec 26, 2018
by
incardon
Browse files
Adding gpu support in the pipeline
parent
7411bb4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
build.sh
View file @
b966326f
...
...
@@ -7,6 +7,7 @@ hostname=$(hostname)
target
=
$3
comp_type
=
$4
branch
=
$5
with_gpu
=
$6
if
[
x
"
$branch
"
==
x
""
]
;
then
echo
"Getting branch from git"
...
...
@@ -45,6 +46,11 @@ else
dependency_dir
=
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
fi
if
[
x
"
$with_gpu
"
==
x
"1"
]
;
then
gpu_support
=
-g
else
gpu_support
=
fi
#### If you have a dep_dir file change the branch name to the dep_dir
...
...
@@ -88,8 +94,8 @@ elif [ x"$comp_type" == x"numerics" ]; then
source
$HOME
/openfpm_vars_
$branch
make
VERBOSE
=
1
-j
8
else
echo
"Installing with: ./install -i
$dependency_dir
-m -s -c
\"
$installation_dir
--no-recursion
\"
"
./install
-i
$dependency_dir
-m
-s
-c
"
$installation_dir
"
echo
"Installing with: ./install
$gpu_support
-i
$dependency_dir
-m -s -c
\"
$installation_dir
--no-recursion
\"
"
./install
$gpu_support
-i
$dependency_dir
-m
-s
-c
"
$installation_dir
"
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$hostname
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
...
...
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