adc-connect / adcc

adcc: Seamlessly connect your program to ADC
https://adc-connect.org
GNU General Public License v3.0
32 stars 19 forks source link

How to change the location of scratch directory #150

Closed ggdhzdx closed 2 years ago

ggdhzdx commented 2 years ago

My 500GB /tmp directory is not large enough for ADC2 calculation and "No space left on device" erros raises as below:

[Errno 28] Can't write data (file write failed: time = Wed Mar 16 14:37:59 2022
, filename = '/tmp/tmpz2zekel8', file descriptor = 6, errno = 28, error message = 'No space left on device', buf = 0x151316c52c90, total write size = 83890048, bytes this sub-write = 83890048, bytes actually written = 18446744073709551615, offset = 0)

I search the docs for methods to change the location of scratch dir but failed

maxscheurer commented 2 years ago

Are you using adcc in combination with pyscf? This looks to me like the pyscf scratch file/directory. BTW if you don't use the libxm allocator in adcc, adcc itself won't write anything to disk, it keeps everything in RAM.

ggdhzdx commented 2 years ago

Yes, problem solved! It's a pyscf scrach directory. Thanks a lot