Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/tests/dtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int main(int argc, char * argv[])
{
read_args(argc, argv);

SetResources(options.memory_mb_, options.num_threads_);
SetResources(options.memory_mb_, 0);

DDSInfo info;
GetDDSInfo(&info);
Expand Down
2 changes: 1 addition & 1 deletion library/tests/itest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int main(int argc, char * argv[])
{
read_args(argc, argv);

SetResources(options.memory_mb_, options.num_threads_);
SetResources(options.memory_mb_, 0);

DDSInfo info;
GetDDSInfo(&info);
Expand Down
8 changes: 5 additions & 3 deletions library/tests/loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ bool loop_calc(
setw(25) << right << "Time" << "\n";
#endif

int filter[5] = {0, 0, 0, 0, 0};

int filter[DDS_STRAINS] = {0, 0, 0, 0, 0};
const int strain_count = DDS_STRAINS;
for (int i = 0; i < number; i += stepsize)
{
int count = (i + stepsize > number ? number - i : stepsize);
Expand All @@ -128,7 +128,9 @@ bool loop_calc(
strcpy(dealsp->deals[j].cards, deal_list[i+j].remainCards);

timer.start(count);
const int ret = CalcAllTablesPBN(dealsp, -1, filter, resp, parp);
const int workload = count * strain_count;
const int threads = dtest_effective_threads(options.num_threads_, workload);
const int ret = CalcAllTablesPBNN(dealsp, -1, filter, resp, parp, threads);
if (ret != RETURN_NO_FAULT)
{
cout << "loop_calc: i " << i << ", return " << ret << "\n";
Expand Down
Loading