Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7683 Discussions

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

Luisi__Alex
Beginner
114 Views

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
114 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