Add cuda vs non-cuda with variable # of threads