Skip to content

Commit

Permalink
fix: add missing vanilla graphblas import
Browse files Browse the repository at this point in the history
  • Loading branch information
dPys committed Dec 11, 2024
1 parent 0e95e67 commit a3731a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nxbench/benchmarks/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,14 @@ def prepare_benchmark(

if "graphblas" in backend and is_graphblas_available():
try:
gb = import_module("graphblas")
ga = import_module("graphblas_algorithms")
except ImportError:
logger.exception("graphblas_algorithms backend not available")
return None
try:
logger.info(
f"GraphBlas Algorithms nthreads={ga.ss.config['nthreads']} "
f"GraphBlas Algorithms nthreads={gb.ss.config['nthreads']} "
)
return ga.Graph.from_networkx(original_graph)
except Exception:
Expand Down
2 changes: 2 additions & 0 deletions nxbench/configs/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ validation:
matrix:
backend:
- "networkx"
- "parallel"
- "graphblas"
num_threads:
- "1"
Expand All @@ -250,6 +251,7 @@ matrix:
env_config:
req:
- "networkx==3.4.2"
- "nx-parallel-0.3rc0.dev0"
- "graphblas_algorithms==2023.10.0"
pythons:
- "3.10"
Expand Down

0 comments on commit a3731a9

Please sign in to comment.