Hello, Daniweb -- I have a C++ library, for which I am trying to make a Python interface. I have come across a linking issue which I haven't been able to solve. The library has a series of header and source files, and I am looking for a way to add the Python interface without modifying any of the source files, by separately compiling linking in the new Boost Python sources, rather than adding the additional Boost code directly in the .cpp files. I have worked out a simple test case for what I am trying to do. There is …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am writing a library that does some heavy computation, and so I have been trying to speed things up with some low level parallelism. My machine runs Ubuntu 16.04, and is an old i7, but has four virtual cores. I tried to use openMP, and while it runs error free, and appears to be creating the threads, I don't ever see any speedup. I cut my code down drastically, to this test code: #include "timer.h" #include <iostream> #include <math.h> void testPlusEQ(double* summand1,double* summand2,unsigned int size_) {// omp simd for (unsigned int i=0;i<size_;i++) { summand1[i] += summand2[i]; } //sqrt(summand1[i]/summand2[i]); …

Member Avatar
+0 forum 0

The End.