MCPcopy Create free account
hub / github.com/dds-bridge/dds / main

Function main

examples/calc_par_context_example.cpp:168–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166
167
168auto main() -> int
169{
170 printf("DDS Examples: Par Calculation with SolverContext\n");
171 printf("================================================\n");
172
173#if defined(__linux) || defined(__APPLE__)
174 SetMaxThreads(0);
175#endif
176
177 // Run examples
178 example_without_context();
179 example_with_context();
180 example_mixed_usage();
181 print_python_example();
182
183 printf("\n=== Summary ===\n");
184 printf("✓ SolverContext provides resource management\n");
185 printf("✓ Backward compatible - traditional API still works\n");
186 printf("✓ Python bindings demonstrate context advantages\n");
187 printf("✓ Transposition table reuse across operations\n");
188 printf("✓ Improved efficiency for batch processing\n");
189
190 return 0;
191}
192
193

Callers

nothing calls this directly

Calls 5

SetMaxThreadsFunction · 0.85
example_without_contextFunction · 0.85
example_with_contextFunction · 0.85
example_mixed_usageFunction · 0.85
print_python_exampleFunction · 0.85

Tested by

no test coverage detected