Skip to content

Commit

Permalink
feat: additional teardown handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dPys committed Dec 16, 2024
1 parent 8109dd9 commit e76e761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nxbench/benchmarks/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ def prepare_benchmark(
except ImportError:
logger.exception("nx-parallel backend not available")
return None
nx.config.backends.parallel.active = True
nx.config.backends.parallel.n_jobs = num_thread
return nxp.ParallelGraph(original_graph)

if "cugraph" in backend and is_nx_cugraph_available():
Expand Down

0 comments on commit e76e761

Please sign in to comment.