Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

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

jmikians
Beginner
1,839 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
1,839 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
1,839 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