some modifications to calculate speedup, cuda-5.5 adaptance