Skip to content

Commit 4fce731

Browse files
committed
add singlethread test
1 parent 7273773 commit 4fce731

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MCintegration/mc_multicpu_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def two_integrands(x, f):
7979
if dist.is_initialized():
8080
dist.destroy_process_group()
8181

82+
def test_mcmc_singlethread():
83+
world_size = 1
84+
init_process(rank=0, world_size=world_size, fn=run_mcmc, backend=backend)
8285

8386
def test_mcmc(world_size=2):
8487
# Use fewer processes than CPU cores to avoid resource contention

0 commit comments

Comments
 (0)