TheDigitalFrontier / parallel-decision-trees

Semester project in CS205 Computing Foundations for Computational Science at Harvard School of Engineering and Applied Sciences, spring 2020.
MIT License
3 stars 1 forks source link

OpenMP parallelise mostly everything #112

Closed johannes-kk closed 4 years ago

johannes-kk commented 4 years ago

Add OpenMP pragmas to DecisionTree.predict(), DecisionTree.findBestSplit(), RandomForest.fit(), and DataFrame.sample().

After compiling and running speedup/rf_openmp.cpp it will fail every now and then due to bad malloc requests. This is due to OpenMP and likely caused by something deep down in our code. It happens rarely and simply requires re-running or, at worst, recompiling then re-running.