Commit b966326f authored by incardon's avatar incardon
Browse files

Adding gpu support in the pipeline

parent 7411bb4e
......@@ -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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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment