Make temp dir
Changed cuda settings to best fit the problem