Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

new operator with openmp and c++

tomtj
Beginner
354 Views
Hello

I want to know if there is a special version of the new operator to use with the -openmp option (since malloc() has to be changed to kmp_malloc() with C)...

Is there a web page where I can find that kind of tricks (The informations I find with Google are not very interesting...)?

Best Regards
Thomas
0 Kudos
1 Reply
jim_dempsey
Beginner
354 Views

I don't know, you can find out with the debugger. And if not then you can always overload new.

However, note that applications can be multi-threadded without OpenMP and the mt library should already have a thread-safe allocation routine (including malloc)

Jim Dempsey

0 Kudos
Reply