Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jmikians
Beginner
64 Views

Unit testing, OpenMP C++ - hints, suggestions?

Hi all,

I wanted to do write some OpenMP C++ code, and I wanted to use Unit Tests. Do you have any suggestion, learned from practice, about how to develop tests, which UT framework works the best with OpenMP (or it does not matter), and so on?

Cheers,

Jakub

0 Kudos
2 Replies
jimdempseyatthecove
Black Belt
64 Views

Are you intending on testing serial functions in parallel or parallel functions in parallel?
What is missing in available unit testing applications that you want to implement with your own code?
For multi-threaded testing some of the new tools availablein Intel Parallel Studio XE might be of use. Also, or multi-threaded code check out Relacy Race Detector (http://www.1024cores.net/home/relacy-race-detector)

Jim Dempsey

jmikians
Beginner
64 Views

Thanks for the answer,

I didn't know about this race detector, interesting. Currently I am using Cxxtest for unit testing, I test parallel sections of a code in separate tests and it seems to fork fine for me. Still, any advice that can help finding bugs and races in the parallel code is welcome

Reply