mirror of
https://github.com/dmlc/dgl.git
synced 2026-06-03 19:34:33 +08:00
[GraphBolt][CUDA] GPUGraphCache is being unnecessarily created. (#7577)
This commit is contained in:
committed by
GitHub
parent
849f1ce4b2
commit
7551a5da2e
@@ -209,7 +209,7 @@ class DataLoader(torch.utils.data.DataLoader):
|
||||
executor = ThreadPoolExecutor(max_workers=1)
|
||||
gpu_graph_cache = None
|
||||
for sampler in samplers:
|
||||
if gpu_graph_cache is None:
|
||||
if num_gpu_cached_edges > 0 and gpu_graph_cache is None:
|
||||
gpu_graph_cache = construct_gpu_graph_cache(
|
||||
sampler, num_gpu_cached_edges, gpu_cache_threshold
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user