Made Makefile more portable using CUDA_DIR rather than just nvcc and CUDA_LIBDIR.
bench script generalized to allow passing device ordinal parameter to executable.