Skip to content

Commit

Permalink
More test hangs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Dec 10, 2023
1 parent b825abb commit ff8cc01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Makevars
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PKG_CPPFLAGS = -I"../inst/include" -I"../inst/include/sundials" -I"./sundials/sundials" -D_REENTRANT -DSTAN_THREADS
PKG_CPPFLAGS += -DSTRICT_R_HEADERS -D_HAS_AUTO_PTR_ETC=0 -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
PKG_CPPFLAGS += -DRCPP_PARALLEL_USE_TBB=1
PKG_CPPFLAGS += $(shell "${R_HOME}/bin/Rscript" -e "RcppParallel::CxxFlags()" | tail -n 1)
PKG_CPPFLAGS += -include ../inst/include/sundials/stan_sundials_printf_override.hpp
PKG_LIBS = $(shell "${R_HOME}/bin/Rscript" -e "RcppParallel::RcppParallelLibs()" | tail -n 1)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-basic.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test_that("stan_sample runs", {
expect_no_error(
samp_gd_par <- stan_sample(loglik_fun, inits, additional_args = list(y), grad_fun = grad,
lower = c(-Inf, 0), num_threads = 2,
num_chains = 2, seed = 1234)
num_chains = 1, seed = 1234)
)
expect_no_error(
samp_gd_dense <- stan_sample(loglik_fun, inits, additional_args = list(y), grad_fun = grad,
Expand Down Expand Up @@ -84,7 +84,7 @@ test_that("stan_pathfinder runs", {
)
expect_no_error(
path_gd_par <- stan_pathfinder(loglik_fun, inits, additional_args = list(y), grad_fun = grad,
num_threads = 2, num_paths = 2, lower = c(-Inf, 0), seed = 1234)
num_threads = 2, num_paths = 1, lower = c(-Inf, 0), seed = 1234)
)
})

Expand Down

0 comments on commit ff8cc01

Please sign in to comment.