mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-05 20:42:11 -07:00
set CUDA_CACHE_MAXSIZE to 2gb before first cuda load
This commit is contained in:
parent
637c2b2a9b
commit
cc950f12fb
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ class Devices(object):
|
|||
os.environ['NN_DEVICES_INITIALIZED'] = '1'
|
||||
os.environ['NN_DEVICES_COUNT'] = '0'
|
||||
|
||||
os.environ['CUDA_CACHE_MAXSIZE'] = '2147483647'
|
||||
min_cc = int(os.environ.get("TF_MIN_REQ_CAP", 35))
|
||||
libnames = ('libcuda.so', 'libcuda.dylib', 'nvcuda.dll')
|
||||
for libname in libnames:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue