Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.

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

jmikians
Beginner
724 Views

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
Honored Contributor III
724 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

0 Kudos
jmikians
Beginner
724 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

0 Kudos
Reply