fix cmake file: ptx code

- fix that source code was not shown in ptx code
- fix that nvcc flags were mixed up
- add binary dir to --keep-dir in memtest cmake file