File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 9
9
# Set CUDA context to lazy loading since we won't need 95% of the modules in Torch
10
10
os .environ ["CUDA_MODULE_LOADING" ] = "LAZY"
11
11
12
- # Set cudaMallocAsync allocator by default as it appears slightly more memory efficient, unless Torch is already
13
- # imported in which case changing the allocator would cause it to crash
14
- if not "PYTORCH_CUDA_ALLOC_CONF" in os .environ :
15
- try :
16
- x = torch .__version__
17
- # TODO: Should maybe be a warning here?
18
- except NameError :
19
- os .environ ["PYTORCH_CUDA_ALLOC_CONF" ] = "backend:cudaMallocAsync"
12
+ # Disabled for 0.0.13.post2
13
+ #
14
+ # # Set cudaMallocAsync allocator by default as it appears slightly more memory efficient, unless Torch is already
15
+ # # imported in which case changing the allocator would cause it to crash
16
+ # if not "PYTORCH_CUDA_ALLOC_CONF" in os.environ:
17
+ # try:
18
+ # x = torch.__version__
19
+ # # TODO: Should maybe be a warning here?
20
+ # except NameError:
21
+ # os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "backend:cudaMallocAsync"
20
22
21
23
import torch
22
24
import math
You can’t perform that action at this time.
0 commit comments