Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Luisi__Alex
Beginner
53 Views

-qopt-malloc-option=(n) not being recognized in Intel Compiler 19.0

System: macOS 10.14 (Mojave)

Chip Family: Skylake, Core i7

Intel Compiler Version: v19.0

I'm having an issue compiling a program using the -qpot-malloc-options flag icpc is stating that it does not recognize it, and so ignoring it. The program contains quite a few malloc statements (with the required headers) and so an alternative malloc algorithm would help improve performance. The code compiles successfully with other flags not ignored, such as -qopt-prefetch. 

The compile command that includes the malloc is given as follows: 

icpc -std=c++17 -O3 -qopt-malloc-options=4 kdtreetest kdtreetest.cpp kdtree.cpp

Hopefully I'm just missing something small...!

Appreciate the help in advance. 

0 Kudos
1 Reply
Viet_H_Intel
Moderator
53 Views

Not sure what happened in your ENV, but the option is supported in 19.0.

https://software.intel.com/en-us/cpp-compiler-developer-guide-and-reference-optimization-and-program...;

Reply