diff --git a/build.sh b/build.sh
index ac52a8a7921f440d89cd7969213a25a87e794b20..3008fc171e756b2d343e4bb9898573329e03479d 100755
--- a/build.sh
+++ b/build.sh
@@ -34,8 +34,11 @@ if [ ! -d $HOME/openfpm_dependencies/openfpm_devices/BOOST ]; then
         fi
 fi
 
-sh ./autogen.sh
-sh ./configure --with-boost=$HOME/openfpm_dependencies/openfpm_devices/BOOST --enable-cuda-on-cpu
+if [ x"$hostname" == x"cifarm-mac-node.mpi-cbg.de"  ]; then
+	./configure --with-boost=$HOME/openfpm_dependencies/openfpm_devices/BOOST --enable-cuda-on-cpu
+else
+	./configure --with-boost=$HOME/openfpm_dependencies/openfpm_devices/BOOST --with-cuda-on-backend=OpenMP
+fi
 
 make VERBOSE=1