Skip to content

Commit

Permalink
[GraphBolt][CUDA] GPUGraphCache is being unnecessarily created.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbalin committed Jul 24, 2024
1 parent 849f1ce commit 06167d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dgl/graphbolt/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def __init__(
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
)
Expand Down

0 comments on commit 06167d8

Please sign in to comment.