ramdisk for /tmp to speed compile? can nvcc use /dev/shm instead of /tmp
Both Ubuntu and Fedora enable /dev/shm by default as a filesystem in RAM. Is there any way to tell nvcc to use this folder for scratch space rather than /tmp in order to speed compile times?
Both Ubuntu and Fedora enable /dev/shm by default as a filesystem in RAM. Is there any way to tell nvcc to use this folder for scratch space rather than /tmp in order to speed compile times?

#1
Posted 04/26/2012 02:39 PM   
Usually, compilers use the TMPDIR environment variable, if set, to store the temporary files. What about trying it?
[code]
$ nvcc -c conflicts.cu
$ TMPDIR=/foo nvcc -c conflicts.cu
nvopencc ERROR: $TMPDIR does not exist: /foo
[/code]
Usually, compilers use the TMPDIR environment variable, if set, to store the temporary files. What about trying it?



$ nvcc -c conflicts.cu

$ TMPDIR=/foo nvcc -c conflicts.cu

nvopencc ERROR: $TMPDIR does not exist: /foo

#2
Posted 04/26/2012 02:49 PM   
Scroll To Top