added parallelisation for volume calculation depending on gpu capability