Skip to content

Tag Archives: openmp

Drop-Cutter examples

I've experimented with using OpenMP to calculate drop-cutter toolpaths on a quad-core machine. These now run reasonably fast. There are obvious lurking bugs with BallCutter and BullCutter still... Code is here: code.google.com/p/opencamlib/ (if you know C++, computational geometry, and cnc-machining, or are willing to learn, this project needs your help!) See also: styrofoam spider

OpenMP test on i7

Here's a simple piece of c-code (try zipped version) for testing how to parallelize code with OpenMP. It compiles with gcc -fopenmp -lm otest.c The CPU-load while running looks like this: Looks like two logical CPUs never get used (two low lines beyond "5" in the chart). It outputs some timing information: running with 1 threads: [...]